Commit d0bd56ec by 李嘉林

报错处理

parent 1f50d33a
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
await this.getShopInfo(this.extConfig); await this.getShopInfo(this.extConfig);
// 页面配置信息 // 页面配置信息
this.getThemePage(this.extConfig); // this.getThemePage(this.extConfig);
let mpApp = getApp(); let mpApp = getApp();
console.log(mpApp, "this.mpApp"); console.log(mpApp, "this.mpApp");
mpApp.getShopInfo = this.getShopInfo mpApp.getShopInfo = this.getShopInfo
......
...@@ -476,7 +476,7 @@ export default { ...@@ -476,7 +476,7 @@ export default {
// 商品分享进入 (卡片分享、扫码、点击小程序链接) // 商品分享进入 (卡片分享、扫码、点击小程序链接)
if (this.newPageUrl.includes('/goods/') && (options.share || options.share_copy)) { if (this.newPageUrl.includes('/goods/') && (options.share || options.share_copy)) {
log.info("存入商品分享日志", this.newPageUrl); log.info("存入商品分享日志", this.newPageUrl);
this.saveSpokesmanShareGoodsLog(this.newPageUrl); this.saveSpokesmanShareGoodsLog({link: this.newPageUrl, type: 2});
} }
this.init(); this.init();
}, },
...@@ -487,6 +487,7 @@ export default { ...@@ -487,6 +487,7 @@ export default {
}, },
methods: { methods: {
init() { init() {
console.log('index-init', this.mpApp.globalData.pageList);
if (!this.mpApp.globalData.pageList) { if (!this.mpApp.globalData.pageList) {
app.getThemePage(this.$store.state.extConfig); app.getThemePage(this.$store.state.extConfig);
} }
...@@ -675,6 +676,7 @@ export default { ...@@ -675,6 +676,7 @@ export default {
goods.saveSpokesmanShareGoodsLog(query); goods.saveSpokesmanShareGoodsLog(query);
}, },
getQueryVariableNotNull(link, key) { getQueryVariableNotNull(link, key) {
console.log('getQueryVariableNotNull', link, key)
let val = getQueryVariable(link, key); let val = getQueryVariable(link, key);
if (val && val != 'undefined') { if (val && val != 'undefined') {
return val; return val;
......
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