Преглед на файлове

只有一个领域不显示筛选

xiaohaizhao преди 2 години
родител
ревизия
85feb83ab7
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      pages/index/market/index.wxml

+ 1 - 1
pages/index/market/index.wxml

@@ -1,6 +1,6 @@
 <view class="DrawerPage {{modalName=='viewModal'?'show':''}}">
 <view class="DrawerPage {{modalName=='viewModal'?'show':''}}">
 	<van-search use-action-slot placeholder='请输入搜索关键词' shape='round' bind:search="onSearch" bind:clear="onSearch">
 	<van-search use-action-slot placeholder='请输入搜索关键词' shape='round' bind:search="onSearch" bind:clear="onSearch">
-		<view slot="action" class="cuIcon-filter search-right" bindtap="showModal" data-target="viewModal">
+		<view wx:if="{{filtratelist[0].list.length>1}}" slot="action" class="cuIcon-filter search-right" bindtap="showModal" data-target="viewModal">
 			筛选
 			筛选
 		</view>
 		</view>
 	</van-search>
 	</van-search>