<!--packageA/member/supplier/component/classify/classify.wxml-->
<view class="box">
    <view class="leftBox">
        <scroll-view style="height:57.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>
        </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:54vh;" 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.category_3}}">
                    <block wx:for="{{item.category_3}}" wx:for-item="itemK" wx:key="index">
                        <view class="li" catchtap="toSearch" data-id="{{item.id}}">
                            <view class='liImg'>
                                <image src="{{itemK.thumb}}"></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}}"></image>
                        </view>
                        <view class="txt">{{item.name}}</view>
                    </view>
                </block>
            </view>
        </scroll-view>




    </view>
</view>