<!-- 活动订单 -->
<view class="order-tab">
	<view class="order-tab-item {{stateType == '' ? 'active':''}}" data-state="" bindtap="orderTab">
		全部
	</view>
	<view class="order-tab-item {{stateType == '0' ? 'active':''}}" data-state="0" bindtap="orderTab">
		未支付
		<view class="state-tips" wx:if="{{counts.init != 0}}">{{counts.init}}</view>
	</view>
	<view class="order-tab-item {{stateType == '1' ? 'active':''}}" data-state="1" bindtap="orderTab">
		已支付
		<view class="state-tips" wx:if="{{counts.paid != 0}}">{{counts.paid}}</view>
	</view>
	<view class="order-tab-item {{stateType == '2' ? 'active':''}}" data-state="2" bindtap="orderTab">
		已发货
		<view class="state-tips" wx:if="{{counts.send != 0}}">{{counts.send}}</view>
	</view>
</view>

<!-- 列表 -->
<view class="order-content" wx:if="{{orderArr != ''}}">
	<view class="order-content-li" wx:for="{{orderArr}}" wx:key="orderArr">
		<view class="order-name">
			<image src="/static/icon/activity_icon.png"></image>
			{{item.activity_name}}
		</view>
		<view class="uni-border-down order-store">
			<view class="order-store-title nowrap">{{item.order_id}}</view>
			<view class="order-store-stateText red" wx:if="{{item.status_text == '未支付'}}">{{item.status_text}}</view>
			<view class="order-store-stateText green" wx:elif="{{item.status_text == '已支付'}}">{{item.status_text}}</view>
			<view class="order-store-stateText" wx:else>{{item.status_text}}</view>
		</view>
		<view class="order-goods">
			<image class="order-goods-cover" src="{{item.small_cover}}" mode="aspectFill"></image>
			<view class="order-goods-content">
				<view class="order-goods-content-name nowrap">{{item.title}}</view>
				<view class="order-goods-content-price nowrap">
					<text>￥{{item.price}}</text> × {{item.number}}
				</view>
				<view class="order-goods-tips">
					<text class="order-goods-tips-color" wx:if="{{item.have_gift == 1}}">礼盒</text>
					<text wx:if="{{item.have_coupon == 1}}">购物券</text>
				</view>
			</view>
		</view>
		<view class="uni-border-top order-btns">
			<navigator class="order-btn" url="/pages/activityData/activityData?id={{item.id}}">订单详情</navigator>
			<view class="order-btn" bindtap="orderDelete" data-id="{{item.id}}" wx:if="{{item.iscancel == true}}">取消订单</view>
			<view class="order-btn order-btn-back" bindtap="orderPay" data-id="{{item.id}}" wx:if="{{item.ispay == true}}">立即支付</view>
		</view>
	</view>

	<view class="pagesLoding" wx:if="{{lodingStats}}">
		<block wx:if="{{page.has_more}}">
			<image class="pagesLoding-icon" src="/static/icon/refresh_loding.gif" mode="widthFix"></image>加载中...
		</block>
		<block wx:else>
			没有更多了~
		</block>
	</view>
</view>

<view class="pack-center pages-hint" wx:else>
	<image src="https://storage.funnyzhibo.com/images/2020/05/06/null_icon.png"></image>
	<view>暂无订单</view>
</view>