This commit is contained in:
parent
16f986c823
commit
70c37c4ad6
|
|
@ -151,6 +151,12 @@ export default {
|
|||
goBack() { uni.navigateBack() },
|
||||
/** 加载订单详情 */
|
||||
async loadDetail() {
|
||||
// 未登录跳转登录页
|
||||
const token = uni.getStorageSync('token')
|
||||
if (!token) {
|
||||
uni.navigateTo({ url: '/pages/login/login' })
|
||||
return
|
||||
}
|
||||
this.loading = true
|
||||
try {
|
||||
this.order = await getOrderDetail(this.orderId)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user