下单退款相关更新
This commit is contained in:
@@ -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();
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user