<view class="container">
  <!-- <view class="no-login" wx:if="{{!hasLogin}}">
    <view class="c">
      <text>您还没有注册</text>
      <button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">
				<image class="wechat" src="/static/images/wechat.png"></image>
        点击授权微信登录</button>
    </view>
  </view> -->
  <!-- wx:else -->
  <view class='login' >
    <!--<view class="service-policy">
      <view class="item">30天无忧退货</view>
      <view class="item">48小时快速退款</view>
      <view class="item">满88元免邮费</view>
    </view>-->

    <view class="no-cart" wx:if="{{cartGoods.length <= 0}}">
      <view class="c">
       <image src='/static/images/cart.png' bindtap="goIndex"></image>
        <text>空空如也~</text>
        <text>去添加点什么吧</text>
      </view>
    </view>
    <view class="cart-view" wx:else>
      <view class="list">
        <view class="group-item">
          <view class="goods">

<!-- <view class="item {{isEditCart ? 'edit' : ''}}" wx:for="{{cartGoods}}" wx:key="id">
              <van-checkbox value="{{ item.checked }}" bind:change="checkedItem" data-item-index="{{index}}"></van-checkbox>
              <view class="cart-goods">
                <image class="img" src="{{item.picUrl}}"></image>
                <view class="info">
                  <view class="t">
                    <text class="name">{{item.goodsName}}</text>
                    <text class="num">x{{item.number}}</text>
                  </view>
                  <view class="attr">{{ isEditCart ? '已选择:' : ''}}{{item.specifications||''}}</view>
                  <view class="b">
                    <text class="price">￥{{item.price}}</text>
                    <view class="selnum">
                      <view class="cut" bindtap="cutNumber" data-item-index="{{index}}">-</view>
                      <input value="{{item.number}}" class="number" disabled="true" type="number" />
                      <view class="add" bindtap="addNumber" data-item-index="{{index}}">+</view>
                    </view>
                  </view>
                </view>
              </view>
            </view>-->

            <view class="item  edit" wx:for="{{cartGoods}}" wx:key="id">
              <van-checkbox value="{{ item.checked }}" bind:change="checkedItem" data-item-index="{{index}}"></van-checkbox>
              <view class="cart-goods">
                <image class="img" src="{{item.picUrl}}"></image>
                <view class="info">
                  <view class="t">
                    <text class="name">{{item.commodityName}}</text>
                    <!--<text class="num">x{{item.number}}</text>-->
                  </view>
                  <view class="attr">{{item.attributeValue||''}}</view>
                  <view class="b">
                    <text class="price">￥{{item.price}}</text>
                    <view class="selnum">
                      <view class="cut" bindtap="cutNumber" data-item-index="{{index}}">-</view>
                      <input value="{{item.number}}" class="number" disabled="true" type="number" />
                      <view class="add" bindtap="addNumber" data-item-index="{{index}}">+</view>
                    </view>
                  </view>
                </view>
              </view>
            </view>


          </view>
        </view>

      </view>
      <view class="cart-bottom">
        <van-checkbox value="{{ checkedAllStatus }}" bind:change="checkedAll">全选（{{cartTotal.checkedGoodsCount}}）</van-checkbox>
        <view class="total">合计：{{'￥'+cartTotal.checkedGoodsAmount}}</view>
        <view class='action_btn_area'>
          <!--<view class="{{!isEditCart ? 'edit' : 'sure'}}" bindtap="editCart">{{!isEditCart ? '编辑' : '完成'}}</view>
          <view class="delete" bindtap="deleteCart" wx:if="{{isEditCart}}">删除({{cartTotal.checkedGoodsCount}})</view>-->
          <view class="checkout" bindtap="checkoutOrder" >结算</view>
          <!-- </view>  -->
        </view>
      </view>
    </view>
  </view>
</view>