Commit acf82f1a by 李嘉林

优化扫码进入

parent 149242bb
......@@ -144,6 +144,7 @@ export default {
}
},
onLoad(options) {
wx.removeStorageSync("firstView");
console.log(options,'---options')
if(wx.getStorageSync("sessionid")) {
......@@ -313,6 +314,13 @@ export default {
if(res.data.code == '200'){
this.page = decodeURIComponent(res.data.data.pageUri);
let paramsObj = JSON.parse(res.data.data.scene);
if (paramsObj.offlineShopCode) {
// 存在门店参数
setStoreInfo({
offlineShopCode:paramsObj.offlineShopCode,
offlineShopName:paramsObj.offlineShopName,
});
}
wx.setStorageSync('attractingCustomerChannelId',paramsObj.attractingCustomerChannelId);
wx.setStorageSync(this.$store.state.mixid+'storeId',paramsObj.storeId);
wx.setStorageSync(this.$store.state.mixid+'sellerId',paramsObj.sellerId);
......
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