Commit 168b8aa3 authored by 14699's avatar 14699

fix-问题修改

parent 90c9f1c0
......@@ -40,37 +40,37 @@ const queryList = async () => {
refreshing = true
let res = await api.contractQueryAll({ receivets: + new Date() + '', ...pager })
if (res.success) {
// if (res.total == 0) finished = true
listValue = res.rows.map(item => {
return {
if (res.success && res.total > 0) {
res.rows.forEach(item => {
let temp = {
...item,
title: item.contractNumber + '' || '',
other_title: item.acceptDate?.split(' ')[0] || '',
values: [["机型", "机号", "状态", "代理店"], [item.model, item.machineNumber, item.contractStatus, item.agencyName]],
...item
values: [["机型", "机号", "状态", "代理店"], [item.model, item.machineNumber, item.contractStatus, item.agencyName]]
}
listValue.push(temp)
})
} else {
listValue = []
// finished = true
finished = true
}
refreshing = false
}
queryList()
// const onRefresh = () => {
// listValue = [];
// pager.page = 1;
// pager.pageSize = 10;
// finished = false
// queryList()
// };
//
// const loadApproval = () => {
// pager.page++;
// queryList()
// }
const onRefresh = () => {
// 下拉重置参数,重新加载
listValue = [];
pager.page = 1;
pager.pageSize = 10;
finished = false
queryList()
};
const loadApproval = () => {
pager.page++;
queryList()
}
const router = useRouter();
const jump = () => {
......
......@@ -66,7 +66,7 @@ const firstFormConfig = $ref(new AuFormClass([
isRequired: true
}
]))
const FirstFormValues = $ref({})
let FirstFormValues = $ref({})
const secondFormConfig = $ref({})
const lastFormConfig = $ref(new AuFormClass([
{
......@@ -179,7 +179,7 @@ const nextStep = async () => {
}
}
const buttonValues = $ref('获取验证码')
let buttonValues = $ref('获取验证码')
const getSms = async () => {
if (phoneReg.test(secondFormConfig.tel)) {
let res = await api.phoneValid({
......
<template>
<RepayPlan navTitle="还款计划" :currencyObj="currencyObj">
<RepayPlan navTitle="还款计划" :currencyObj="currencyObj" @click-left="goBack" >
<template #list>
<div class="repay_list">
<div class="left">
......@@ -41,6 +41,7 @@
<script setup>
import RepayPlan from '@/components/RepayPlan.vue'
import { goBack } from "@/utils/globalFun"
import { Icon } from 'vant'
import {useRoute} from 'vue-router'
import api from "../api";
......
......@@ -5,7 +5,7 @@
<section class="list">
<PullRefresh v-model="refreshing" @refresh="onRefresh" class="scroll">
<List :finished="finished" finished-text="没有更多了" @load="loadApproval">
<ListItem v-for="item in listValue" :title="item.title" :values="item.values" @click="jump" />
<ListItem v-for="item in listValue" :title="item.title" :values="item.values"/>
</List>
</PullRefresh>
</section>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment