Commit a1eff295 by 程默

fix

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