<!-- 地址 -->
<view class="address">
    <navigator hover-class="none" url="/pages/site/index?type=goodsAddress" class="address-cont" wx:if="{{address}}">
        <view class="address-top">
            <view class="address-area">{{address.province.name}}{{address.city.name}}</view>
            <view class="address-text">{{address.full_address}}</view>
        </view>
        <view class="address-name">
            {{address.name}}<text>{{address.mobile}}</text>
        </view>
        <image class="address-arrow" src="/static/icons/orderArrow.png"></image>
    </navigator>
    <view class="address-add" wx:else>
        <navigator hover-class="none" url="/pages/site/index?type=goodsAddress" class="address-go">新增收货地址 +</navigator>
    </view>
    <image class="address-img" src="/static/imgs/address.png" mode="widthFix"></image>
</view>

<!-- 商品 -->
<view class="list-goods" wx:for="{{goodskData}}" wx:key="stockData">
    <block wx:for="{{item.items}}" wx:key="items" wx:for-item="items">
        <image class="list-goods-img" mode="aspectFill" src="{{items.cover ? items.cover : '/static/imgs/default.png'}}"></image>
        <view class="list-goods-cont">
            <view class="nowrap list-goods-name">{{items.title}}</view>
            <view class="list-goods-text">
                <text>规格 99ml</text>x1
            </view>
            <view class="list-goods-parice">
                产品金额 ￥<text>{{items.price}}</text>
            </view>
        </view>
    </block>
</view>
<!-- 规格 -->
<view class="label">
    <view class="label-item">
        <view class="label-name">数量</view>
        <view class="label-number">
            <view class="number-btn" bindtap="goodsNumber" data-type="remove">-</view>
            <input bindinput="goodsNumberInput" class="number-input" type="number" value="{{goods_qty}}" disabled />
            <view class="number-btn" bindtap="goodsNumber" data-type="plus">+</view>
        </view>
    </view>
    <view class="label-item">
        <view class="label-name">快递</view>
        <view class="label-text">{{freight == 0 ? '免邮' : freight + '元'}}</view>
    </view>
    <view class="coupons" wx:if="{{maxcoupon != 0}}">
        <view class="coupons-item">
            <view class="label-name">兑换券</view>
            <view class="label-text">勾选使用<checkbox class="label-text-checkbox" checked="{{checked}}" bindtap="checkedTap" color="#3b7cff" style="transform:scale(.7);" /></view>
        </view>
        <view class="coupon-checked" wx:if="{{checked}}">
            <view class="coupon-checked-name">使用数量</view>
            <view class="coupon-checked-number">
                <view class="coupon-checked-btn" bindtap="couponNumber" data-type="remove">-</view>
                <input class="coupon-checked-input" bindblur="couponNumberInput" type="number" value="{{coupon_qty}}" disabled />
                <view class="coupon-checked-btn" bindtap="couponNumber" data-type="plus">+</view>
            </view>
        </view>
    </view>
    <view class="label-item">
        <view class="label-name">金额</view>
        <view class="label-integral">￥{{amount}}</view>
    </view>
</view>

<!-- 底部 -->
<view class="footer">
    <view class="number"><text>￥</text>
        <view class="number-price">{{amount}}</view>
        <view class="number-vip">实付金额</view>
    </view>
    <view class="btn" bindtap="buyTap" wx:if="{{disabled}}">立即支付</view>
    <view class="btn active" wx:else>立即支付</view>
</view>

<view class="pack-center pages-hint grey" wx:if="{{paySuccess}}">
    <image src="/static/icons/loadingGif.gif"></image>
    <view>疯狂加载中...</view>
</view>