优化退款成功和自行寄回页面

This commit is contained in:
赵毅 2025-09-12 17:13:55 +08:00
parent 866ee54a0b
commit 9ae7f9e088
5 changed files with 59 additions and 26 deletions

View File

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

View File

@ -259,6 +259,18 @@
text-align: center; text-align: center;
} }
.moneyGo-btn{
width: 220rpx;
height: 80rpx;
background-color: #ff370b;
color: #ffffff;
border: none;
border-radius: 40rpx;
font-size: 28rpx;
line-height: 80rpx;
text-align: center;
}
.bottomImg{ .bottomImg{
width: 70rpx; width: 70rpx;
height: 80rpx; height: 80rpx;

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="container"> <view class="container">
<!-- 进度条 --> <!-- 进度条 -->
<view class="progress-container" v-if="false"> <view class="progress-container">
<view class="progress-item"> <view class="progress-item">
<text class="progress-text">商家处理</text> <text class="progress-text">商家处理</text>
</view> </view>
@ -15,7 +15,7 @@
</view> </view>
</view> </view>
<view class="progress-container"> <view class="progress-container" v-if="false">
<view class="progress-item"> <view class="progress-item">
<text class="progress-text">商家处理</text> <text class="progress-text">商家处理</text>
</view> </view>
@ -87,12 +87,12 @@
</view> </view>
<!-- 操作按钮 --> <!-- 操作按钮 -->
<view class="action-buttons" v-if="false"> <view class="action-buttons">
<button class="modify-btn" @click="modifyRefund">寄件详情</button> <button class="modify-btn" @click="shippingDetails">寄件详情</button>
<button class="cancel-btn" @click="moneyGo">钱款去向</button> <button class="moneyGo-btn" @click="moneyGo">钱款去向</button>
</view> </view>
<view class="action-buttons"> <view class="action-buttons" v-if="false">
<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>
@ -104,7 +104,7 @@
<!-- 弹窗头部 --> <!-- 弹窗头部 -->
<view class="popup-header"> <view class="popup-header">
<text class="header-title">退款总额 ¥{{ currentAfterSale.refund_amount ? <text class="header-title">退款总额 ¥{{ currentAfterSale.refund_amount ?
currentAfterSale.refund_amount.toFixed(2) : '34.18' }}</text> currentAfterSale.refund_amount.toFixed(2) : '0.00' }}</text>
<text class="close-btn" @click="closeMoneyGoPopup">取消</text> <text class="close-btn" @click="closeMoneyGoPopup">取消</text>
</view> </view>
@ -118,7 +118,7 @@
</view> </view>
<text class="method-text">退回微信</text> <text class="method-text">退回微信</text>
<text class="method-amount">{{ currentAfterSale.refund_amount ? '¥' + <text class="method-amount">{{ currentAfterSale.refund_amount ? '¥' +
currentAfterSale.refund_amount.toFixed(2) : 34.18' }}</text> currentAfterSale.refund_amount.toFixed(2) : 0.0' }}</text>
</view> </view>
</view> </view>
<!-- 退款状态 --> <!-- 退款状态 -->

View File

@ -137,9 +137,9 @@ export default {
}; };
console.log('提交物流信息:', logisticsInfo); console.log('提交物流信息:', logisticsInfo);
// //
uni.showToast({ uni.showToast({
title: '物流信息提交成功', title: '提交成功',
icon: 'success' icon: 'success'
}); });
} }

View File

@ -26,7 +26,11 @@
<text class="copy-icon" @click="copyAdress"></text> <text class="copy-icon" @click="copyAdress"></text>
</view> </view>
<button class="addOrderIdBtn" @click="addOrderId">填写单号</button> <button class="addOrderIdBtn" @click="addOrderId" v-if="true">填写单号</button>
<view class="logistics-info" v-else>
<text>退货物流</text>
<text v-if="false"></text>
</view>
</view> </view>
<view class="hr"></view> <view class="hr"></view>
@ -83,6 +87,7 @@
<!-- 操作按钮 --> <!-- 操作按钮 -->
<view class="action-buttons"> <view class="action-buttons">
<!-- 填写完物流单号后不显示图片和平台介入按钮 -->
<view> <view>
<image class="bottomImg" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/secdBack_bottom.png" <image class="bottomImg" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/secdBack_bottom.png"
alt="" /> alt="" />
@ -107,7 +112,8 @@ export default {
data() { data() {
return { return {
currentAfterSale: {}, currentAfterSale: {},
pickerDefaultDate: new Date() pickerDefaultDate: new Date(),
logisticsInfo: null
}; };
}, },
created() { created() {
@ -118,8 +124,23 @@ export default {
const item = JSON.parse(options?.item); const item = JSON.parse(options?.item);
console.log("🚀 ~ onLoad ~ item:", item) console.log("🚀 ~ onLoad ~ item:", item)
this.currentAfterSale = item; this.currentAfterSale = item;
this.getLogisticsInfo();
},
onShow() {
//
this.getLogisticsInfo();
}, },
methods: { methods: {
//
getLogisticsInfo() {
const info = uni.getStorageSync('logisticsInfo');
if (info) {
this.logisticsInfo = info;
// storage
// uni.removeStorageSync('logisticsInfo');
}
},
getServiceTypeText(type) { getServiceTypeText(type) {
return type === 1 ? '仅退款' : (type === 2 ? '退货退款' : '换货'); return type === 1 ? '仅退款' : (type === 2 ? '退货退款' : '换货');
}, },