修改换货页面

This commit is contained in:
赵毅 2025-09-12 15:34:05 +08:00
parent ee60321a03
commit 984593109e
3 changed files with 30 additions and 26 deletions

View File

@ -149,10 +149,15 @@ export default {
}); });
}, },
pendingPage(item) { pendingPage(item) {
NavgateTo(`/packages/myOrders/pending/index?item=${JSON.stringify(item)}`); // console.log("🚀 ~ pendingPage ~ item:", item)
// NavgateTo(`/packages/myOrders/sendBack/index?item=${JSON.stringify(item)}`); // if (item.after_sales_type === 3) {
// NavgateTo(`/packages/myOrders/refundOver/index?item=${JSON.stringify(item)}`); //退 NavgateTo(`/packages/myOrders/changeInfo/index?item=${JSON.stringify(item)}`)
// NavgateTo(`/packages/myOrders/changeInfo/index?item=${JSON.stringify(item)}`); // } else {
NavgateTo(`/packages/myOrders/pending/index?item=${JSON.stringify(item)}`); //
// NavgateTo(`/packages/myOrders/sendBack/index?item=${JSON.stringify(item)}`); //
// NavgateTo(`/packages/myOrders/refundOver/index?item=${JSON.stringify(item)}`); //退
// NavgateTo(`/packages/myOrders/changeInfo/index?item=${JSON.stringify(item)}`); //
}
} }
}, },
}; };

View File

@ -213,12 +213,9 @@ page {
.goods-desc { .goods-desc {
font-size: 26rpx; font-size: 26rpx;
color: #ff4d4f; color: #999999;
background-color: #fff2f0;
padding: 4rpx 12rpx;
border-radius: 8rpx; border-radius: 8rpx;
display: inline-block; display: inline-block;
margin: 10rpx 0;
} }
.goods-price { .goods-price {

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="container page"> <view class="container page">
<!-- 进度指示器 --> <!-- 进度指示器 -->
<view class="process-steps_top" v-if="false"> <view class="process-steps_top" v-if="currentAfterSale.process_status === 1">
<view class="step-item"> <view class="step-item">
<view class="step-line"></view> <view class="step-line"></view>
<view class="step-circle active"></view> <view class="step-circle active"></view>
@ -30,15 +30,15 @@
</view> </view>
</view> </view>
<view class="status-tip" v-if="false"> <view class="status-tip" v-if="currentAfterSale.process_status === 3">
<text class="status-title">换货关闭</text> <text class="status-title">换货关闭</text>
<text class="status-desc">2025年7月25日 11:30</text> <text class="status-desc">{{ formatDate(currentAfterSale.revoke_time) }}</text>
<text class="status-desc">由于您主动撤销换货申请,换货关闭</text> <text class="status-desc">由于您主动撤销换货申请,换货关闭</text>
</view> </view>
<view class="status-tip"> <view class="status-tip" v-if="currentAfterSale.review_status === 3">
<text class="status-title">换货关闭</text> <text class="status-title">换货关闭</text>
<text class="status-desc">2025年7月25日 11:30</text> <text class="status-desc">{{ formatDate(currentAfterSale.review_time) }}</text>
<text class="status-desc" style="color: #f63b08;">商家拒绝了您的换货申请,换货关闭</text> <text class="status-desc" style="color: #f63b08;">商家拒绝了您的换货申请,换货关闭</text>
</view> </view>
@ -59,16 +59,14 @@
class="copy-icon" @click="copyRefundNo"/> --> class="copy-icon" @click="copyRefundNo"/> -->
</view> </view>
</view> </view>
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/af_update_address.png" class="icon_2" /> <image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/af_update_address.png"
class="icon_2" />
</view> </view>
</view> </view>
</view> </view>
<button class="addOrderIdBtn" @click="addOrderId">填写单号</button> <button class="addOrderIdBtn" @click="addOrderId">填写单号</button>
</view> </view>
<!-- 商品信息 --> <!-- 商品信息 -->
<view> <view>
<view class="goods-info"> <view class="goods-info">
@ -82,7 +80,7 @@
v-if="currentAfterSale.commodity_order_item[0].is_support_same_day === 1">当日达</text> v-if="currentAfterSale.commodity_order_item[0].is_support_same_day === 1">当日达</text>
{{ currentAfterSale.commodity_order_item[0].goods_name }} {{ currentAfterSale.commodity_order_item[0].goods_name }}
</text> </text>
<text class="goods-desc">{{ ite.after_sales_reason }}</text> <text class="goods-desc">{{ currentAfterSale.commodity_order_item[0].goods_spec }}</text>
<text class="goods-price"> <text class="goods-price">
{{ '¥' + currentAfterSale.commodity_order_item[0].sales_price.toFixed(2) + '/个' }} {{ '¥' + currentAfterSale.commodity_order_item[0].sales_price.toFixed(2) + '/个' }}
<text class="goods-count">X{{ currentAfterSale.commodity_order_item[0].count }}</text> <text class="goods-count">X{{ currentAfterSale.commodity_order_item[0].count }}</text>
@ -105,7 +103,7 @@
</view> </view>
<view class="info-item"> <view class="info-item">
<text class="info-label">换货数量</text> <text class="info-label">换货数量</text>
<text class="info-value">{{ currentAfterSale.commodity_order_item[0].count }}</text> <text class="info-value">{{ currentAfterSale.change_goods }}</text>
</view> </view>
<view class="info-item"> <view class="info-item">
<text class="info-label">申请时间</text> <text class="info-label">申请时间</text>
@ -118,7 +116,7 @@
</view> </view>
<view class="info-item"> <view class="info-item">
<text class="info-label">收货地址</text> <text class="info-label">收货地址</text>
<text class="info-value">{{ currentAfterSale.user_address }}</text> <text class="info-value">{{ currentAfterSale.receiving_address }}</text>
</view> </view>
<view class="info-item" v-if="false"> <view class="info-item" v-if="false">
<text class="info-label">退款完结</text> <text class="info-label">退款完结</text>
@ -128,7 +126,7 @@
</view> </view>
<!-- 操作按钮 --> <!-- 操作按钮 -->
<view class="action-buttons" v-if="false"> <view class="action-buttons" v-if="currentAfterSale.process_status === 1">
<button class="cancel-btn" @click="cancelRefund">撤销申请</button> <button class="cancel-btn" @click="cancelRefund">撤销申请</button>
<button class="urge-btn" @click="modifyRefund">修改申请</button> <button class="urge-btn" @click="modifyRefund">修改申请</button>
</view> </view>
@ -219,7 +217,7 @@ export default {
}, },
methods: { methods: {
getServiceTypeText(type) { getServiceTypeText(type) {
return type === 1 ? '退货退款' : '仅退款'; return type === 1 ? '仅退款' : (type === 2 ? '退货退款' : '换货');
}, },
// //
@ -281,10 +279,14 @@ export default {
confirmColor: "#ff4d4f", confirmColor: "#ff4d4f",
success: (res) => { success: (res) => {
if (res.confirm) { if (res.confirm) {
// const params = {
uni.showToast({ id: this.currentAfterSale.id,
title: '订单撤销成功', }
icon: 'success' request(apiArr.revokeApply, "POST", params).then((res) => {
uni.showToast({
title: '订单撤销成功',
icon: 'success'
});
}); });
} }
}, },