Commit 2d62b557 by 匡雅琴

分享埋点设置cardId

1 parent 6249a158
...@@ -62,6 +62,9 @@ Page({ ...@@ -62,6 +62,9 @@ Page({
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() { onShareAppMessage() {
return {
title: trackData.LIGHT.pageName,
path: 'pages/productDetail/ambientLighting/ambientLighting?cardId=' + util.getStorageSync('scene').cardId
}
} }
}) })
\ No newline at end of file \ No newline at end of file
...@@ -62,6 +62,9 @@ Page({ ...@@ -62,6 +62,9 @@ Page({
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() { onShareAppMessage() {
return {
title: trackData.ARNAVIGATION.pageName,
path: 'pages/productDetail/arNavigation/arNavigation?cardId=' + util.getStorageSync('scene').cardId
}
} }
}) })
\ No newline at end of file \ No newline at end of file
// pages/productDetail/carBeauty/carBeauty.js // pages/productDetail/carBeauty/carBeauty.js
import { trackData } from "../../../utils/data"; import { trackData } from "../../../utils/data";
import util from "../../../utils/util";
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {},
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {},
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady() { onReady() {},
},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { onShow() {
wx.$Track.sendTrack(trackData.CARBEAUTY) wx.$Track.sendTrack(trackData.CARBEAUTY);
}, },
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide() { onHide() {},
},
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload() { onUnload() {},
},
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh() { onPullDownRefresh() {},
},
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom() { onReachBottom() {},
},
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() { onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
return {
title: trackData.CARBEAUTY.pageName,
path:
"pages/productDetail/carBeauty/carBeauty?cardId=" +
util.getStorageSync("scene").cardId,
};
},
});
...@@ -62,6 +62,9 @@ Page({ ...@@ -62,6 +62,9 @@ Page({
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() { onShareAppMessage() {
return {
title: trackData.CHANGEFILM.pageName,
path: 'pages/productDetail/changingFilm/changingFilm?cardId=' + util.getStorageSync('scene').cardId
}
} }
}) })
\ No newline at end of file \ No newline at end of file
...@@ -62,6 +62,9 @@ Page({ ...@@ -62,6 +62,9 @@ Page({
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() { onShareAppMessage() {
return {
title: trackData.EQUITYCARD.pageName,
path: 'pages/productDetail/equity/equity?cardId=' + util.getStorageSync('scene').cardId
}
} }
}) })
\ No newline at end of file \ No newline at end of file
...@@ -62,6 +62,9 @@ Page({ ...@@ -62,6 +62,9 @@ Page({
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() { onShareAppMessage() {
return {
title: trackData.LOSSPGASE.pageName,
path: 'pages/productDetail/lossPhase/lossPhase?cardId=' + util.getStorageSync('scene').cardId
}
} }
}) })
\ No newline at end of file \ No newline at end of file
...@@ -62,6 +62,9 @@ Page({ ...@@ -62,6 +62,9 @@ Page({
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() { onShareAppMessage() {
return {
title: trackData.NAVIGATIONARROUND.pageName,
path: 'pages/productDetail/navigationArround/navigationArround?cardId=' + util.getStorageSync('scene').cardId
}
} }
}) })
\ No newline at end of file \ No newline at end of file
...@@ -62,6 +62,9 @@ Page({ ...@@ -62,6 +62,9 @@ Page({
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() { onShareAppMessage() {
return {
title: trackData.PAINTPROTECT.pageName,
path: 'pages/productDetail/paintProtect/paintProtect?cardId=' + util.getStorageSync('scene').cardId
}
} }
}) })
\ No newline at end of file \ No newline at end of file
...@@ -62,6 +62,9 @@ Page({ ...@@ -62,6 +62,9 @@ Page({
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() { onShareAppMessage() {
return {
title: trackData.SEATVENTILATE.pageName,
path: 'pages/productDetail/seatVentilate/seatVentilate?cardId=' + util.getStorageSync('scene').cardId
}
} }
}) })
\ No newline at end of file \ No newline at end of file
...@@ -62,6 +62,9 @@ Page({ ...@@ -62,6 +62,9 @@ Page({
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() { onShareAppMessage() {
return {
title: trackData.SOLARFILM.pageName,
path: 'pages/productDetail/solarFilm/solarFilm?cardId=' + util.getStorageSync('scene').cardId
}
} }
}) })
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!