|
@@ -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')
|