Commit 54dc6df0 by Lightsnow

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

parent baad3538
...@@ -221,17 +221,32 @@ export default { ...@@ -221,17 +221,32 @@ export default {
key: "openid", key: "openid",
data: res1.data.data data: res1.data.data
}); });
indexApi.addRecord( console.log('判断是否登录过=登陆过直接调用..未登录过需要授权头像昵称信息。')
{ if (wx.getStorageSync('sessionid')) {
attractingCustomersChannelId: paramsObj.attractingCustomerChannelId, console.log('已登陆了')
miniOpenId: res1.data.data, indexApi.addRecord(
registerFlag: 1, {
newRegisterFlag: 0, attractingCustomersChannelId: paramsObj.attractingCustomerChannelId,
} miniOpenId: res1.data.data,
).then(ele=>{ registerFlag: 1,
//清空引客渠道id newRegisterFlag: 0,
wx.setStorageSync('attractingCustomerChannelId',''); }
}) ).then(ele=>{
if (ele.data) {
//清空引客渠道id
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