Commit 18060078 authored by 高铭波's avatar 高铭波

add(*): 关键事件埋点

parent 9944deff
...@@ -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>
...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment