<!-- 提交订单 -->
<view class="order-content">
    <view class="order-address">
        <view wx:if="{{addressDel != ''}}" bindtap="addressTap">
            <navigator url="/pages/mall/mall_address/mall_address?type=selectAddress" hover-class="none">
                <image class="arrows-right" src="/static/mall_icon/mall_arrow.png" mode="widthFix"></image>
                <view class="order-address-name">
                    <text>{{addressDel.name}}</text>{{addressDel.mobile}}
                </view>
                <view class="order-address-text">{{addressDel.full_address}}</view>
            </navigator>
        </view>
        <navigator class="order-add-address arrows-add" wx:else url="/pages/mall/mall_address/mall_address?type=selectAddress">
            添加收货地址
            <image class="arrows-add-img" src="/static/mall_icon/mall_arrow.png" mode="widthFix"></image>
        </navigator>
        <image class="order-address-back" src="/static/mall_icon/address_back.png" mode="widthFix"></image>

    </view>

    <view class="order-goods" wx:if="{{typeCart == 'arrCart'}}">
        <view class="goods-goods-li" wx:for="{{lists}}" wx:key="lists">
            <image class="goods-img" src="{{item.goods.cover}}" mode="aspectFill"></image>
            <view class="goods-body">
                <view class="goods-name">{{item.goods.title}}</view>
                <view class="goods-params"><text wx:for="{{item.attr}}" wx:key="attr">{{index}}</text></view>
                <view class="goods-price"><text class="goods-qty">￥{{item.total}}</text>×{{item.number}}</view>
            </view>
        </view>
    </view>
    <view class="order-goods" wx:else>
        <view class="goods-goods-li">
            <image class="goods-img" src="{{detail.cover}}" mode="aspectFill"></image>
            <view class="goods-body">
                <view class="goods-name">{{detail.title}}</view>
                <view class="goods-params">{{detail.value}}</view>
                <view class="goods-price"><text class="goods-qty">￥{{detail.price}}</text>×{{detail.qty}}</view>
            </view>
        </view>
    </view>

    <view class="order-total">
        <view class="order-total-li">
            <view class="order-total-name">配送方式</view>
            <text>快递配送</text>
        </view>
        <view class="order-total-li">
            <view class="order-total-name">运费</view>
            <text>{{freight}}元</text>
        </view>
        <view class="order-total-li">
            <view class="order-total-textarea">订单备注：</view>
            <textarea name="remark" bindinput="bindTextAreaBlur" placeholder="请输入备注信息..."></textarea>
        </view>
    </view>
    <view class="order-total">
        <view class="order-total-li">
            <view class="order-total-name">商品总价</view>
            ￥{{amount}}
        </view>
        <view class="order-total-li" bindtap="couponTap" wx:if="{{coupons.length > 0}}">
            <view class="order-total-name">优惠</view>
            <view class="coupon-picker-text {{allShow ? 'coupon-picker-red' : ''}}">
                {{coupon_id == 0 ? '请选择优惠券' : choiceTitle}}
            </view>
            <image class="coupon-picker-icon" src="/static/mall_icon/mall_arrow.png"></image>
        </view>
        <view class="order-total-li">
            <view class="order-total-name">应付总价</view>
            ￥{{amount - allAmount}}
        </view>
    </view>

</view>

<view class="order-footer">
    <view class="order-footer-total nowrap">
        合计：
        <text class="order-footer-total-price">￥{{amount - allAmount}}元</text>
    </view>
    <button class="order-footer-btn" size="mini" bindtap="submitOrder">立即支付</button>
</view>

<!-- 优惠券弹出层 -->
<view class="couponBack {{couponShow ? 'active':''}}" bindtap="couponHide"></view>
<view class="couponEject {{couponShow ? 'active':''}}">
    <image bindtap="couponHide" class="couponClose" src="/static/mall_icon/mall_close.png"></image>
    <view class="couponEject-title">优惠</view>
    <view class="couponEject-list">
        <view class="couponEject-list-title">
            可使用优惠券
        </view>
        <view class="couponDraw-list-label couponDraw-list-blue" wx:for="{{coupons}}" wx:key="coupons" wx:for-index="index">
            <view class="couponDraw-list-tips">代金劵</view>
            <view class="couponDraw-list-price">
                <view class="couponDraw-list-part"><text>￥</text>{{item.price}}</view>
            </view>
            <view class="couponDraw-list-text" bindtap="detailLink" data-index="{{index}}" data-id="{{item.user_coupon_id}}">
                <view class="couponDraw-list-name">商品代金券<text>满{{item.full}}元可用</text><text>金额可减{{item.price}}元</text>
                </view>
                <view class="couponDraw-list-btn">
                    <image src="{{item.is_check ? '/static/mall_icon/select_avtive.png' : '/static/mall_icon/select.png'}}"></image>
                </view>
                <view class="couponDraw-list-time">2020.11.01 - 2020.11.10</view>
            </view>
        </view>
    </view>
</view>