Explorar o código

所属企业点击历史搜索

gjy %!s(int64=3) %!d(string=hai) anos
pai
achega
abc394d4f5
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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')