Commit f6eecb7f by 李伟康

修复BUG

1 parent ba92aad5
...@@ -54,7 +54,9 @@ Page({ ...@@ -54,7 +54,9 @@ Page({
} = e.currentTarget.dataset } = e.currentTarget.dataset
wx.p.router.go(url) wx.p.router.go(url)
}, },
getOrderNumberList() { async getOrderNumberList() {
const loginStatus = await wx.p.router.intercept(false)
if (loginStatus) return
wx.p.api.mineApi.getOrderNumberList().then(res => { wx.p.api.mineApi.getOrderNumberList().then(res => {
this.setData({ this.setData({
orderNumberList: [res.unPayCount, res.unShippedCount, res.unReceivedCount, res.unServiceCount] orderNumberList: [res.unPayCount, res.unShippedCount, res.unReceivedCount, res.unServiceCount]
...@@ -127,13 +129,8 @@ Page({ ...@@ -127,13 +129,8 @@ Page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { onShow() {
let {
userInfo
} = this.data
if (userInfo && userInfo.phone) {
this.getOrderNumberList() this.getOrderNumberList()
this.toCheckMember() this.toCheckMember()
}
}, },
/** /**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!