<!-- 内容 -->
<view class="bag-content">
    <view class="bag-content-mall" wx:if="{{carArr.length > 0}}">
        <view class="ce-white ce-radius bag-content-mall-goods" wx:for="{{carArr}}" wx:key="carArr"
            wx:for-index="goodsIndex">
            <view class="checkbox">
                <checkbox checked="{{item.is_check}}" data-goods="{{goodsIndex}}" data-rowid="{{item.rowid}}"
                    bindtap="checkbox"></checkbox>
            </view>
            <image class="mall-good-cover" src="{{item.goods.cover}}" mode="aspectFill"></image>
            <view class="mall-good-content">
                <view class="mall-good-title nowrap">{{item.goods.title}}</view>
                <view class="mall-good-value nowrap"><text wx:for="{{item.attr}}" wx:key="attr"
                        wx:for-item="attrItem">{{attrItem}}</text></view>
                <view class="mall-good-price nowrap">
                    ￥{{item.prices.amount}}
                    <view class="mall-good-number">
                        <view class="mall-good-number-btn" data-goods="{{goodsIndex}}" data-id="{{item.id}}"
                            bindtap="goodsNumber" data-type="remove">-</view>
                        <input class="mall-good-number-input" data-goods="{{goodsIndex}}" value="{{item.number}}"
                            type="number" bindblur="goodsNumberInput" disabled></input>
                        <view class="mall-good-number-btn" data-goods="{{goodsIndex}}" data-id="{{item.id}}"
                            bindtap="goodsNumber" data-type="plus">+</view>
                    </view>
                </view>
            </view>
            <view class="mall-good-more" bindtap="actionSheet" data-goods="{{goodsIndex}}" data-rowid="{{item.id}}">
                <image src="/static/mall_icon/bag_more_icon.png" mode="widthFix"></image>
            </view>
        </view>
    </view>
    <view class="cart-hint" wx:else>
        <image class="cart-hint-img" src="/static/mall_icon/car_icon.png"></image>
        <view>购物车空空如也，快去首页购物吧~</view>
        <navigator class="cart-hint-click" hover-class="none" url="/pages/mall/index" open-type="switchTab">
            去购物
        </navigator>
    </view>
</view>

<!-- 结算 -->
<view class="bag-footer" wx:if="{{carArr.length > 0}}">
    <view class="bag-footer-select">
        <view class="checkbox allCheckbox">
            <checkbox checked="{{allCheckbox}}" bindtap="allCheckbox"></checkbox>
        </view>
        全选
    </view>
    <view class="bag-footer-right">
        <view class="bag-footer-price">合计:<text>￥{{allPrice}}</text></view>
        <button class="bag-footer-btn" size="mini" bindtap="bagOrder" disabled="{{bagOrderLoading}}"
            loading="{{bagOrderLoading}}">结算({{bagNumber}})</button>
    </view>
</view>