Commit 0e82fa1d by zhangxw

线索管理去掉浏览埋点

1 parent d5ae4fd7
// packageUsedCar/pages/indexPage/clueManageList/clueManageList.js // packageUsedCar/pages/indexPage/clueManageList/clueManageList.js
const IMGURL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/' const IMGURL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
import reportPageTrackMixin from '~/mixins/reportPageTrackMixin'
import { getClueManageListApi, getClueManageStaticsApi } from "~/packageUsedCar/api" import { getClueManageListApi, getClueManageStaticsApi } from "~/packageUsedCar/api"
Page({ Page({
behaviors: [reportPageTrackMixin],
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
track_event_code: 'clueListBrowse',
IMGURL, IMGURL,
pageTitle: "线索管理", pageTitle: "线索管理",
navBarHeight: 0, navBarHeight: 0,
...@@ -336,7 +333,7 @@ Page({ ...@@ -336,7 +333,7 @@ Page({
} }
const queryString = this.buildQuery(queryObj) const queryString = this.buildQuery(queryObj)
const finalPath = `${usedcarWebviewUrl}/clue-detail?${queryString}` const finalPath = `${usedcarWebviewUrl}/clue-detail?${queryString}`
wx.$track.setTrackData(0, `clue${mode === 'follow' ? 'pursue-clue' : 'cule-detail'}`, '') wx.$track.setTrackData(0, `${mode === 'follow' ? 'pursue-clue' : 'cule-detail'}`, {})
if (mode === 'follow') { if (mode === 'follow') {
return wx.navigateTo({url: `/packageUsedCar/pages/indexPage/pursueClue/pursueClue?cluesId=${item.id}`}) return wx.navigateTo({url: `/packageUsedCar/pages/indexPage/pursueClue/pursueClue?cluesId=${item.id}`})
} else { } else {
...@@ -387,14 +384,12 @@ Page({ ...@@ -387,14 +384,12 @@ Page({
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide() { onHide() {
this.onPageHide()
}, },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload() { onUnload() {
this.onPageHide()
}, },
/** /**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!