Explorar el Código

搜索tag

更新搜索记录
RegMs If hace 4 años
padre
commit
f598549280
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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>