Commit a48cc744 authored by limengyang's avatar limengyang

token过期提示

parent 5812fa00
......@@ -208,6 +208,14 @@ wepy.page({
success: (res) => {
if (res.data.success) {
this.orderList = res.data.data
} else if(res.statusCode === 401) {
wx.showModal({
title: '提示',
content: '重新扫码登录',
showCancel: false,
success: () => {
}
})
} else {
this.orderList = []
}
......@@ -216,7 +224,13 @@ wepy.page({
});
},
fail: function() {
console.log('用户未登录');
wx.showModal({
title: '提示',
content: '重新扫码登录',
showCancel: false,
success: () => {
}
})
}
});
}
......@@ -379,7 +393,13 @@ wepy.page({
this.getList()
},
fail: function() {
console.log('用户未登录');
wx.showModal({
title: '提示',
content: '重新扫码登录',
showCancel: false,
success: () => {
}
})
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment