Commit 44a027f1 by liangjiaxin

fix setStorageSync('attractingCustomerChannelId','')

parent 8243778d
......@@ -299,7 +299,9 @@ export default {
}
).then(ele=>{
//清空引客渠道id
wx.setStorageSync('attractingCustomerChannelId','');
if(ele.data.data) {
wx.setStorageSync('attractingCustomerChannelId','');
}
})
}
}
......@@ -444,7 +446,7 @@ export default {
(data.visibleCopy == 3 && !wx.getStorageSync('sessionid'))
) {
data.visible = 1;
} else if ((data.visibleCopy == 2 && !wx.getStorageSync('sessionid')) ||
} else if ((data.visibleCopy == 2 && !wx.getStorageSync('sessionid')) ||
(data.visibleCopy == 3 && wx.getStorageSync('sessionid'))
) {
data.visible = 0;
......@@ -470,7 +472,7 @@ export default {
(element.visibleCopy == 3 && !wx.getStorageSync('sessionid'))
) {
element.visible = 1;
} else if ((element.visibleCopy == 2 && !wx.getStorageSync('sessionid')) ||
} else if ((element.visibleCopy == 2 && !wx.getStorageSync('sessionid')) ||
(element.visibleCopy == 3 && wx.getStorageSync('sessionid'))
) {
element.visible = 0;
......
......@@ -85,7 +85,7 @@ export default {
}
},
onLoad(options) {
if(wx.getStorageSync("sessionid")) {
//清空门店id
wx.setStorageSync(this.$store.state.mixid+'storeId','')
......@@ -119,7 +119,7 @@ export default {
this.withoutScene = true;
})
},
})
})
}
// 移除重复参数
if (options.params) {
......@@ -232,7 +232,7 @@ export default {
newRegisterFlag: 0,
}
).then(ele=>{
if (ele.data) {
if (ele.data.data) {
//清空引客渠道id
wx.setStorageSync('attractingCustomerChannelId','');
}
......@@ -259,9 +259,9 @@ export default {
}
}).catch((err)=>{
this.withoutScene = true;
})
})
});
}else {
//来自扫码
// options 中的scene需要使用decodeURIComponent才能获取到生成二维码时传入的scene
......@@ -278,12 +278,12 @@ export default {
// }else{
// this.params += `&spokesmanGroupId=${querys[2]}&spokesmanShopId=${querys[3]}&spokesmanRelId=${querys[4]}`
// }
// }else if(querys.length == 3){
// this.params += `&userId=${querys[2]}`
// }
} else if (querys[0] == "activty") {
//活动页面activty_turntable_123
this.params += `&pageInfo=${scene}`;
......@@ -297,11 +297,11 @@ export default {
// }else{
// this.params += `&spokesmanGroupId=${querys[1]}&spokesmanShopId=${querys[2]}&spokesmanRelId=${querys[3]}`
// }
// }else if(querys.length == 2){
// this.params += `&userId=${querys[1]}`
// }
}else if(querys[0] == "home"){
this.page = `/`;
this.params += this.paramsHander(querys,2)
......@@ -311,7 +311,7 @@ export default {
// }else{
// this.params += `&spokesmanGroupId=${querys[1]}&spokesmanShopId=${querys[2]}&spokesmanRelId=${querys[3]}`
// }
// }else if(querys.length == 2){
// this.params += `&userId=${querys[1]}`
// }
......@@ -328,7 +328,7 @@ export default {
// }else{
// this.params += `&orderSn=${querys[1]}&spokesmanGroupId=${querys[2]}&spokesmanShopId=${querys[3]}&spokesmanRelId=${querys[4]}`
// }
// }else if(querys.length == 3){
// this.params += `&orderSn=${querys[1]}&userId=${querys[2]}`
// }
......@@ -351,8 +351,8 @@ export default {
console.log(this.page)
console.log(this.params)
}
// var query = options.query.dentistId; // 参数二维码传递过来的场景参数
}
this.init();
......@@ -438,7 +438,7 @@ export default {
console.log(res, "h5消息", res.target.data[len]);
this.shareShopName = res.target.data[len].shareShopName || "";
this.shareLogoUrl = DFSImg(res.target.data[len].shareLogoUrl, 500, 400);
//分享内容中有订单信息为送礼活动
this.shareOrderSn = res.target.data[len].orderSn;
this.shareTid = res.target.data[len].shareTid;
......@@ -456,7 +456,7 @@ export default {
}
}
indexApi.forward({articleId: articleId,}).then(res=>{
})
}
},
......@@ -493,7 +493,7 @@ export default {
}else{
params += `&spokesmanGroupId=${querys[midNum - 1]}&spokesmanShopId=${querys[midNum]}&spokesmanRelId=${querys[midNum+1]}`
}
}else if(querys.length == midNum){
params += `&userId=${querys[midNum - 1]}`
}
......@@ -557,7 +557,7 @@ export default {
}else{
this.shareUrl = url ;
}
console.log(this.shareUrl, "index12");
console.log(`/pages/index/main?share=${encodeURIComponent(this.shareUrl)}`, '测试直播分享相关')
......
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