Feat(商品详情&店铺):来源模块数据埋点

This commit is contained in:
lifizer
2024-06-24 15:15:20 +08:00
parent 2226d665ad
commit 9ab00a372e
5 changed files with 131 additions and 8 deletions
+6 -1
View File
@@ -36,7 +36,9 @@ export function formatContent(html) {
* @returns {null}
*/
export function pageToWatchShowCount(key, cb = '') {
console.log(Vue.prototype.$pageToWatchData)
if (!key) {
return
}
if (!Vue.prototype.$pageToWatchData[key]) {
Vue.prototype.$pageToWatchData[key] = []
}
@@ -52,6 +54,9 @@ export function pageToWatchShowCount(key, cb = '') {
* @returns {null}
*/
export function pageToWatchShowTimer(key, data) {
if (!key) {
return
}
if (Vue.prototype.$pageToWatchData[key]) {
Vue.prototype.$pageToWatchData[key].push(data)
}