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

add(*): 关键事件埋点

parent 9944deff
......@@ -14,10 +14,10 @@
<view class="order-cell">
<text>合作厂商:</text>
<text>{{ order.partnerCompanyName }}</text>
</view>
<view class="order-cell">
<text>厂商编号:</text>
<text>{{ order.partnerSerialNumber }}</text>
</view>
<view class="order-cell">
<text>厂商编号:</text>
<text>{{ order.partnerSerialNumber }}</text>
</view>
<view class="order-cell between-cell">
<view class="left">
......@@ -131,6 +131,7 @@
if (this.operate) {
const latitude = this.order.contactAddressLatitud //res.latitude;
const longitude = this.order.contactAddressLongitud //res.longitude;
getApp().track("order_open_location", { address: address });
uni.openLocation({
latitude: Number(latitude),
longitude: Number(longitude),
......@@ -142,6 +143,7 @@
},
phoneToCustomer(phone) { // 联系客户
if (this.operate) {
getApp().track("order_make_phone_call", { phone: phone });
uni.makePhoneCall({
phoneNumber: phone, //仅为示例
complete() {}
......@@ -158,14 +160,14 @@
},
handleClick(val) {
this.$emit('update:readMore', val)
},
handleLongpress(text) {
uni.setClipboardData({
data: text,
success: function () {
console.log('success');
}
});
},
handleLongpress(text) {
uni.setClipboardData({
data: text,
success: function () {
console.log('success');
}
});
}
}
}
......@@ -299,4 +301,4 @@
text-align: left;
flex-shrink: 0;
}
</style>
</style>
......@@ -85,7 +85,10 @@
searchOrder(index) {
this.search.pageNumber = 1
this.loadStaus = 'loading';
this.getOrderList()
if(this.search.keyword) {
getApp().track('search_order', {keyword: this.search.keyword});
this.getOrderList()
}
},
// 页面数据
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