代码更新

This commit is contained in:
GaoHao
2025-03-10 09:14:57 +08:00
parent 4f65b08c06
commit 490c513f48
48 changed files with 1162 additions and 537 deletions

View File

@@ -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')