zpj před 2 roky
rodič
revize
ae8619dd53
2 změnil soubory, kde provedl 11 přidání a 3 odebrání
  1. 10 2
      pages/index/index.vue
  2. 1 1
      pages/index/search-record.vue

+ 10 - 2
pages/index/index.vue

@@ -15,7 +15,8 @@
 		</view>
 		
 		<!-- 搜索 -->
-		<view class="index-search box-border-box" :style="[{'top': BarH + 'px','background':bgckgroundSearch}]">
+		<view class="index-search box-border-box" @click="toUrl(1)"
+		:style="[{'top': BarH + 'px','background':bgckgroundSearch}]">
 			<view class="index-search-box box-border-box align-items-center">
 				<uni-icons type="search" size="20" color="#000"></uni-icons>
 				<view class="fs-28 fc-9 ml-10">搜索店铺名称或者商品名称</view>
@@ -192,7 +193,14 @@
       
 		},
 		methods: {
-			
+			toUrl(type){
+				if(type === 1){
+					// 去搜索
+					uni.navigateTo({
+						url:'/pages/index/search-record'
+					})
+				}
+			}
 		},
 	}
 </script>

+ 1 - 1
pages/index/search-record.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="seacrh-record-index">
-		<Nav :customNav='true' :bgckgroundBox='bgckgroundBox'></Nav>
+		<Nav title='搜索' bgckgroundBox='transparent'></Nav>
 	</view>
 </template>