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