list.wxml
1.17 KB
<view class="list-page">
<view class="top-tab">
<view class="tab-item {{selectCateId == item.value ? 'act' : ''}}" wx:for="{{tabList}}" wx:key="{{index}}" data-val="{{item.value}}" bindtap="listfetch">
<text class="label" data-val="{{item.value}}">{{item.name}}</text>
</view>
</view>
<scroll-view class="scroll-c" style="height: {{widowHeight}}px;" scroll-into-view="{{goScroll}}" scroll-y="true" scroll-with-animation="true" scroll-top="{{top}}">
<view class="brand-level" wx:for="{{brandList.brandList}}" wx:key="{{index}}">
<view class="level-1" id="go-{{item.letter}}">{{item.letter}}</view>
<view class="level-2-c">
<view bindtap="goBrandDetail" class="level-2 eps" wx:for="{{item.brand}}" wx:key="{{index}}" data-brandid="{{item.brandId}}">{{item.brandName}}</view>
</view>
</view>
</scroll-view>
<scroll-view class="letter-fixed" scroll-y="true" scroll-with-animation="true">
<view class="letter-list">
<view wx:for="{{brandList.letters}}" bindtap="goScroll" wx:key="{{index}}" data-name="go-{{item}}">{{item}}</view>
</view>
</scroll-view>
</view>