|
|
@@ -185,6 +185,14 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
+ <!-- 退款方式提示:对齐采购售后,按原单 onlinePay / payWay 说明审核后资金去向 -->
|
|
|
+ <view class="tip-section">
|
|
|
+ <text v-if="Number(orderInfo.onlinePay) == 2" class="tip-text online-tip">此单线上付款,审核通过后钱将原路退回</text>
|
|
|
+ <text v-else-if="Number(orderInfo.payWay) == 2" class="tip-text online-tip">此单余额付款,审核通过后钱将退回账户余额</text>
|
|
|
+ <text v-else-if="Number(orderInfo.payWay) == 3 || Number(orderInfo.debt) == 1" class="tip-text debt-tip">此单挂账,审核通过后挂账金额会相应减少</text>
|
|
|
+ <text v-else class="tip-text offline-tip">此单线下付款,审核通过后需商家确认退回方式</text>
|
|
|
+ </view>
|
|
|
+
|
|
|
<!-- 备注 -->
|
|
|
<view class="card-section">
|
|
|
<view class="section-title">
|
|
|
@@ -579,11 +587,25 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
const money = Number(this.refundMoney) || 0
|
|
|
- const content = money > 0
|
|
|
+ let title = '确认提交'
|
|
|
+ let content = money > 0
|
|
|
? '申请退款 ¥' + this.refundMoney + ',提交后需商家审核'
|
|
|
: '订单实付为0,提交后将申请退回红包,需商家审核'
|
|
|
+ // 按支付方式补充去向说明(对齐采购售后确认弹窗)
|
|
|
+ if (money > 0) {
|
|
|
+ if (Number(this.orderInfo.onlinePay) == 2) {
|
|
|
+ content = '此单线上付款,审核通过后钱将原路退回。申请退款 ¥' + this.refundMoney + '?'
|
|
|
+ } else if (Number(this.orderInfo.payWay) == 2) {
|
|
|
+ content = '此单余额付款,审核通过后钱将退回余额。申请退款 ¥' + this.refundMoney + '?'
|
|
|
+ } else if (Number(this.orderInfo.payWay) == 3 || Number(this.orderInfo.debt) == 1) {
|
|
|
+ content = '此单挂账,审核通过后挂账金额会减少。申请退款 ¥' + this.refundMoney + '?'
|
|
|
+ } else {
|
|
|
+ title = '特别注意'
|
|
|
+ content = '此单线下付款,审核通过后需商家确认退回方式。申请退款 ¥' + this.refundMoney + '?'
|
|
|
+ }
|
|
|
+ }
|
|
|
uni.showModal({
|
|
|
- title: '确认提交',
|
|
|
+ title: title,
|
|
|
content: content,
|
|
|
success: res => {
|
|
|
if (res.confirm) {
|
|
|
@@ -661,6 +683,37 @@ export default {
|
|
|
line-height: 1.5;
|
|
|
}
|
|
|
|
|
|
+/* 支付方式去向提示 */
|
|
|
+.tip-section {
|
|
|
+ margin: 0 20upx 20upx;
|
|
|
+ padding: 20upx;
|
|
|
+ border-radius: 12upx;
|
|
|
+ .tip-text {
|
|
|
+ display: block;
|
|
|
+ font-size: 28upx;
|
|
|
+ line-height: 1.5;
|
|
|
+ font-weight: 500;
|
|
|
+ &.online-tip {
|
|
|
+ background: rgba(51, 133, 255, 0.1);
|
|
|
+ color: #3385ff;
|
|
|
+ padding: 16upx 20upx;
|
|
|
+ border-radius: 8upx;
|
|
|
+ }
|
|
|
+ &.debt-tip {
|
|
|
+ background: rgba(230, 126, 34, 0.12);
|
|
|
+ color: #e67e22;
|
|
|
+ padding: 16upx 20upx;
|
|
|
+ border-radius: 8upx;
|
|
|
+ }
|
|
|
+ &.offline-tip {
|
|
|
+ background: rgba(255, 77, 109, 0.1);
|
|
|
+ color: #ff4d6d;
|
|
|
+ padding: 16upx 20upx;
|
|
|
+ border-radius: 8upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
.card-section {
|
|
|
background: #fff;
|
|
|
margin: 0 20upx 20upx;
|