fix:替换appID为7a9,修复支付分调用失败订单无法正确取消的问题
This commit is contained in:
@@ -90,10 +90,10 @@
|
||||
</view>
|
||||
|
||||
<!-- 同步订单状态按钮 -->
|
||||
<view v-if="order.status === 'waiting_for_payment' || order.orderStatus === 'waiting_for_payment'" class="action-item secondary"
|
||||
<!-- <view v-if="order.status === 'waiting_for_payment' || order.orderStatus === 'waiting_for_payment'" class="action-item secondary"
|
||||
@click="getOrderStatus(order)">
|
||||
同步状态
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -312,7 +312,7 @@
|
||||
title: '处理中'
|
||||
});
|
||||
|
||||
const res = await confirmPaymentAndRent(order.orderId);
|
||||
const res = await confirmPaymentAndRent(order.orderNo);
|
||||
if (res.code === 200) {
|
||||
uni.hideLoading();
|
||||
uni.showToast({
|
||||
@@ -347,10 +347,10 @@
|
||||
});
|
||||
|
||||
const result = await cancelOrder({
|
||||
orderId: order.orderId
|
||||
orderId: order.orderNo
|
||||
});
|
||||
|
||||
if (result.code === 200) {
|
||||
if (result) {
|
||||
uni.hideLoading();
|
||||
uni.showToast({
|
||||
title: '订单已取消',
|
||||
@@ -358,7 +358,7 @@
|
||||
});
|
||||
|
||||
// 刷新订单列表
|
||||
await loadOrderList(orderStatusTabs[currentTab.value].status);
|
||||
await loadOrderList();
|
||||
} else {
|
||||
throw new Error(result.msg || '取消订单失败');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user