Authored by huzhiming

feat(埋点):添加数据上报

... ... @@ -34,13 +34,17 @@ const xianyu = {
window._xianyuShare = () => {
this.setXianyuShare(shareParam, handler);
}
console.log('this.isAliApp && window.WindVane', this.isAliApp , window.WindVane);
if (this.isAliApp && window.WindVane) {
window.WindVane.call('WVIdleFishApi', 'setNavigatorRightItem', {
title: '∙∙∙', // 按钮名称
func: '_xianyuShare' // func: 'test' //点击调用函数 注意调用的函数必须挂载在window上
}, function(data) {
alert('show Btn')
console.log(data);
}, function(e) {
alert('error Btn')
console.log(e);
});
}
... ...
... ... @@ -213,7 +213,16 @@ export default {
}));
});
console.log('mounted ok!!');
this.$nextTick(() => {
/*
* @ description: 配置打开闲鱼导航栏右上角分享按钮 && 配置分享信息 && 上报数据埋点
* @ author: huzhiming
* @ date: 2019-11-13 19:58:50
* @ version: V1.0.5
*/
console.log('settingShareHandler ok!!');
this.settingShareHandler();
});
},
beforeDestroy() {
if (this.watchList) {
... ... @@ -300,17 +309,6 @@ export default {
param,
}
});
this.$nextTick(async () => {
/*
* @ description: 配置打开闲鱼导航栏右上角分享按钮 && 配置分享信息 && 上报数据埋点
* @ author: huzhiming
* @ date: 2019-11-13 19:58:50
* @ version: V1.0.5
*/
console.log('settingShareHandler ok!!');
await this.settingShareHandler();
});
},
deactivated() {
if (this._resourceImgWatcher) {
... ...