From 76c374d958ce72c3e1bc86cfb652afb58df1e213 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期三, 24 八月 2022 17:00:33 +0800
Subject: [PATCH] #

---
 pages/basics/notificationFile.vue |  151 ++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 139 insertions(+), 12 deletions(-)

diff --git a/pages/basics/notificationFile.vue b/pages/basics/notificationFile.vue
index 2693199..a8faae5 100644
--- a/pages/basics/notificationFile.vue
+++ b/pages/basics/notificationFile.vue
@@ -1,10 +1,38 @@
 <template>
 	<view>
-		<view style="width: 100%;height: 200rpx;background-color: aqua;margin-top: 10rpx;"
-			v-for="(item,index) in listData" :key="index">
-			<text>{{index}}</text>
+		<!-- 鎼滅储妗� -->
+		<view class="search-box">
+			<view class="search-area">
+				<view class="search-icon"><uni-icons type="search" size="25" color="#a5a5a5"></uni-icons></view>
+				<input type="text" v-model="zpallet" placeholder=" 鎵樼洏鏉$爜"/>
+				<view class="close-icon" @click="reset()"><uni-icons type="closeempty" size="25" color="#a5a5a5"></uni-icons></view>
+			</view>
+			<view class="search-btn"><button @click="search(zpallet)" class="cu-btn bg-blue">鎼滅储</button></view>
 		</view>
-		<uni-load-more :status="status" :icon-size="16" :content-text="contentText" />
+		
+		<!-- list鍒楄〃 -->
+		<checkbox-group >
+			<view v-for="(item,index) in listData" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" >
+				<view class="data-list-left">
+					<view>鎵樼洏鏉$爜锛歿{item.zpallet}}</view>
+					<view>鎵樼洏鍚嶇О锛歿{item.maktx}}</view>
+					<view>鍟嗗搧缂栫爜锛歿{item.matnr}}-{{item.batch}}</view>
+					<view>浠撳簱鍙凤細{{item.origin}}</view>
+				</view>
+			</view>
+		</checkbox-group>
+		
+		
+		
+		<!-- 搴曢儴鎸夐挳 -->
+		<view class="footer flex justify-around">
+			<view>
+				<button class="cu-btn lg" @click="resst()">閲嶇疆</button>
+			</view>
+			<view>
+				<button class="cu-btn lg pakin-btn bg-red" @click="comb()">鍒犻櫎</button>
+			</view>
+		</view>
 	</view>
 </template>
 
@@ -13,6 +41,7 @@
 		data() {
 			return {
 				commonUrl:null,
+				zpallet:'',
 				listData: [],
 				reload: false,
 				status: 'more',
@@ -31,15 +60,10 @@
 			const PROJ = uni.getStorageSync('UPROJ');
 			this.baseUrl = PROJ
 			this.getUrl()
-			this.getList()
 		},
 		onPullDownRefresh() {
-			this.reload = true;
-			this.getList()
-		},
-		onReachBottom() {
-			this.status = 'more';
-			this.getList();
+			// this.reload = true;
+			// this.getList()
 		},
 		methods: {
 			// 鑾峰彇url
@@ -52,7 +76,7 @@
 					url: that.commonUrl + '/waitPakin/list/auth',
 					data:{
 						curr:1,
-						limit:10,
+						limit:20,
 					},
 					header: {
 						'token':uni.getStorageSync('token')
@@ -78,4 +102,107 @@
 </script>
 
 <style>
+	.search-box {
+		position: fixed;
+		left: 0;
+		top: 0;
+		width: 100%;
+		height: 100rpx;
+		background-color: #FFF;
+		border-bottom: 1px solid #d8d8d8;
+		border-radius: 0 0 20rpx 20rpx;
+		z-index: 1;
+	}
+	/*#ifdef H5 */
+	.search-box {
+		position: fixed;
+		left: 0;
+		top: 89rpx;
+		width: 100%;
+		height: 100rpx;
+		background-color: #ffffff;
+		border-bottom: 1px solid #d8d8d8;
+		border-radius: 0 0 20rpx 20rpx;
+		z-index: 1;
+	}
+	/* #endif */
+	.search-area {
+		display: inline-block;
+		background-color: #F1F1F1;
+		width: 75%;
+		height: 70%;
+		margin: 15rpx;
+		border-radius: 15rpx;
+	}
+	.search-area input {
+		display: inline-block;
+		height: 70rpx;
+		width: 70%;
+		line-height: 70rpx;
+		font-size: 25rpx;
+		font-weight: 400;
+	}
+	.search-btn {
+		display: inline-block;
+		float: right;
+		margin-right: 30rpx;
+		margin-top: 15rpx;
+	}
+	.search-icon {
+		display: inline-block;
+		float: left;
+		width: 70rpx;
+		height: 70rpx;
+		text-align: center;
+		line-height: 70rpx;
+		
+	}
+	.close-icon {
+		display: inline-block;
+		float: right;
+		width: 70rpx;
+		height: 70rpx;
+		text-align: center;
+		line-height: 70rpx;
+	}
+	
+	
+	
+	
+	.bg-false {
+		background-color: #FFFFFF;
+	}
+	.bg-true {
+		background-color: #ebebeb;
+	}
+	
+	.demo-list {
+		border-bottom: 1px solid #d8d8d8;
+		height: 180rpx;
+		margin: 15rpx;
+		border-radius: 20rpx;
+	}
+	.demo-list:first-child {
+		margin-top: 120rpx;
+	}
+	.demo-list:last-child {
+		margin-bottom: 120rpx;
+	}
+	label {
+		display: block;
+	}
+	.demo-list-left {
+		display: inline-block;
+		float: left;
+		text-align: center;
+		width: 100rpx;
+		height: 180rpx;
+		line-height: 180rpx;
+	}
+	.demo-list-right {
+		display: inline-block;
+		float: left;
+		height: 180rpx;
+		color: #828282;
+	}
 </style>
\ No newline at end of file

--
Gitblit v1.9.1