<!-- 订单状态 -->
<view class="order-statl">
	{{order.state_text || order.status_text}}
	<block wx:if="{{order.state == 'UNPAY'}}">
		<image src="/static/icon/order_icon_00.png" class="order-statl-icon"></image>
	</block>
	<block wx:elif="{{order.state == 'PAID'}}">
		<image src="/static/icon/order_icon_01.png" class="order-statl-icon"></image>
	</block>
	<block wx:elif="{{order.state == 'COMPLETED'}}">
		<image src="/static/icon/order_icon_02.png" class="order-statl-icon"></image>
	</block>
</view>

<!-- 收货人 -->
<view class="order-address" wx:if="{{order.express != '' && order.express != null}}">
	<image class="address-icon" src="https://storage.funnyzhibo.com/images/2020/05/06/address_icon.png" mode="widthFix"></image>
	<view class="order-address-name nowrap">
		收货人：{{order.express.name}}
		<text>{{order.express.mobile}}</text>
	</view>
	<view class="order-address-text">{{order.express.address}}</view>
	<image class="order-address-back" src="/static/img/address_back.png" mode="widthFix"></image>
</view>

<view class="order-goods">
	<view class="goods-goods-li">
		<image class="goods-img" src="{{order.items.cover || order.source.right.cover}}" mode="aspectFill"></image>
		<view class="goods-body">
			<view class="goods-name nowrap">{{order.items.title || order.source.right.title}}</view>
			<view class="goods-price nowrap">￥{{order.items.price || order.source.welfare.price}}
				<text class="goods-qty">×{{order.items.qty ? order.items.qty : '1'}}</text>
			</view>
		</view>
	</view>
</view>

<view class="order-total">
	<view class="order-total-li order-type">
		权益类型
		<text>{{order.type_text || order.type_text}}</text>
	</view>
	<view class="order-total-li">
		订单号
		<text bindtap="copyText" data-text="{{order.orderid}}">{{order.orderid}}</text>
	</view>
	<view class="order-total-li">
		下单时间
		<text>{{order.created_at}}</text>
	</view>
</view>
<view class="order-total">
	<view class="order-total-li">
		实际支付
		<text class="redCor">￥{{order.total || order.source.welfare.price}}</text>
	</view>
</view>

<view class="order-data-footer {{statusHeight > 30 ? 'iphoneX':''}}">
	<view class="order-btn" bindtap="orderRun">返回订单</view>
	<view class="order-btn" bindtap="orderDelete" data-id="{{order.orderid}}" wx:if="{{order.canCancel || order.can.cancel}}">取消订单</view>
	<!-- <view class="order-btn order-btn-back" bindtap="orderPay" wx:if="{{order.canPay || order.can.pay}}" data-id="{{order.orderid}}">立即支付</view> -->
</view>