From ca2200ba53b236e8902b706c444375408c782f07 Mon Sep 17 00:00:00 2001
From: Mr.Zhang <710666463@qq.com>
Date: 星期一, 18 九月 2023 15:58:45 +0800
Subject: [PATCH] 09-18 小程序

---
 minipro_standard/pages/index/index.vue |   36 ++++++++++++++++++++++++++++--------
 1 files changed, 28 insertions(+), 8 deletions(-)

diff --git a/minipro_standard/pages/index/index.vue b/minipro_standard/pages/index/index.vue
index 6d2fd6e..88883e6 100644
--- a/minipro_standard/pages/index/index.vue
+++ b/minipro_standard/pages/index/index.vue
@@ -1,5 +1,8 @@
-<template>
-	<view class="index">
+<template>
+	<page-meta :page-style="ban ?'overflow: hidden;': ''"/>
+	<view class="index" >
+		<!-- :class="ban?'scroll-ban': ''" -->
+		<!-- <view class="mask" @tap="tapMask" @touchmove="moveHandle"></view> -->
 		<!-- <web-view v-if="show" @onPostMessage="onMessage" :src="'https://dmtest.ahapp.net/doumeeplant_h5/#/appletLogin?code=' + code"></web-view> -->
 		<!-- {{$store.state.statusbarHeight}} -->
 		
@@ -10,7 +13,7 @@
 					寰呭姙</view>
 				<div class="content_search">
 					<v-Search @searchInput="searchInput" @submit="confirm" @reset="resetType" :isShow="true"
-						placeholder="鎼滅储鍏抽敭瀛�">
+						placeholder="鎼滅储鍏抽敭瀛�" @scrollerBan="$event => ban=$event">
 						<template v-slot:content>
 							<view class="rp contanir">
 								<view class="c2 b">绫诲瀷</view>
@@ -35,7 +38,7 @@
 			</view>
 		</u-sticky>
 		
-		<scroll-view :style="{height: height}" v-if="projectList.length" scroll-y refresher-enabled="true" :refresher-triggered="triggered" @scrolltolower="loadMore"
+		<scroll-view   :style="{height: height}" v-if="projectList.length" scroll-y refresher-enabled="true" :refresher-triggered="triggered" @scrolltolower="loadMore"
 			@refresherrefresh="refresh"
 		>
 			<view v-for="(item, index) in projectList" :key="index">
@@ -58,7 +61,7 @@
 			</view>
 		</scroll-view>
 		<view v-else class="tc c6">鏆傛棤鏁版嵁...</view>
-		<u-popup :show="show" @close="close" :round="8" zIndex="20000">
+		<!-- <u-popup :show="show" @close="close" :round="8" zIndex="20000">
 			<view class="rp p40 contanir">
 				<view class="c2 b">绫诲瀷</view>
 				<view class="content">
@@ -73,7 +76,7 @@
 					<view class="fx1 ptb20 sbtn_gray c9" @click="resetType">閲嶇疆</view>
 					<view class="fx1 ml20 ptb20 sbtn_green" @click="confirm">纭畾</view>
 				</view>
-			</view>
+			</view> -->
 		</u-popup>
 		<myTabbar :index="0" />
 	</view>
@@ -98,6 +101,7 @@
 		},
 		data() {
 			return {
+				ban: false,
 				height: '',
 				top: '',
 				code: '',
@@ -183,7 +187,7 @@
 					.in(this)
 					.select('.content_search')
 					.boundingClientRect((rect) => {
-						that.height = `calc(100vh - ${rect.height + 80}px)`
+						that.height = `calc(100vh - ${rect.height + 150}px)`
 						that.top = `${rect.height}px`
 					})
 					.exec()
@@ -211,6 +215,10 @@
 					.then(res => {
 						this.tagList[0].num = res.data.startNum
 						this.tagList[1].num = res.data.endNum
+						this.$store.commit('SETNUM', {
+							d: res.data.startNum,
+							y: res.data.endNum
+						})
 					})
 					.catch(err => {})
 			},
@@ -409,13 +417,15 @@
 			},
 			resetType() {
 				this.type = ''
-				this.searchForm.type = ''
+				this.searchForm.type = ''
+				this.ban =false
 				this.confirm()
 				
 			},
 			confirm() {
 				this.searchForm.type = this.type
 				this.show = false
+				this.ban =false
 				this.search()
 			},
 			search() {
@@ -557,5 +567,15 @@
 	}
 	.content_search_x {
 		height: 24rpx;
+	}
+	.mask {
+		z-index: 8000;
+		position: fixed;
+		left: 0;
+		top: 0;
+		right: 0;
+		bottom: 0;
+		height: 100vh;
+		background-color: rgba(0, 0, 0, 0.5);
 	}
 </style>

--
Gitblit v1.9.3