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

add(*): 关键事件埋点

parent 9944deff
...@@ -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() {}
......
...@@ -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';
if(this.search.keyword) {
getApp().track('search_order', {keyword: this.search.keyword});
this.getOrderList() 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