Commit 5452841b by 李嘉林

加参数

parent fe44764e
......@@ -85,14 +85,14 @@ export default {
}
// 判断当前是否为导购分享
const setGuideEmployeeId = wx.getStorageSync(this.$store.state.mixid + 'setGuideEmployeeId');
if (setGuideEmployeeId) {
if (setGuideEmployeeId && !this.params.includes("setGuideEmployeeId")) {
this.params += `&setGuideEmployeeId=${setGuideEmployeeId}`;
}
// 导购分享类型
const guide_QRCodeType = wx.getStorageSync(this.$store.state.mixid + 'guide_QRCodeType');
if (guide_QRCodeType) {
this.params += `&QRCodeType=${guide_QRCodeType}`;
wx.removeStorageSync(this.$store.state.mixid + 'guide_QRCodeType');
// 导购分享类型
const guide_QRCodeType = wx.getStorageSync(this.$store.state.mixid + 'guide_QRCodeType');
if (guide_QRCodeType) {
this.params += `&QRCodeType=${guide_QRCodeType}`;
wx.removeStorageSync(this.$store.state.mixid + 'guide_QRCodeType');
}
}
console.log(this.link,'=======',this.page,'++++++++++++++',this.params,'************')
let pageUrl1 = (this.page.startsWith('http://') || this.page.startsWith('https://'))? (this.page + this.params) : this.link+this.page+this.params
......@@ -354,6 +354,10 @@ export default {
offlineShopName:paramsObj.offlineShopName,
});
}
// 判断是否为导购分享进入
if (paramsObj.setGuideEmployeeId) {
wx.setStorageSync(this.$store.state.mixid + 'setGuideEmployeeId', paramsObj.setGuideEmployeeId);
}
if (paramsObj.QRCodeType) {
wx.setStorageSync(this.$store.state.mixid+'guide_QRCodeType', paramsObj.QRCodeType);
wx.setStorageSync(this.$store.state.mixid+'temp_QRCodeType', paramsObj.QRCodeType);
......
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