Browse Source

搜索tag

更新搜索记录
RegMs If 4 years ago
parent
commit
f598549280
1 changed files with 2 additions and 2 deletions
  1. 2 2
      miniprogram/pages/search/search.wxml

+ 2 - 2
miniprogram/pages/search/search.wxml

@@ -12,8 +12,8 @@
   <view class="hot-tag-block">
     <view class="hot-tag-title primary-text-color">历史搜索</view>
     <view class="hot-tags secondary-text-color">
-      <view class="hot-tag" wx:for="{{hotTagData}}" wx:key="tag" wx:for-item="item" data-search-tag="{{item.tag}}"
-        bindtap="searchTag">{{item.tag}}</view>
+      <view class="hot-tag" wx:for="{{searchHistory}}" wx:key="*this" wx:for-item="item" data-search-tag="{{item}}"
+        bindtap="searchTag">{{item}}</view>
     </view>
   </view>