<!--pages/GoodsClassify/GoodsClassify.wxml-->
<view class="section goods-class">
	<view class="section list" wx:for-index="index1" wx:key="{{index1}}" wx:for-item="item" wx:for="{{classify_data}}">
		<view class="ul box-a" data-num="{{1}}" data-index="{{index1}}" catchtap="oneLevel">
			<view class="li left">
				<view class="span">{{item.name}}</view>
			</view>
			<view class="li right">
				<icon class="iconfont icon-more" data-num="{{1}}" data-index="{{index1}}" catchtap="levelMore"></icon>
				<icon class="iconfont icon-member-bottom" wx:if="{{item.level_active == false}}"></icon>
				<icon class="iconfont icon-member-top" wx:if="{{item.level_active == true}}"></icon>
			</view>
			<view class="more" wx:if="{{item.btn_active}}">
				<view class="ul">
					<view class="li" data-num="{{1}}" data-numc="{{2}}" data-index="{{index1}}" catchtap="classifyRoute">
						<icon class="iconfont icon-add"></icon>
						<view class="span">添加</view>
					</view>
					<view class="li" data-num="{{2}}" data-numc="{{1}}" data-index="{{index1}}" catchtap="classifyRoute">
						<icon class="iconfont icon-edit"></icon>
						<view class="span">编辑</view>
					</view>
					<view class="li" data-num="{{1}}" data-index="{{index1}}" catchtap="deleteClassify">
						<icon class="iconfont icon-delete"></icon>
						<view class="span">删除</view>
					</view>
				</view>
				<view class="icon">
					<icon class="iconfont icon-up"></icon>
				</view>
			</view>
		</view>
		<view class="section" wx:for-index="index2" wx:key="{{index2}}" wx:for-item="val" wx:for="{{item.childrens}}" wx:if="{{item.level_active}}">
			<view class="ul box-b">
				<view class="li left">
					<view class="span">{{val.name}}</view>
				</view>
				<view class="li right">
					<icon class="iconfont icon-more" catchtap="levelMore" data-num="{{2}}" data-numc="{{2}}" data-index="{{index1}}"
					 data-indexc="{{index2}}"></icon>
					<icon class="iconfont icon-member-top"></icon>
				</view>
				<view class="more" wx:if="{{val.btn_active}}">
					<view class="ul">
						<view class="li" catchtap="classifyRoute" data-num="{{2}}" data-numc="{{2}}" data-index="{{index1}}" data-indexc="{{index2}}">
							<icon class="iconfont icon-edit"></icon>
							<view class="span">编辑</view>
						</view>
						<view class="li" data-num="{{2}}" data-index="{{index1}}" data-indexc="{{index2}}" catchtap="deleteClassify">
							<icon class="iconfont icon-delete"></icon>
							<view class="span">删除</view>
						</view>
					</view>
					<view class="icon">
						<icon class="iconfont icon-up"></icon>
					</view>
				</view>
			</view>
		</view>
	</view>
	<view class="bottom">
		<view class="button" catchtap="addClassify">
			<icon class="iconfont icon-life-game-plus"></icon>添加分类
		</view>
	</view>
</view>
