<wxs src="../../../../utils/filter.wxs" module="filter"></wxs>
<view>
	<view class="head">
		<!-- 搜索 -->
		<view class="flex ai-center fs26 bg-white pd20">
			<view class="input-container f1">
				<input class="input" type="text" value="{{inputVal}}" placeholder="请输入会员手机号码/昵称" bindfocus="inputFocus" bindblur="inputBlur" bindinput="input"/>
				<text class="iconfont icon-guanbi" hidden="{{!isInputFocus}}" catchtap="inputClear"></text>
				<!-- 搜索输入框聚焦时显示关闭按钮，否则隐藏关闭按钮 -->
			</view>
			<view class="pd20 c-red" bindtap="search">搜索</view>
		</view>
		<!-- 条件筛选 -->
		<view class="pr bg-white pdh20 pdb20">
			<view class="flex fs26 t-c">
				<view class="f1 line {{isHiddenDropdown ? '':'active'}}" bindtap="clickDropdown">{{currentSelect}}<text class="iconfont {{isHiddenDropdown ? 'icon-xia':'icon-shang'}} pdl10"></text></view>
				<view class="f1" bindtap="clickSort">佣金
					<text class="iconfont icon-sort2 c-c7" wx:if="{{!isSort}}"></text>
					<text class="t-icon t-icon-sort-up pdl10 {{!isDescending ? 'reverse':''}}" wx:else></text>
				</view>
			</view>
			<view class="dropdown fs26" hidden="{{isHiddenDropdown}}" bindtap="selectDropdown">
				<view class="pd20" wx:for="{{dropdownArr}}" data-index="{{index}}" hover-class="hover">{{item}}</view>
			</view>
		</view>
		<view class="mask" hidden="{{isHiddenDropdown}}" bindtap="clickMask"></view>
	</view>
	
	
	<view class="pd20">		
		<view class="item fs26" wx:for="{{list.pageData}}">
			<view class="flex jc_sb pd20 bdb">
				<view class="time">{{filter.format_time(item.create_time, 1)}}</view>
				<view class="c-red">{{filter.status(item.status, statusArr,item.order_status)}}</view>
			</view>
			<view class="pd20"><text class="c-a fs24">订单号：</text>{{item.order_sn}}</view>
			<view class="flex t-c">
				<view class="pd20 w33">
					<view class="c-a fs24">订单金额</view>
					<view class="pdt10 ellipsis-1"><text class="money">{{item.goods_price}}</text></view>
				</view>
				<view class="pd20 w33 md">
					<view class="c-a fs24">分成金额</view>
					<view class="pdt10 ellipsis-1"><text class="money">{{item.money}}</text></view>
				</view>
				<view class="pd20 w33">
					<view class="c-a fs24">购买者</view>
					<view class="pdt10 ellipsis-1"><text>{{item.nickname}}</text></view>
				</view>
			</view>
		</view>
	</view>
	<nodata class="t-c" wx:if="{{list.pageData.length == 0  && list.pageData}}"></nodata>
	<view class="noMore" hidden="{{!noMore}}" wx:if="{{list.pageData.length !== 0}}">- 已经到底了 -</view>

</view>