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