Commit 1ecfe411 by 李嘉林

新用户

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