allBrands.wxml 1.54 KB

<block tt:if="{{onlyTextBrand == '0'}}">
  <view class='rowType2'>
    <block tt:for="{{data}}" tt:key="{{index}}" tt:for-item="item">
      <view class='item' tt:if="{{item.type == 2}}" bindtap="brandItemTapped" data-brand-item="{{item}}" data-F_ID="{{1003}}" data-F_INDEX="{{3}}" data-I_INDEX="{{index}}">
        <image src="{{item.brand_ico}}" class="item_img" mode="aspectFit"></image>
        <text class='item_title'>{{item.brand_name}}</text> 
      </view>
    </block>
  </view>
</block>

<block tt:if="{{onlyTextBrand == '1'}}">
  <view class='rowType'>
    <block tt:for="{{textBrandData}}" tt:key="{{index}}" tt:for-item="item">
      <view id="{{textBrandKey[index] == '0-9' ? 'last' : textBrandKey[index]}}" class='sessionTitle'>
        <text class='sessionText'>{{textBrandKey[index] == '0-9' ? '0' : textBrandKey[index]}}</text> 
      </view>
      <block tt:for="{{item}}" tt:key="{{unique}}" tt:for-item="item">
        <view class='row' tt:if="{{item.type == 2}}" bindtap="brandItemTapped" data-brand-item="{{item}}" data-F_ID="{{1003}}" data-F_INDEX="{{3}}" data-I_INDEX="{{index}}">
          <view class='rowContent'>
            <text class='title'>{{item.brand_name}}</text> 
            <view class='new' tt:if="{{item.is_show_new == 'Y'}}">
              <text class='text'>NEW</text> 
            </view>
            <view class='hot' tt:if="{{item.is_hot == 'Y'}}">
              <text class='text'>HOT</text> 
            </view>
          </view>
          <view class='spaceLine'/>
        </view>
      </block>
    </block>
  </view>
</block>