102f417e by simon

默认提交

1 parent 1e1f46d0
......@@ -94,9 +94,15 @@ Page({
}
},
showAuth() {
this.setData({
authorizeVisible: true
})
let _this = this;
wx.login({
success: function (res) {
app.store.setItem('wxcode', res.code);
_this.setData({
authorizeVisible: true
})
}
});
},
checkAuth() {
return new Promise((resolve, reject) => {
......@@ -124,9 +130,7 @@ Page({
if (result) {
resolve(true);
} else {
this.setData({
authorizeVisible: true
});
this.showAuth();
}
});
});
......