|
|
@@ -13,7 +13,7 @@
|
|
|
</view>
|
|
|
<view class="" v-else>
|
|
|
<view class="fs-48 fc-3 fw-600">
|
|
|
- {{infoData.order_status_str}}
|
|
|
+ {{infoData.order_status_str || ''}}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -254,12 +254,14 @@
|
|
|
// console.log('触底');
|
|
|
},
|
|
|
orderInfo(id) {
|
|
|
+ tools.showLoading()
|
|
|
orderInfo({
|
|
|
order_id: id
|
|
|
}).then((res) => {
|
|
|
if (res.code == 1) {
|
|
|
this.infoData = res.data
|
|
|
if (this.infoData.order_status == 1) {
|
|
|
+ tools.hideLoading()
|
|
|
// 替换“-”为“/”,转换为 iOS 支持的格式
|
|
|
let compatibleDateString = (res.data.created_at).replace(/-/g, '/');
|
|
|
let createDate = new Date(compatibleDateString); //格式化订单创建时候的时间
|