Commit 55f07ed7 by 张卓

原生首页绑定分销关系

parent 89c7e6ea
......@@ -217,6 +217,18 @@ export default {
data: JSON.stringify(options)
});
}
if(options.scene&&options.scene.indexOf('_')>-1) {
let querys = options.scene.split("_");
if(querys[0] == "home"){
let query = options;
query.userId = querys[4]
query.spokesmanRelId = querys[2]
wx.setStorage({
key: "becomeInfo",
data: JSON.stringify(query)
});
}
}
Object.assign(this.$data, this.$options.data());
if (options.from && options.from == "logout") {
//来自用户登出
......@@ -227,6 +239,7 @@ export default {
key: "openid"
});
}
console.log(wx.getStorageSync("becomeInfo"),111111111)
this.options = wx.getStorageSync("becomeInfo");
this.changeLocation = options.changeLocation || ''
......
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