Commit a1eff295 by 程默

fix

parent 05fd8def
......@@ -130,7 +130,6 @@ export default {
this.init()
.then(res => {
console.log("promise", res);
wx.hideLoading();
//存入openid
wx.setStorage({
key: "openid",
......@@ -174,6 +173,7 @@ export default {
checkLogin(e) {
console.log(this.isHaveUnion,e)
if (this.isHaveUnion) {
wx.hideLoading();
//是会员 直接登录
wx.reLaunch({
url: `../index/main?from=login&backpath=${
......@@ -195,6 +195,7 @@ export default {
login
.checkUnionid({ unionId: this.unionId, openId: this.openid })
.then(res => {
wx.hideLoading();
if (res.data.code == 200) {
if (res.data.data.isHaveUnion == "true") {
this.NEED_CERTIFIED = res.data.data.NEED_CERTIFIED;
......@@ -217,9 +218,11 @@ export default {
}
})
.catch(err => {
wx.hideLoading();
wx.showToast({ title: err, icon: "none" });
});
} else {
wx.hideLoading();
//不是会员需要绑定手机号
this.isShowPhone = true;
}
......
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