From 738dd6bd47e5cec999eb3d61dc82f33b8202f853 Mon Sep 17 00:00:00 2001
From: weipengfei <2187978347@qq.com>
Date: Sat, 22 Jul 2023 15:37:07 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=90=88=E5=90=8C=E5=88=86?=
=?UTF-8?q?=E9=A1=B5=E5=8A=A0=E8=BD=BD=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages.json | 2 +-
subpkg/contract/contract.vue | 32 +++++++++++++++++++++++++-------
2 files changed, 26 insertions(+), 8 deletions(-)
diff --git a/pages.json b/pages.json
index cf08612..0169bda 100644
--- a/pages.json
+++ b/pages.json
@@ -157,7 +157,7 @@
"path" : "contract/contract",
"style" :
{
- "navigationBarTitleText": "合同签订",
+ "navigationBarTitleText": "合同管理",
"enablePullDownRefresh": false
}
diff --git a/subpkg/contract/contract.vue b/subpkg/contract/contract.vue
index d42ff58..badbb6c 100644
--- a/subpkg/contract/contract.vue
+++ b/subpkg/contract/contract.vue
@@ -1,6 +1,6 @@
-
+
@@ -21,7 +21,7 @@
修改时间:{{item.update_time}}
- 365天后到期
+
@@ -33,6 +33,7 @@
+
@@ -42,7 +43,15 @@
data() {
return {
changeType: 0,
- list: []
+ list: [],
+ loadConfig:{
+ page: 1,
+ limit: 15,
+ loadingText: '努力加载中',
+ loadmoreText: '轻轻上拉',
+ nomoreText: '我也是有底线的~~',
+ status: 'loadmore'
+ },
}
},
onLoad() {},
@@ -63,10 +72,19 @@
}) : Toast('暂未开放')
},
async initContractList() {
- let res = await contractList();
- if (res?.data?.data.length > 0) {
- this.list = res.data.data;
+ if(this.loadConfig.status=="nomore")return;
+ this.loadConfig.status="loading"
+ let res = await contractList({
+ page: this.loadConfig.page,
+ limit: this.loadConfig.limit
+ })
+ this.loadConfig.status="loadmore"
+ if(res.data.data.length