Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李俊赕
self-support
Commits
18060078
Commit
18060078
authored
Jul 21, 2021
by
高铭波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add(*): 关键事件埋点
parent
9944deff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
14 deletions
+19
-14
detail.vue
src/components/order/detail.vue
+15
-13
search.vue
src/pages/order/search.vue
+4
-1
No files found.
src/components/order/detail.vue
View file @
18060078
...
@@ -14,10 +14,10 @@
...
@@ -14,10 +14,10 @@
<view
class=
"order-cell"
>
<view
class=
"order-cell"
>
<text>
合作厂商:
</text>
<text>
合作厂商:
</text>
<text>
{{
order
.
partnerCompanyName
}}
</text>
<text>
{{
order
.
partnerCompanyName
}}
</text>
</view>
</view>
<view
class=
"order-cell"
>
<view
class=
"order-cell"
>
<text>
厂商编号:
</text>
<text>
厂商编号:
</text>
<text>
{{
order
.
partnerSerialNumber
}}
</text>
<text>
{{
order
.
partnerSerialNumber
}}
</text>
</view>
</view>
<view
class=
"order-cell between-cell"
>
<view
class=
"order-cell between-cell"
>
<view
class=
"left"
>
<view
class=
"left"
>
...
@@ -131,6 +131,7 @@
...
@@ -131,6 +131,7 @@
if
(
this
.
operate
)
{
if
(
this
.
operate
)
{
const
latitude
=
this
.
order
.
contactAddressLatitud
//res.latitude;
const
latitude
=
this
.
order
.
contactAddressLatitud
//res.latitude;
const
longitude
=
this
.
order
.
contactAddressLongitud
//res.longitude;
const
longitude
=
this
.
order
.
contactAddressLongitud
//res.longitude;
getApp
().
track
(
"order_open_location"
,
{
address
:
address
});
uni
.
openLocation
({
uni
.
openLocation
({
latitude
:
Number
(
latitude
),
latitude
:
Number
(
latitude
),
longitude
:
Number
(
longitude
),
longitude
:
Number
(
longitude
),
...
@@ -142,6 +143,7 @@
...
@@ -142,6 +143,7 @@
},
},
phoneToCustomer
(
phone
)
{
// 联系客户
phoneToCustomer
(
phone
)
{
// 联系客户
if
(
this
.
operate
)
{
if
(
this
.
operate
)
{
getApp
().
track
(
"order_make_phone_call"
,
{
phone
:
phone
});
uni
.
makePhoneCall
({
uni
.
makePhoneCall
({
phoneNumber
:
phone
,
//仅为示例
phoneNumber
:
phone
,
//仅为示例
complete
()
{}
complete
()
{}
...
@@ -158,14 +160,14 @@
...
@@ -158,14 +160,14 @@
},
},
handleClick
(
val
)
{
handleClick
(
val
)
{
this
.
$emit
(
'update:readMore'
,
val
)
this
.
$emit
(
'update:readMore'
,
val
)
},
},
handleLongpress
(
text
)
{
handleLongpress
(
text
)
{
uni
.
setClipboardData
({
uni
.
setClipboardData
({
data
:
text
,
data
:
text
,
success
:
function
()
{
success
:
function
()
{
console
.
log
(
'success'
);
console
.
log
(
'success'
);
}
}
});
});
}
}
}
}
}
}
...
@@ -299,4 +301,4 @@
...
@@ -299,4 +301,4 @@
text-align
:
left
;
text-align
:
left
;
flex-shrink
:
0
;
flex-shrink
:
0
;
}
}
</
style
>
</
style
>
src/pages/order/search.vue
View file @
18060078
...
@@ -85,7 +85,10 @@
...
@@ -85,7 +85,10 @@
searchOrder
(
index
)
{
searchOrder
(
index
)
{
this
.
search
.
pageNumber
=
1
this
.
search
.
pageNumber
=
1
this
.
loadStaus
=
'loading'
;
this
.
loadStaus
=
'loading'
;
this
.
getOrderList
()
if
(
this
.
search
.
keyword
)
{
getApp
().
track
(
'search_order'
,
{
keyword
:
this
.
search
.
keyword
});
this
.
getOrderList
()
}
},
},
// 页面数据
// 页面数据
getOrderList
(
event
)
{
getOrderList
(
event
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment