فهرست منبع

新增搜索历史页面

gcz 2 سال پیش
والد
کامیت
66e3e90f1e
3فایلهای تغییر یافته به همراه12 افزوده شده و 3 حذف شده
  1. 7 0
      pages.json
  2. 3 1
      pages/index/index.vue
  3. 2 2
      shopping/productsearch.vue

+ 7 - 0
pages.json

@@ -136,6 +136,13 @@
 						"navigationStyle": "custom"
 					}
 				},
+				{
+					"path": "searchhistory",
+					"style": {
+						"navigationBarTitleText": "搜索历史",
+						"navigationStyle": "custom"
+					}
+				},
 				{
 					"path": "producTypetList",
 					"style": {

+ 3 - 1
pages/index/index.vue

@@ -7,11 +7,13 @@
 		<view class="page-wrap">
 			<view class="search-out">
 				<u-search
-					placeholder="请输入搜索商品" 
+					placeholder="搜索商品" 
 					:clearabled="true"
 					:showAction="false"
 					height="80rpx"
+					disabled
 					@search="topSearch"
+					@click="$u.route('/shopping/searchhistory')"
 					bgColor="transparent"
 					v-model="goodsName">
 				</u-search>

+ 2 - 2
shopping/productsearch.vue

@@ -21,7 +21,7 @@
 				v-model="params.goodsName">
 			</u-search>
 		</view>
-		<view class="search-history page-wrap" v-if="searchHistory.length>0">
+	<!-- 	<view class="search-history page-wrap" v-if="searchHistory.length>0">
 			<view class="search-title u-flex u-row-between">
 				<text>最近搜索</text>
 				<u-icon @click="clearStorage" name="trash" color="#666" size="35"></u-icon>
@@ -31,7 +31,7 @@
 					{{item.name}}
 				</text>
 			</view>
-		</view>
+		</view> -->
 		<mescroll-body class="" ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback" :down="downOption" :up="upOption">
 			<view class="page-wrap" >
 				<view class="" v-for="item in dataList" :key="item.id" @click="$u.route('/shopping/productdetails',{id:item.id})">