yuminge-app/yun-min-program-plugin-master/packageF/debt/component/classify/classify.wxml

54 lines
2.5 KiB
Plaintext

<!--packageA/member/supplier/component/classify/classify.wxml-->
<view class="box">
<view class="leftBox">
<scroll-view style="height:72.5vh;" scroll-y="true" bindscrolltolower="getMoreCategoryNew">
<view class="leftList {{index == firstClass ? 'firtClassRd' : ''}}" wx:for="{{categoryInfo}}" wx:key="index" catchtap="tapOneClass" data-ind='{{index}}'>{{item.name}}
<view class="line" wx:if="{{index == firstClass}}"></view>
</view>
</scroll-view>
</view>
<view class="rightBox">
<!-- 开启了三级分类,二级分类选项 -->
<scroll-view scroll-x='true' bindscrolltolower="getMoreCategoryNew_two" wx:if="{{cat_level == '3'}}">
<view class="twoClass">
<block wx:for="{{categoryInfo_two}}" wx:key="index">
<view catchtap="tapRightTwo" class="twoClass_li {{twoClass == index?'tapClassRd':''}}" data-id="{{index}}" data-kid="{{item.id}}">
{{item.name}}
</view>
</block>
</view>
</scroll-view>
<scroll-view scroll-y="true" style="height:63vh;" scroll-into-view='{{keyInto}}'>
<view wx:for="{{categoryInfo_two}}" wx:key="index" wx:if="{{cat_level == '3'}}" id="thr_id{{item.id}}">
<view class="threeClass">{{item.name}}</view>
<view class="ul" wx:if="{{item.has_many_children}}">
<block wx:for="{{item.has_many_children}}" wx:for-item="itemK" wx:key="index">
<view class="li" catchtap="toSearch" data-id="{{item.id}}">
<view class='liImg'>
<image src="{{itemK.thumb_url}}"></image>
</view>
<view class="txt">{{itemK.name}}</view>
</view>
</block>
</view>
</view>
<!-- 二级 -->
<view class="ul" wx:if="{{cat_level == '2'}}">
<block wx:for="{{categoryInfo_two}}" wx:key="index">
<view class="li" catchtap="toSearch" data-id="{{item.id}}">
<view class='liImg'>
<image src="{{item.thumb_url}}"></image>
</view>
<view class="txt">{{item.name}}</view>
</view>
</block>
</view>
</scroll-view>
</view>
</view>