代码更新
This commit is contained in:
@@ -72,7 +72,8 @@
|
||||
<script setup>
|
||||
import { reactive,ref } from 'vue';
|
||||
import { debounce } from '@/commons/utils/debounce.js'
|
||||
import { creditRePayment, creditPayment } from '@/http/yskApi/credit.js'
|
||||
import { getCreditBuyerPage,creditBuyerRepayment,creditBuyerOrderPay } from '@/api/buyer.js';
|
||||
|
||||
const props=defineProps({
|
||||
show:{
|
||||
type:Boolean,
|
||||
@@ -156,7 +157,7 @@
|
||||
...pageData.formData
|
||||
}
|
||||
if ( !pageData.formData.orderId ) {
|
||||
creditRePayment(params).then((res) => {
|
||||
creditBuyerRepayment(params).then((res) => {
|
||||
console.log(res.repaymentCount > 0)
|
||||
if (res.repaymentCount > 0) {
|
||||
uni.$u.toast('还款成功')
|
||||
@@ -173,7 +174,7 @@
|
||||
|
||||
})
|
||||
} else {
|
||||
creditPayment(params).then((res) => {
|
||||
creditBuyerOrderPay(params).then((res) => {
|
||||
if (!res.repaymentMsg) {
|
||||
uni.$u.toast('付款成功')
|
||||
emits('affirm')
|
||||
|
||||
Reference in New Issue
Block a user