Commit 54dc6df0 by Lightsnow

扫码后带客流渠道参数处理

parent baad3538
...@@ -221,6 +221,9 @@ export default { ...@@ -221,6 +221,9 @@ export default {
key: "openid", key: "openid",
data: res1.data.data data: res1.data.data
}); });
console.log('判断是否登录过=登陆过直接调用..未登录过需要授权头像昵称信息。')
if (wx.getStorageSync('sessionid')) {
console.log('已登陆了')
indexApi.addRecord( indexApi.addRecord(
{ {
attractingCustomersChannelId: paramsObj.attractingCustomerChannelId, attractingCustomersChannelId: paramsObj.attractingCustomerChannelId,
...@@ -229,9 +232,21 @@ export default { ...@@ -229,9 +232,21 @@ export default {
newRegisterFlag: 0, newRegisterFlag: 0,
} }
).then(ele=>{ ).then(ele=>{
if (ele.data) {
//清空引客渠道id //清空引客渠道id
wx.setStorageSync('attractingCustomerChannelId',''); wx.setStorageSync('attractingCustomerChannelId','');
}
}) })
} else {
console.log('未登录过需要授权头像昵称信息。')
const url = `/pages/login/main?back=${encodeURIComponent(this.page)}&param=${
encodeURIComponent(JSON.stringify(paramsObj))
}`;
console.log(url)
wx.navigateTo({url});
}
} }
}) })
}, },
......
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