Commit 5d18e796 by 李嘉林

首页绑定关系

parent f70cdaf5
......@@ -278,6 +278,7 @@ export default {
})
},
onLoad(options) {
console.log(options,'---------home----options')
log.info('--------on--------------load')
//进页面存储需要绑定的信息
if(options.userId||options.spokesmanRelId) {
......@@ -293,10 +294,17 @@ export default {
if(res.data.code == '200'){
this.page = res.data.data.pageUri;
let paramsObj = JSON.parse(res.data.data.scene);
if(paramsObj.spokesmanRelId){
wx.setStorage({
key: "becomeInfo",
data: JSON.stringify(paramsObj)
});
}
wx.setStorageSync('attractingCustomerChannelId',paramsObj.attractingCustomerChannelId);
wx.setStorageSync(this.$store.state.mixid+'storeId',paramsObj.storeId);
wx.setStorageSync(this.$store.state.mixid+'sellerId',paramsObj.sellerId);
log.info(res.data.data,'getShareSceneRecord')
console.log(res.data.data,'----getShareSceneRecord')
log.info(wx.getStorageSync("openid"))
log.info(333333)
if(wx.getStorageSync("openid")) {
......
......@@ -70,7 +70,7 @@
<p>住宿地点</p>
</div>
<div class="text">
<p></p>
<p>{{userInfo.accommodation}}</p>
</div>
</div>
<div class="cell flex">
......
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