Commit 8a9144fc by 杨北旺

修复bug

1 parent 3c1540d9
......@@ -21,8 +21,9 @@ Page({
onLoad(options) {
this.toCheckMember()
},
toJump(e) {
const flag = this.checkLogin()
async toJump(e) {
const flag = await this.checkLogin()
console.log(flag);
if (flag) return
const { id } = e.currentTarget.dataset
let url = ''
......@@ -62,6 +63,7 @@ Page({
})
return true
}
return false
},
async toCheckMember() {
const authStatus = await wx.p.router.intercept(false)
......
......@@ -77,7 +77,7 @@ Page({
setTimeout(() => {
self.toCheckMember()
}, 1500)
this.setData({
self.setData({
openingStatus: true
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!