Commit 44a027f1 by liangjiaxin

fix setStorageSync('attractingCustomerChannelId','')

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