Commit 73f5137d by 侯体倬

绑定优化

parent 51570751
......@@ -420,6 +420,7 @@ export default {
// 每次切换门店都删除导购数据
wx.removeStorageSync(this.$store.state.mixid+'setGuideEmployeeId');
wx.removeStorageSync(this.$store.state.mixid+'guide_QRCodeType');
wx.removeStorageSync(this.$store.state.mixid+'temp_QRCodeType');
} else {
this.reloadPage = false;
}
......@@ -470,6 +471,7 @@ export default {
}
if (paramsObj.QRCodeType) {
wx.setStorageSync(this.$store.state.mixid+'guide_QRCodeType', paramsObj.QRCodeType);
wx.setStorageSync(this.$store.state.mixid+'temp_QRCodeType', paramsObj.QRCodeType);
}
this.showStoreAddr = true;
wx.setStorageSync('attractingCustomerChannelId',sceneObj.attractingCustomerChannelId);
......@@ -511,6 +513,7 @@ export default {
// 每次退出登录都删除导购数据
wx.removeStorage({ key: this.$store.state.mixid+'setGuideEmployeeId' });
wx.removeStorage({ key: this.$store.state.mixid+'guide_QRCodeType' });
wx.removeStorage({ key: this.$store.state.mixid+'temp_QRCodeType' });
}
this.options = wx.getStorageSync("becomeInfo");
this.changeLocation = options.changeLocation || ''
......@@ -545,6 +548,7 @@ export default {
// 每次退出登录都删除导购数据
wx.removeStorage({ key: this.$store.state.mixid+'setGuideEmployeeId' });
wx.removeStorage({ key: this.$store.state.mixid+'guide_QRCodeType' });
wx.removeStorage({ key: this.$store.state.mixid+'temp_QRCodeType' });
}
// 获取页面数据
if (this.mpApp.globalData.pageList && !this.reloadPage) {
......
......@@ -321,6 +321,7 @@ export default {
// 每次退出登录都删除导购数据
wx.removeStorage({ key: this.$store.state.mixid+'setGuideEmployeeId' });
wx.removeStorage({ key: this.$store.state.mixid+'guide_QRCodeType' });
wx.removeStorage({ key: this.$store.state.mixid+'temp_QRCodeType' });
} else if (options.from && options.from == "address") {
log.info('options.from == "address"')
// 来自小程序地址页面
......@@ -355,6 +356,7 @@ export default {
}
if (paramsObj.QRCodeType) {
wx.setStorageSync(this.$store.state.mixid+'guide_QRCodeType', paramsObj.QRCodeType);
wx.setStorageSync(this.$store.state.mixid+'temp_QRCodeType', paramsObj.QRCodeType);
}
wx.setStorageSync('attractingCustomerChannelId',paramsObj.attractingCustomerChannelId);
wx.setStorageSync(this.$store.state.mixid+'storeId',paramsObj.storeId);
......
......@@ -803,13 +803,15 @@ export default {
query.spokesmanShopId = this.$store.state.spokesmanShopId;
}
// 导购海报分享来源
const shareQRCodeType = wx.getStorageSync(this.$store.state.mixid + 'guide_QRCodeType');
const shareQRCodeType = wx.getStorageSync(this.$store.state.mixid + 'temp_QRCodeType');
if (shareQRCodeType) {
query.customerSourceType = {
coupon: 17, // 优惠券海报
home: 18, // 门店海报
goods: 19, // 商品海报
}[shareQRCodeType];
// 用完即删
wx.removeStorageSync(this.$store.state.mixid + 'temp_QRCodeType');
}
log.info(query,'bindUser-query-500')
login
......
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