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) => { 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: { datas: {
type: Object, type: Object,
default: () => {} default: () => {}
},
status: {
type: String,
default: ''
} }
}) })
const navTo = () => { 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({ uni.navigateTo({
url: `/pagesOrder/detail/detail?type=${props.datas.paid}&id=${props.datas.id}` url: `/pagesOrder/detail/detail?type=${props.datas.paid}&id=${props.datas.id}`
}) })
} }
}
const emit = defineEmits(['cancleOrder', 'rePay', 'takeOrder', 'purchaseAgain']); const emit = defineEmits(['cancleOrder', 'rePay', 'takeOrder', 'purchaseAgain']);
const cancleOrder = () => { const cancleOrder = () => {

View File

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