From 07401392be0115d291e64471325fcc4c17ba2be9 Mon Sep 17 00:00:00 2001
From: wjt <1797368093@qq.com>
Date: 星期五, 21 六月 2024 15:26:35 +0800
Subject: [PATCH] 图片压缩

---
 policy/applyRecord/applyRecord.vue |  102 ++++++++++++++++++++++-----------------------------
 1 files changed, 44 insertions(+), 58 deletions(-)

diff --git a/policy/applyRecord/applyRecord.vue b/policy/applyRecord/applyRecord.vue
index 1eea770..41a70c4 100644
--- a/policy/applyRecord/applyRecord.vue
+++ b/policy/applyRecord/applyRecord.vue
@@ -2,13 +2,13 @@
 	<view class="page-box">
 		<u-sticky bgColor="white">
 			<view class="set-search">
-				<u-search placeholder="璇疯緭鍏ョ敵璇疯褰曞叧閿瘝 "  shape="square" :showAction="false"></u-search>
+				<u-search placeholder="璇疯緭鍏ョ敵璇疯褰曞叧閿瘝 " @search="search" @blur="search" shape="square" :showAction="false"></u-search>
 			</view>
 			<view class="border"></view>
-			<u-tabs :list="list1" @click="click" :scrollable="false" bgColor="white"></u-tabs>
+			<u-tabs :list="list1" @click="click" :current="current" :scrollable="false" bgColor="white"></u-tabs>
 		</u-sticky>
 		<view class="list">
-			<view class="list-item" @click="goReport">
+			<view class="list-item" @click="goReport" v-for="(item,index) in dataList" :key="index">
 				<view class="top-title">
 					<text>24骞�5鏈堢獊鍑绘鏌ユ秷闃插畨鍏�</text>
 					<text class="status">宸茬粨鏉�</text>
@@ -34,80 +34,53 @@
 
 				</view>
 			</view>
-			<view class="list-item">
-				<view class="top-title">
-					<text>24骞�5鏈堢獊鍑绘鏌ユ秷闃插畨鍏�</text>
-					<text class="status">宸茬粨鏉�</text>
-				</view>
-				<view class="user-info">
-					<text>鐜嬫�濋洦</text>
-					<view class="driver"></view>
-					<text>鎵ф硶涓�澶ч槦</text>
-				</view>
-				<view class="set-line">
-					<text>鎵ф硶瀵硅薄锛�</text>娌冲崡瑙夐啋绉戞妧鏈夐檺鍏徃
-				</view>
-				<view class="line"></view>
-				<view class="set-flex set-start set-flex-content-between">
-					<view>
-						<view class="set-line1">
-							<text>鎵ф硶鏃堕棿锛�</text>2024-05-12 12:00
-						</view>
-						<view class="set-line1">
-							<text>鐢宠鏃堕棿锛�</text>2024-05-12 12:00:12
-						</view>
-					</view>
-
-				</view>
-			</view>
-			<view class="list-item">
-				<view class="top-title">
-					<text>24骞�5鏈堢獊鍑绘鏌ユ秷闃插畨鍏�</text>
-					<text class="status">宸茬粨鏉�</text>
-				</view>
-				<view class="user-info">
-					<text>鐜嬫�濋洦</text>
-					<view class="driver"></view>
-					<text>鎵ф硶涓�澶ч槦</text>
-				</view>
-				<view class="set-line">
-					<text>鎵ф硶瀵硅薄锛�</text>娌冲崡瑙夐啋绉戞妧鏈夐檺鍏徃
-				</view>
-				<view class="line"></view>
-				<view class="set-flex set-start set-flex-content-between">
-					<view>
-						<view class="set-line1">
-							<text>鎵ф硶鏃堕棿锛�</text>2024-05-12 12:00
-						</view>
-						<view class="set-line1">
-							<text>鐢宠鏃堕棿锛�</text>2024-05-12 12:00:12
-						</view>
-					</view>
-
-				</view>
-			</view>
+			 <u-empty v-if="!dataList.length"></u-empty>
 		</view>
 	</view>
 </template>
 
 <script>
+	import { orderList } from '@/api/policy.js'
 	export default {
 		data() {
 			return {
+				current: 0,
 				list1: [{
 					name: '鍏ㄩ儴',
+					value: ''
 				}, {
 					name: '寰呭鎵�',
+					value: 1
 				}, {
 					name: '寰呮墽琛�',
+					value: 2
 				}, {
 					name: '寰呬笂鎶�',
+					value: 3
 				}, {
 					name: '宸叉嫆缁�',
+					value: -1
 				}, {
 					name: '宸茬粨鏉�',
-				}]
+					value: 4
+				}],
+				queryParams: {
+					pageNum: 1,
+					pageSize: 10
+				},
+				total: 1,
+				dataList: []
 			}
+		},
+		onShow() {
+			this.orderList()
+		},
+		onReachBottom() {
+			if(this.list.length == this.total) {
+				return
+			}
+			this.queryParams.pageNum++
+			this.orderList()
 		},
 		methods: {
 			goReport() {
@@ -115,8 +88,21 @@
 					url: `/policy/applyRecordDetails/applyRecordDetails`
 				})
 			},
-			click() {
-
+			click(e) {
+				this.queryParams.pageNum = 1
+				this.current = e.index
+			},
+			orderList() {
+				orderList({...this.queryParams, orderStatus: this.list1[this.current].value}).then(val => {
+					// console.log(val.data)
+					this.total = val.data.total
+					this.dataList = [...this.dataList,...val.data.rows]
+				})
+			},
+			search(e){
+				this.queryParams.pageNum =1
+				this.queryParams.companyName = e
+				this.orderList()
 			}
 		}
 	}

--
Gitblit v1.9.1