Commit d8937811 by zhangxw

客户线索埋点需求

1 parent 1fcea36a
// packageEquity/pages/clueList/clueList.js
import carLifeApi from '../../carEquityApi'
import NP from 'number-precision'
import reportPageTrackMixin from '~/mixins/reportPageTrackMixin'
Page({
behaviors: [reportPageTrackMixin],
/**
* 页面的初始数据
*/
......@@ -33,6 +34,8 @@ Page({
key: 'defeat'
}
],
track_event_code: 'leads_detail', //埋点动作类型
scene: null // 埋点业务类型
},
onRoute(options) {
console.log(options, 'options');
......@@ -56,7 +59,8 @@ Page({
* 1精品升级
* 0会员权益/升级*/
this.setData({
sceneType: sceneType
sceneType: sceneType,
scene: sceneType
})
// this.getCustomerClueList()
this.getCustomerClueTodayCount()
......@@ -209,20 +213,21 @@ Page({
*/
onShow() {
this.getCustomerClueStatistics()
this.onPageShow()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
this.onPageHide()
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
this.onPageHide()
},
/**
......
......@@ -1064,6 +1064,9 @@ Component({
if (item.path == 'packageEquity.start'){
wx.$track.setTrackData(0, 'aiCheck_page', { }, '', 0)
}
if (item.path == 'packageEquity.clueList') {
wx.$track.setTrackData(0, 'leads_page', { }, '', 0)
}
return wx.$router.go(item.path, {
scene: 0,
params: item.params || {},
......
......@@ -462,6 +462,9 @@ Page({
}
})
}
if (item.url == 'packageEquity.clueList') {
wx.$track.setTrackData(0, 'leads_page', { }, '', 1)
}
// 判断是不是门店员工
if (userInfo?.merchantType && !userInfo.isSuper && type == 2) {
wx.$util.pointRecord(item.recordId)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!