<!--pages/goodsCate/goodsCate.wxml-->
<view class="fixedWrap">
	<view class="divide"></view>
	<view class="formArea noMargin">
		<picker bindchange="setTop" value="{{showTopIndex}}" range="{{showTop}}" class="lineGroup">
			<view class="lineInner">
				<view class="label">一级类目</view>
				<view class="content">
					<view class="diyInput hasArrow">
						<view wx:if="{{showTopIndex!==''}}">{{showTop[showTopIndex]}}</view>
						<view wx:if="{{showTopIndex===''}}" class="placeholderStyle">请选择</view>
					</view>
					<i class="iconfont icon-arrowr arrow"></i>
				</view>
			</view>
		</picker>
		<view bindtap="setTwo" wx:if="{{showTopIndex===''}}" class="lineGroup">
			<view class="lineInner">
				<view class="label">二级类目</view>
				<view class="content">
					<view class="diyInput hasArrow">
						<view class="placeholderStyle">请选择</view>
					</view>
					<i class="iconfont icon-arrowr arrow"></i>
				</view>
			</view>
		</view>
		<picker bindchange="setTwo" wx:if="{{showTopIndex!==''}}" value="{{showTwoIndex}}" range="{{showTwo}}" class="lineGroup">
			<view class="lineInner">
				<view class="label">二级类目</view>
				<view class="content">
					<view class="diyInput hasArrow">
						<view wx:if="{{showTwoIndex!==''}}">{{showTwo[showTwoIndex]}}</view>
						<view wx:if="{{showTwoIndex===''}}" class="placeholderStyle">请选择</view>
					</view>
					<i class="iconfont icon-arrowr arrow"></i>
				</view>
			</view>
		</picker>
	</view>
	<view class="searchWrap">
		<view class="inputWrap">
			<i class="iconfont icon-search"></i>
			<input bindinput="getKeywords" value="{{keywords}}" class="input shadow" placeholder="关键字搜索" placeholder-class="placeholderStyle"></input>
		</view>
		<button bindtap="search" class="btn">搜索</button>
	</view>
</view>
<view class="proList">
	<view bindtap="chooseItem" data-index="{{index}}" wx:for="{{list}}" wx:key="_id" hover-class="active" class="proItem">{{item.name}}</view>
</view>
<ipx-placeholder></ipx-placeholder>
<view catchtouchmove="noScroll" class="modal {{fadeIn?'fadeIn':''}}">
	<view class="head">
		<i bindtap="hideMoadal" class="iconfont icon-fail"></i>
	</view>
	<view class="content">
		<view class="lineBox">
			<view class="label">名称</view>
			<view class="cont">{{item.name}}</view>
		</view>
		<view class="lineBox">
			<view class="label">简称</view>
			<view class="cont">{{item.shortName}}</view>
		</view>
		<view class="lineBox">
			<view class="label">分类编码</view>
			<view class="cont">{{item.code}}</view>
		</view>
		<view class="lineBox">
			<view class="label">税率</view>
			<view class="cont">{{item.rate}}</view>
		</view>
		<view class="lineBox">
			<view class="label">关键字</view>
			<view class="cont">{{item.keyword}}</view>
		</view>
		<view class="lineBox">
			<view class="label">描述</view>
			<view class="cont">{{item.desc}}</view>
		</view>
	</view>
	<view class="bottom">
		<button bindtap="selected" class="btn">选择该类</button>
	</view>
</view>
<view catchtouchmove="noScroll" class="backdrop {{fadeIn?'fadeIn':''}}"></view>