carSeries.wxml 1.52 KB
<!--packageEquity/pages/carEquity/carSeries/carSeries.wxml-->
<view class="car-brands-box">
  <view class="car-brands">
    <scroll-view style="height:100%;" scroll-y scroll-into-view="{{letter}}">
      <block wx:for="{{list}}" wx:key="index">
        <view id="series-{{index}}">
          <view class="title car-y-center">{{item.name}}</view>
          <view class="box">
            <block wx:if="{{item.done}}">
              <block wx:for="{{item.childs}}" wx:for-item="i" wx:key="ind" wx:for-index="ind">
                <view class="brands" catchtap="showCarType" data-item="{{item}}" data-i="{{i}}">
                  <view class="list car-y-center">
                    {{i.name}}
                  </view>
                </view>
              </block>
            </block>
            <block wx:else>
              <page-loading>加载中...</page-loading>
            </block>
          </view>
        </view>
      </block>
    </scroll-view>
    <view class="side-bar" id="side-bar">
      <block wx:for="{{list}}" wx:key="index">
        <view class="view" data-index="{{index}}" bindtap="go">{{item.name}}
        </view>
      </block>
    </view>
  </view>
</view>

<block wx:if="{{showType}}">
  <view class="car-type-box">
    <view class="bg" bindtap="cancel" catchtouchmove="noScroll"></view>
    <view class="car-view">
      <block wx:for="{{carTypeList}}" wx:key="index">
        <view class="flex item" bindtap="choose" data-i="{{item}}">
          {{item.name}}
        </view>
      </block>
    </view>
  </view>
</block>