<wxs src="../../../../utils/filter.wxs" module="filter"></wxs>
<view class="main">
	<view class="tab-head flex t-c bdb fs26" bindtap="clickTab">
		<view class="f1 pd20 {{currentTabIndex == index ? 'active':''}}" wx:for="{{tabArr}}" data-index="{{index}}">{{item}}</view>
	</view>
	
	<view class="tab-content">		
		<view class="fs26 item" wx:for="{{list.pageData}}">
			<view class="flex ai-center jc_sb pd20 bdb">
				<view class="flex ai-center">
					<image class="avatar" src="{{item.head_pic}}" wx:if="{{item.head_pic}}"/>
					<text class="iconfont icon-ren" wx:else></text>
					<text class="pdl10">{{item.nickname}}</text>
				</view>
				<view class="c-a">{{filter.status(item.status, statusArr,item.order_status)}}</view>
			</view>
			<view class="flex jc_sb ai-center pd20" wx:for="{{item.goods}}" wx:for-item="it" bindtap="goto" data-url="{{'/pages/goods/goodsInfo/goodsInfo?goods_id=' + it.goods_id}}">
				<view class="flex pdr20">
					<view class="pdr20"><image class="img" src="{{imghost + (it.original_img ? it.original_img : default_img)}}" lazy-load/></view>
					<view class="fs24">
						<view class="ellipsis-2">{{it.goods_name}}</view>
						<view class="c-a pdt20">规格：<text style="color: black;">{{it.goods_spec}}</text></view>
						<view wx:if="{{item.dis_moshi == 0}}">
							<view class="c-a pdr10">最新佣金比例：<text class="c-red">{{filter.toFix(it.commission/it.goods_price*100, 1)}}%</text></view>
							<view class="c-a">佣金：<text class="money c-red">{{it.commission}}</text></view>
						</view>
						<view class="c-a pdt10" wx:else>{{filter.status((item.level-1), commisionArr)}}：<text class="money c-red">{{it.commission}}</text></view>
					</view>
				</view>
				<view><text class="money c-red">{{filter.toFix(it.goods_price, 2)}}</text></view>
			</view>
			<view class="flex jc_sb pd20 ai-center fs24 bdt">
				<view>
					<view><text class="c-a">订单号：</text>{{item.order_sn}}</view>
					<view class="c-a fs24 pdt10">{{filter.format_time(item.create_time, 1)}}</view>
				</view>
				<view class="c-red">获得分成：<text class="money fs32">{{filter.toFix(item.money, 2)}}</text></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>
