Commit d8937811 by zhangxw

客户线索埋点需求

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