Commit f6eecb7f by 李伟康

修复BUG

1 parent ba92aad5
......@@ -54,7 +54,9 @@ Page({
} = e.currentTarget.dataset
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 => {
this.setData({
orderNumberList: [res.unPayCount, res.unShippedCount, res.unReceivedCount, res.unServiceCount]
......@@ -127,13 +129,8 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow() {
let {
userInfo
} = this.data
if (userInfo && userInfo.phone) {
this.getOrderNumberList()
this.toCheckMember()
}
this.getOrderNumberList()
this.toCheckMember()
},
/**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!