Commit 9c1330cb by 程智春

Merge branch 'nativehome_tst' of http://code.mayi888.com/chengmo/mayi-mp-shop into nativehome_tst

parents d1d18f77 27128eef
...@@ -29,6 +29,7 @@ export default { ...@@ -29,6 +29,7 @@ export default {
} }
}, },
async onLoad(options){ async onLoad(options){
console.log(options,66667777777)
if(options.scene) { if(options.scene) {
//扫码 //扫码
let data = await this.getParams(options.scene); let data = await this.getParams(options.scene);
...@@ -124,8 +125,12 @@ export default { ...@@ -124,8 +125,12 @@ export default {
wxAvatarUrl: this.$store.state.userInfo.avatarUrl, wxAvatarUrl: this.$store.state.userInfo.avatarUrl,
}; };
login.getSsoBcakUrl(op).then((res) => { login.getSsoBcakUrl(op).then((res) => {
this.link = res.data.data;
console.log(res,this.link,555444) console.log(res,this.link,555444)
if(res.data.code == '200') {
this.link = res.data.data;
}else {
wx.showToast({ title: res.data.msg, icon: "none" });
}
}); });
}, },
getParams(options) { getParams(options) {
......
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