<!-- 地址 -->
<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">
                <image class="address-icon" src="/static/icons/address.png" mode="widthFix"></image>{{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/ls/1.jpg'}}"></image>
        <view class="list-goods-cont">
            <view class="nowrap list-goods-name">{{items.title}}</view>
            <view class="list-goods-text">
                <text>购买数量</text> x{{items.qty}}
            </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-text">{{freight == 0 ? '免邮' : freight + '元'}}</view>
    </view>
    <view class="label-item">
        <view class="label-name">重量</view>
        <view class="label-text">{{weight}}g</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">
        <view class="number-vip">合计：</view>
        <text>￥</text>
        <view class="number-price">{{total}}</view>
    </view>
    <view class="btn {{disabled ? '': 'active'}}" bindtap="buyTap">立即支付</view>
</view>
