Commit c225ec44a9f9ac312cabebc761885e65f3b70659

Authored by vking
1 parent a34ae0f0

taocan

Showing 1 changed file with 12 additions and 10 deletions
1 <!--components/2.0/taocan/lists.wxml--> 1 <!--components/2.0/taocan/lists.wxml-->
2 -<view class="view padding-lg bg-white padding-bottom-sm">  
3 - <view class="view text-bold text-xxl margin-bottom">超值套餐</view>  
4 - <block wx:for="{{lists}}" wx:key="lists">  
5 - <card detail="{{item}}" wx:if="{{index<rowLimit}}"></card>  
6 - </block>  
7 -</view>  
8 -<view class="view taocan-more {{rowLimit==9999?'opened':''}} solid-top flex align-center justify-center" wx:if="{{lists.length>3}}" bindtap="more">  
9 - <view class="view txt-28-h margin-right-sm">{{rowLimit==9999?'收起':'展开更多'}}</view>  
10 - <view class="view icon"></view>  
11 -</view>  
  2 +<block wx:if="{{lists.length>0}}">
  3 + <view class="view padding-lg bg-white padding-bottom-sm">
  4 + <view class="view text-bold text-xxl margin-bottom">超值套餐</view>
  5 + <block wx:for="{{lists}}" wx:key="lists">
  6 + <card detail="{{item}}" wx:if="{{index<rowLimit}}"></card>
  7 + </block>
  8 + </view>
  9 + <view class="view taocan-more {{rowLimit==9999?'opened':''}} solid-top flex align-center justify-center" wx:if="{{lists.length>3}}" bindtap="more">
  10 + <view class="view txt-28-h margin-right-sm">{{rowLimit==9999?'收起':'展开更多'}}</view>
  11 + <view class="view icon"></view>
  12 + </view>
  13 +</block>