Commit 168b8aa3 authored by 14699's avatar 14699

fix-问题修改

parent 90c9f1c0
...@@ -40,37 +40,37 @@ const queryList = async () => { ...@@ -40,37 +40,37 @@ const queryList = async () => {
refreshing = true refreshing = true
let res = await api.contractQueryAll({ receivets: + new Date() + '', ...pager }) let res = await api.contractQueryAll({ receivets: + new Date() + '', ...pager })
if (res.success) { if (res.success && res.total > 0) {
// if (res.total == 0) finished = true res.rows.forEach(item => {
listValue = res.rows.map(item => { let temp = {
return { ...item,
title: item.contractNumber + '' || '', title: item.contractNumber + '' || '',
other_title: item.acceptDate?.split(' ')[0] || '', other_title: item.acceptDate?.split(' ')[0] || '',
values: [["机型", "机号", "状态", "代理店"], [item.model, item.machineNumber, item.contractStatus, item.agencyName]], values: [["机型", "机号", "状态", "代理店"], [item.model, item.machineNumber, item.contractStatus, item.agencyName]]
...item
} }
listValue.push(temp)
}) })
} else { } else {
listValue = [] finished = true
// finished = true
} }
refreshing = false refreshing = false
} }
queryList() queryList()
// const onRefresh = () => { const onRefresh = () => {
// listValue = []; // 下拉重置参数,重新加载
// pager.page = 1; listValue = [];
// pager.pageSize = 10; pager.page = 1;
// finished = false pager.pageSize = 10;
// queryList() finished = false
// }; queryList()
// };
// const loadApproval = () => {
// pager.page++; const loadApproval = () => {
// queryList() pager.page++;
// } queryList()
}
const router = useRouter(); const router = useRouter();
const jump = () => { const jump = () => {
......
...@@ -66,7 +66,7 @@ const firstFormConfig = $ref(new AuFormClass([ ...@@ -66,7 +66,7 @@ const firstFormConfig = $ref(new AuFormClass([
isRequired: true isRequired: true
} }
])) ]))
const FirstFormValues = $ref({}) let FirstFormValues = $ref({})
const secondFormConfig = $ref({}) const secondFormConfig = $ref({})
const lastFormConfig = $ref(new AuFormClass([ const lastFormConfig = $ref(new AuFormClass([
{ {
...@@ -179,7 +179,7 @@ const nextStep = async () => { ...@@ -179,7 +179,7 @@ const nextStep = async () => {
} }
} }
const buttonValues = $ref('获取验证码') let buttonValues = $ref('获取验证码')
const getSms = async () => { const getSms = async () => {
if (phoneReg.test(secondFormConfig.tel)) { if (phoneReg.test(secondFormConfig.tel)) {
let res = await api.phoneValid({ let res = await api.phoneValid({
......
<template> <template>
<RepayPlan navTitle="还款计划" :currencyObj="currencyObj"> <RepayPlan navTitle="还款计划" :currencyObj="currencyObj" @click-left="goBack" >
<template #list> <template #list>
<div class="repay_list"> <div class="repay_list">
<div class="left"> <div class="left">
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
<script setup> <script setup>
import RepayPlan from '@/components/RepayPlan.vue' import RepayPlan from '@/components/RepayPlan.vue'
import { goBack } from "@/utils/globalFun"
import { Icon } from 'vant' import { Icon } from 'vant'
import {useRoute} from 'vue-router' import {useRoute} from 'vue-router'
import api from "../api"; import api from "../api";
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<section class="list"> <section class="list">
<PullRefresh v-model="refreshing" @refresh="onRefresh" class="scroll"> <PullRefresh v-model="refreshing" @refresh="onRefresh" class="scroll">
<List :finished="finished" finished-text="没有更多了" @load="loadApproval"> <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> </List>
</PullRefresh> </PullRefresh>
</section> </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