Commit 8a9144fc by 杨北旺

修复bug

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