Commit 1ecfe411 by 李嘉林

新用户

parent 3e37659b
......@@ -92,6 +92,7 @@ export default {
wx.setStorageSync(this.$store.state.mixid+'sellerId','')
}
this.options = options;
console.log(this.options,'----------------index-----options')
Object.assign(this.$data, this.$options.data());
if(wx.getStorageSync("workBox")){
......@@ -148,12 +149,16 @@ export default {
this.page = "";
this.params = "";
} else if (options.from && options.from == "h5login") {
//来自h5登录
let params = JSON.parse(options.params);
console.log(params.sessionid,'--------------h5login--params')
//来自h5登录
wx.setStorage({
key: "sessionid",
data: params.sessionid
});
this.page = decodeURIComponent(options.backpath);
console.log(this.page,'----------------------h5login--page')
options.params && (this.params += "&" + serialize(params));
} else if (options.from && (options.from == "home" || options.from == "livedToIndex")) {
//来自直播详情
this.page = decodeURIComponent(options.backpath);
......
......@@ -82,6 +82,7 @@ export default {
scene:'',//场景
ossLink: '',//第三方点击进入链接
wxUserInfo:{},
queryOptions:{},
};
},
onShow() {
......@@ -110,7 +111,6 @@ export default {
},
onLoad(options) {
console.log(options,'----------------------login-options')
login.getShopUserProtocol().then(res => {
if(res.data.code == '200') {
this.content = res.data.data;
......@@ -135,6 +135,7 @@ export default {
this.ossLink = decodeURIComponent(options.ossLink)
}
this.getshop();
this.queryOptions = options;
},
methods: {
conF() {
......@@ -505,6 +506,7 @@ export default {
});
},
handbindHandle() {
console.log(this.queryOptions,'---------------options')
const query = {
openId: this.openid,
unionId: this.unionId,
......@@ -513,8 +515,11 @@ export default {
nickname: this.userInfo.nickName,
country: this.userInfo.country,
province: this.userInfo.province,
city: this.userInfo.city
city: this.userInfo.city,
...this.queryOptions,
};
console.log(query,'-------------------519')
console.log( serialize(query),'------------------- serialize(query)')
if(wx.getStorageSync(this.$store.state.mixid+'storeId')) {
query.storeId = wx.getStorageSync(this.$store.state.mixid+'storeId')
}
......
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