This commit is contained in:
1154079537 2024-06-08 17:57:40 +08:00
parent 7f996fbc78
commit c3db002f2d
3 changed files with 23 additions and 11 deletions

View File

@ -17,7 +17,7 @@ export const orderDetailApi = (data) => {
//重新发起支付
export const rePaymentApi = (data) => {
return request.post('/order/order/Repayment', data);
return request.post('/order/order/pay', data);
}
//订单数量统计

View File

@ -62,14 +62,26 @@
datas: {
type: Object,
default: () => {}
},
status: {
type: String,
default: ''
}
})
const navTo = () => {
console.log(status);
if (status == 4) {
console.log(props.datas.id);
uni.navigateTo({
url: "/pages/afterSales/afterSalesOrderDetail?id=" + props.datas.id
})
} else {
uni.navigateTo({
url: `/pagesOrder/detail/detail?type=${props.datas.paid}&id=${props.datas.id}`
})
}
}
const emit = defineEmits(['cancleOrder', 'rePay', 'takeOrder', 'purchaseAgain']);
const cancleOrder = () => {

View File

@ -46,7 +46,7 @@
<modal :show="showTake" title="确认收货" content="请确认您已收到货" @close="showTake=false" @change="confirmReceipt" />
<!-- 退款原因 -->
<up-popup :show="refundShow" closeable round="10" @close="close">
<up-popup :show="refundShow" closeable round="10" @close="refundShow = false">
<view class="address-popup">
<view class="head-title">选择商品</view>
@ -153,7 +153,7 @@
if (swiperCurrent.value == 1 && orderList.value[1].length == 0) getOrderList(1, '', 0); //
if (swiperCurrent.value == 2 && orderList.value[2].length == 0) getOrderList(2, 1, 1); //
if (swiperCurrent.value == 3 && orderList.value[3].length == 0) getOrderList(3, 2, 1); //
if (swiperCurrent.value == 4 && orderList.value[4].length == 0) getOrderList(2, -1, 1); //退
if (swiperCurrent.value == 4 && orderList.value[4].length == 0) getOrderList(4, -1, 1); //退
}
//
@ -163,7 +163,7 @@
showCancel.value = false;
cancelOrderApi({
order_id: cancelId,
value: e.value
value: e.name
}).then(res => {
uni.showToast({
title: '取消成功',
@ -220,7 +220,7 @@
const applyAfterSales = (item) => {
refundShow.value = true;
goodsList.value = item.goods_list;
orderId.value = item.order_id;
orderId.value = item.id;
}
//
@ -359,7 +359,7 @@
if (swiperCurrent.value == 1) getOrderList(1, '', 0); //
if (swiperCurrent.value == 2) getOrderList(2, 1, 1); //
if (swiperCurrent.value == 3) getOrderList(3, 2, 1); //
if (swiperCurrent.value == 4) getOrderList(2, -1, 1); //退
if (swiperCurrent.value == 4) getOrderList(4, -1, 1); //退
}
//
@ -371,7 +371,7 @@
if (swiperCurrent.value == 1) getOrderList(1, '', 0); //
if (swiperCurrent.value == 2) getOrderList(2, 1, 1); //
if (swiperCurrent.value == 3) getOrderList(3, 2, 1); //
if (swiperCurrent.value == 4) getOrderList(2, -1, 1); //退
if (swiperCurrent.value == 4) getOrderList(4, -1, 1); //退
}
let back = 0;
@ -391,7 +391,7 @@
getOrderList(1, '', 0); //
getOrderList(2, 1, 1); //
getOrderList(3, 2, 1); //
getOrderList(2, -1, 1); //退
getOrderList(4, -1, 1); //退
}
onLoad((options) => {