From 83206a4017aa82e1658208cb55b78833e35deac7 Mon Sep 17 00:00:00 2001
From: Mr.Shi <1878285526@qq.com>
Date: 星期一, 11 九月 2023 18:15:51 +0800
Subject: [PATCH] 小程序

---
 minipro_standard/pages/index/index.vue |   54 ++++++++++++++++++++++++++++++++----------------------
 1 files changed, 32 insertions(+), 22 deletions(-)

diff --git a/minipro_standard/pages/index/index.vue b/minipro_standard/pages/index/index.vue
index ac8f18a..5d46c91 100644
--- a/minipro_standard/pages/index/index.vue
+++ b/minipro_standard/pages/index/index.vue
@@ -4,17 +4,17 @@
 		<!-- {{$store.state.statusbarHeight}} -->
 
 		<u-sticky>
-			<view class="plr50 pb30 nav-style">
+			<view class="plr30 pb30 nav-style">
 				<view
-					:style="{paddingTop: `${statusbarHeight}px`, height: `${navHeight}px`, lineHeight:`${navHeight}px`, textAlign: 'center'}">
+					:style="{background: '#fff', zIndex: '999', paddingTop: `${statusbarHeight}px`, height: `${navHeight}px`, lineHeight:`${navHeight}px`, textAlign: 'center'}">
 					寰呭姙</view>
 				<view class="cY">
-					<u-search placeholder="鎼滅储鍏抽敭瀛�" bgColor="#f7f7f7" :showAction="false" @search="scrolltoupper"
+					<u-search placeholder="鎼滅储鍏抽敭瀛�" bgColor="#f7f7f7" :showAction="false" @search="search"
 						shape="square" v-model="searchForm.mixParam"></u-search>
 					<image src="../../static/filter@2x.png" class="img48 ml20" @click="filterAction" mode=""></image>
 				</view>
 				<view class="cY mt30">
-					<view v-for="item in tagList" :key="item.id" class="sbtn rd8 mr10"
+					<view v-for="item in tagList" :key="item.id" class="tag_item mr10"
 						:class="searchForm.status==item.id?'sbtn_green':'sbtn_black_rim'" @click="selectType(item.id)">
 						{{`${item.name}(${item.num})`}}
 					</view>
@@ -50,7 +50,7 @@
 				<view class="content">
 					<u-grid col="2" :border="false">
 						<u-grid-item v-for="item in types" :key="item.id">
-							<view class="ptb20 c9 type-style tc rd10" :class="type===item.id?'sbtn_green':'sbtn_gray'"
+							<view class="ptb20 f26 c9 type-style tc rd10" :class="type===item.id?'sbtn_green':'sbtn_gray'"
 								@click="type=item.id">{{ item.name }}</view>
 						</u-grid-item>
 					</u-grid>
@@ -159,7 +159,6 @@
 			uni.getSystemInfo({
 				success: res => {
 					this.windowHeight = res.windowHeight
-
 				}
 			})
 			this.loadData()
@@ -198,13 +197,11 @@
 			},
 			selectType(status) {
 				if (this.searchForm.status == status) return
-				this.searchForm.status = status
-				this.scrolltolower()
+				this.searchForm.status = status
+				this.search()
 			},
 			jump(item) {
-				console.log(item);
 				if ((item.type === 0 || item.type === 2 || item.type === 5) && item.status === 0) { // 璺宠浆鍑哄簱(杞簱鍗�)
-				console.log('鍑哄簱');
 					uni.navigateTo({
 						url: `/pages/OutOperation/OutOperation?id=${item.objId}&dbid=${item.id}&type=7`
 					})
@@ -235,14 +232,7 @@
 					uni.navigateTo({
 						url: `/pages/InOperation/InOperation?id=${item.objId}&dbid=${item.id}&type=7`
 					})
-					// router.push({
-					// 	name: 'warehousing',
-					// 	query: {
-					// 		id: item.objId,
-					// 		dbid: item.id,
-					// 		type: 7
-					// 	}
-					// })
+					
 				} else if ((item.type === 1 || item.type === 4 || item.type === 6) && item.status === 1) {
 					if (item.type === 4) { // 璺宠洓瀹屽伐鍏ュ簱璇︽儏
 						// router.push({
@@ -278,7 +268,10 @@
 					// 		id: item.objId
 					// 	}
 					// })
-				} else if (item.type === 9 && item.status === 0) { // 璋冩暣鍏ュ簱(鍏ュ簱鍗�)
+				} else if (item.type === 9 && item.status === 0) { // 璋冩暣鍏ュ簱(鍏ュ簱鍗�)
+					uni.navigateTo({
+						url: `/pages/InOperation/InOperation?id=${item.objId}&dbid=${item.id}&type=9`
+					})
 					// router.push({
 					// 	name: 'warehousing',
 					// 	query: {
@@ -309,8 +302,12 @@
 			},
 			confirm() {
 				this.searchForm.type = this.type
-				this.show = false
-				this.scrolltoupper()
+				this.show = false
+				this.search()
+			},
+			search() {
+				this.page.page = 1
+				this.loadData()
 			}
 		}
 	}
@@ -429,6 +426,19 @@
 	.bottom-view {
 		left: 40rpx;
 		right: 40rpx;
-		bottom: 0
+		bottom: 40rpx
+	}
+	.tag_item {
+		min-width: 120rpx;
+		// padding: 0 24rpx;
+		border-radius: 26rpx;
+		text-align: center;
+		flex-shrink: 0;
+		margin-right: 20rpx;
+		border: 1rpx solid #CCCCCC;
+		font-size: 26rpx;
+		font-weight: 400;
+		height: 52rpx;
+		line-height: 52rpx;
 	}
 </style>

--
Gitblit v1.9.3