Browse Source

所属企业点击历史搜索

gjy 3 years ago
parent
commit
abc394d4f5
1 changed files with 4 additions and 1 deletions
  1. 4 1
      pages/mine/cargoowner/selectcompany.vue

+ 4 - 1
pages/mine/cargoowner/selectcompany.vue

@@ -13,7 +13,7 @@
 		</view>
 		<view style='margin-left:20px;' v-if='!searching'>
 			<view>最近搜索</view>
-			<view class='historysearch' :style="{'margin-left':index==0 ? '0':'10px'}" v-for='(item,index) in history' >{{item.searchContent}}</view>
+			<view @click='clicksearch(item)' class='historysearch' :style="{'margin-left':index==0 ? '0':'10px'}" v-for='(item,index) in history' >{{item.searchContent}}</view>
 		</view>
 	</view>
 </template>
@@ -61,6 +61,9 @@
 				var replace = '<span style="color:#2772FB;">$1</span>';
 				return str.replace(reg, replace);
 			},
+			clicksearch(item){
+				this.s
+			}
 			checkcompany(item){
 				uni.setStorageSync('currectcompany', item)
 				this.goDetailPage('pages/mine/cargoowner/addEnerprise')