确认收货改造

This commit is contained in:
geng.tang@qq.com
2024-01-02 21:41:41 +08:00
parent e12bdecc5a
commit ebd22b0eee
9 changed files with 267 additions and 96 deletions

View File

@@ -442,11 +442,16 @@
</view>
</view>
</view>
<view class="info-item" v-if="item.expirationDay > 0">
<view class="info-item" v-if="item.payStatus == 10 && item.expirationDay < 0">
<view class="item-lable">逾期天数</view>
<view class="item-content"><text class="yuqi-text">{{ item.expirationDay }}天</text>
</view>
</view>
<view class="info-item" v-if="item.expirationDay >= 0">
<view class="item-lable">剩余天数</view>
<view class="item-content"><text class="yuqi-text">{{ item.expirationDay }}天</text>
</view>
</view>
</view>
@@ -639,7 +644,7 @@
app.isLoading = true
OrderApi.getOrder(app.orderId)
.then(result => {
console.log("result: ", result);
console.log("result: {}", result);
const order = result.data
app.order = order
app.equipment = result.data.equipment
@@ -812,15 +817,18 @@
content: '确认收到商品了吗?',
success(o) {
if (o.confirm) {
OrderApi.receipt(orderId)
.then(result => {
// 显示成功信息
app.$success(result.message)
setTimeout(() => {
// 刷新当前订单数据
app.getOrderDetail(true)
}, 1500)
})
// OrderApi.receipt(orderId)
// .then(result => {
// // 显示成功信息
// app.$success(result.message)
// setTimeout(() => {
// // 刷新当前订单数据
// app.getOrderDetail(true)
// }, 1500)
// })
this.$navTo('pages/order/delivery', {
orderId
})
}
}
});