From 0a2589ad83ffe64d021b009e33f8ff93b27d8536 Mon Sep 17 00:00:00 2001
From: 346149741 <346149741@qq.com>
Date: 星期六, 22 六月 2024 19:31:40 +0800
Subject: [PATCH] 投诉列表

---
 pages/message/list.vue |   54 ++++++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 46 insertions(+), 8 deletions(-)

diff --git a/pages/message/list.vue b/pages/message/list.vue
index 52d7c89..ac92ab8 100644
--- a/pages/message/list.vue
+++ b/pages/message/list.vue
@@ -2,22 +2,22 @@
 	<view>
 		<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-sticky>
-		<view class="item">
+		<view class="item" v-for="(item,index) in list1">
 			<img src="/static/i05.png" class="img" alt="" />
 			<view class="right">
 				<view class="name">
-					鍖椾含灏氱瓥浜掑姩绉戞妧鏈夐檺鍏徃
+					{{item.companyName}}
 				</view>
 				<view class="box">
 					<view class="l">
-						<p>鎵ф硶鍗曚綅锛氬啘涓氬啘鏉戝眬</p>
-						<p>鎵ф硶鏃堕棿锛�2024-06-03 12:30:67</p>
+						<p>鎵ф硶鍗曚綅锛歿{item.executeDeptName}}</p>
+						<p>鎵ф硶鏃堕棿锛歿{item.executeTime}}</p>
 					</view>
-					<view class="r">
+					<view class="r" @click="chakan(item.orderId)">
 						鍘绘煡鐪�
 					</view>
 				</view>
@@ -27,14 +27,50 @@
 </template>
 
 <script>
+	import {  showList } from '@/api/index.js'
+	
 	export default {
 		data() {
 			return {
-				
+				list1:[],
+				queryParams: {
+					pageNum: 1,
+					pageSize: 10
+				},
+				total: 1,
 			}
 		},
+		onShow() {
+			this.list1 = []
+			this.queryParams.pageNum = 1
+			this.getList()
+		},
+		onReachBottom() {
+			if(this.list1.length == this.total) {
+				return
+			}
+			this.queryParams.pageNum++
+			this.getList()
+		},
 		methods: {
-			
+			search(e){
+				this.list1 = []
+				this.queryParams.pageNum =1
+				this.queryParams.companyName = e
+				this.getList()
+			},
+			chakan(id){
+				uni.navigateTo({
+					url: `/pages/message/details?id=${id}`
+				})
+			},
+			getList() {
+				showList({...this.queryParams}).then(val => {
+					// console.log(val.data)
+					this.total = val.data.total
+					this.list1 = [...this.list1,...val.data.rows]
+				})
+			},
 		}
 	}
 </script>
@@ -80,6 +116,8 @@
 				.l{
 					font-size: 26rpx;
 					 color: #7e8593;
+					 max-width: 80%;
+					 
 				}
 				.r{
 					width: 132rpx;

--
Gitblit v1.9.1