下单退款相关更新

This commit is contained in:
GaoHao
2025-03-15 18:30:27 +08:00
parent c2135c6119
commit 994cf8bf2b
54 changed files with 682 additions and 2408 deletions

View File

@@ -159,34 +159,14 @@
if ( !pageData.formData.orderId ) {
creditBuyerRepayment(params).then((res) => {
console.log(res.repaymentCount > 0)
if (res.repaymentCount > 0) {
uni.$u.toast('还款成功')
emits('affirm')
close();
} else {
uni.$u.toast(res.repaymentMsg)
setTimeout(()=>{
emits('affirm')
close();
},2000)
}
emits('affirm')
close();
})
} else {
creditBuyerOrderPay(params).then((res) => {
if (!res.repaymentMsg) {
uni.$u.toast('付款成功')
emits('affirm')
close();
} else {
uni.$u.toast(res.repaymentMsg)
setTimeout(()=>{
emits('affirm')
close();
},2000)
}
emits('affirm')
close();
})
}

View File

@@ -46,7 +46,7 @@
<view><text class="cell_label">付款时间</text><text class="cell_value">{{item.lastPaymentTime || '-'}}</text></view>
</view>
<view class="bottomBox">
<view class="btn record" @tap="toUrl('PAGES_CREDIT_BUYER_REPAYMENTRECORD',{id: pageData.query.creditBuyerId, orderId: item.id})">账单付款记录</view>
<view class="btn record" @tap="toUrl('PAGES_CREDIT_BUYER_REPAYMENTRECORD',{id: pageData.query.creditBuyerId, orderId: item.orderId})">账单付款记录</view>
<view class="btn payment" @tap="repaymentOpen(item)" :style="{ backgroundColor: pageData.repaymentMethod == 'total' ? '#999' :''}">付款</view>
</view>
</view>