Fix:4066 【商城小程序】提交订单付款后,页面内容短暂闪现显示“undefined”文字
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="order-details" style="padding: 30rpx;" @click="handleBody">
|
<view class="order-details" style="padding: 30rpx;" @click="handleBody" v-if="!loading && orderInfo.isTickets !== undefined">
|
||||||
<!-- 给header上与data上加on为退款订单-->
|
<!-- 给header上与data上加on为退款订单-->
|
||||||
<view class=" v12-pa-3 v12-white" :class="refundOrder ? 'on' : ''" style="border-radius: 20rpx;" v-if="!isGift">
|
<view class=" v12-pa-3 v12-white" :class="refundOrder ? 'on' : ''" style="border-radius: 20rpx;" v-if="!isGift">
|
||||||
<!-- <view class="status-img-box">
|
<!-- <view class="status-img-box">
|
||||||
@@ -552,7 +552,8 @@ export default {
|
|||||||
webUrl: this.$VUE_APP_RESOURCES_URL,
|
webUrl: this.$VUE_APP_RESOURCES_URL,
|
||||||
pageKeyId: Object.freeze('userOrderInfo'),
|
pageKeyId: Object.freeze('userOrderInfo'),
|
||||||
logistics: {},
|
logistics: {},
|
||||||
isGift: false
|
isGift: false,
|
||||||
|
loading: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -992,6 +993,10 @@ export default {
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
uni.showLoading({
|
||||||
|
title: '加载中'
|
||||||
|
})
|
||||||
|
this.loading = true
|
||||||
orderDetail(id)
|
orderDetail(id)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
this.orderInfo = res.data;
|
this.orderInfo = res.data;
|
||||||
@@ -1025,6 +1030,9 @@ export default {
|
|||||||
icon: "none",
|
icon: "none",
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
|
}).finally(() => {
|
||||||
|
this.loading = false
|
||||||
|
uni.hideLoading()
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async toPay(type) {
|
async toPay(type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user