Feat(商品详情&店铺):来源模块数据埋点
This commit is contained in:
+6
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user