Commit c3ce6cdf by 李嘉林

加埋点

parent 5452841b
......@@ -324,6 +324,7 @@ export default {
// };
},
onReady() {
log.info('home-onReady');
console.log(new Date().getTime(),'load-----home-onReady')
// 上报首页打开时间
if (wx.canIUse('reportPerformance')) {
......@@ -358,6 +359,7 @@ export default {
this.firstOpenPage = false;
},
async onLoad(options) {
log.info('home-onLoad')
if(this.$options) {
Object.assign(this.$data, this.$options.data());
}
......@@ -367,6 +369,7 @@ export default {
this.pageInit(options);
},
onShow() {
log.info('home-onShow')
console.log(new Date().getTime(),'load-----home-onShow')
console.log(this.reloadPage,'-reloadPage2')
// if (this.reloadPage) {
......@@ -375,7 +378,6 @@ export default {
// this.reloadPage = false;
// }
// 设置显示条件
log.info('--------on--------------show')
//分销隔流
if(this.toHomePage) {
let linkVal = '/personalCenter/spokesmanCenter/mine/spokesmanHomePage?from=_goodsInfo'
......
......@@ -99,6 +99,7 @@ export default {
console.log(pageUrl1,'--------pageUrl1--')
let pageUrl = forUrlAddKey(decodeURIComponent(pageUrl1));
console.log(pageUrl,'--------pageUrl')
log.info('index-pageUrl', pageUrl);
// let pageUrl = this.link+this.page+this.params;
return pageUrl;
},
......@@ -171,6 +172,7 @@ export default {
log.info(this.options,'----------------index-----options')
let h5Params = {};
if (options.params) {
log.info('index-onLoad-params');
console.log('tool.isObjectString(options.params)', tool.isObjectString(decodeURIComponent(options.params)), decodeURIComponent(options.params))
if (tool.isObjectString(decodeURIComponent(options.params))) {
console.log('h5Params1')
......@@ -699,6 +701,7 @@ export default {
query.sharingMethods = type;
}
console.log("saveSpokesmanShareGoodsLog", query)
log.info('saveSpokesmanShareGoodsLog', query);
goods.saveSpokesmanShareGoodsLog(query);
},
getQueryVariableNotNull(link, key) {
......
......@@ -189,6 +189,7 @@ export default {
wxPay
.to_wx_pay(this.options)
.then((res) => {
log.info('api-to_wx_pay', res);
wx.hideLoading();
if (res.data.code == 200) {
let payData = JSON.parse(res.data.data);
......@@ -243,6 +244,7 @@ export default {
fn(this);
}
} catch (err) {
log.info('subscribeMessage-err', err);
console.error("subscribeMessage-err", err);
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment