shopCart.wxml 2.9 KB
 <!--pages/shopCart/shopCart.wxml-->
<view style="margin-bottom:130rpx; border-top:1rpx solid #E4E4E4;">
   <view class="car_list" wx:for="{{carts.cartList}}" wx:key="this" data-current='{{index}}'>
      <view class="choose">
         <icon wx:if="{{item.checked}}" type="success" color="#FFCC00" bindtap="selectList" data-index="{{index}}" data-cart_id='{{item.cart_id}}' />
         <icon wx:else type="circle" bindtap="selectList" data-index="{{index}}" />
      </view> 
      <view class="shopp_img">
         <image src="{{item.thumb}}"></image>
      </view>
      <view class="content">
         <view class="title">
            <view class="name">{{item.goods_name}}</view>
            <view class="del" bindtap='del' data-cart_id='{{item.cart_id}}'>删除</view>
         </view>
         <view class="describe">{{item.goods_description}}</view>
         <view class="mon_num">
            <view class="num">¥
               <text style="font-size:34rpx;">{{item.goods_price}}</text>
            </view>
            <!-- 主容器 -->
            <view class="stepper">
               <!-- 减号 -->
               <text class="{{minusStatus}}" bindtap="minusCount" data-cart_id='{{item.cart_id}}' data-index="{{index}}">-</text>
               <!-- 数值 -->
               <text style="background:#fff;font-size:26rpx;width:67rpx;border:0;line-height:36rpx;">{{item.goods_num}}</text>
               <!-- 加号 -->
               <text class="normal" bindtap="addCount" data-cart_id='{{item.cart_id}}' data-index="{{index}}">+</text>
            </view>

         </view> 
      </view>
   </view>
</view>
<view class='nodata' wx:if='{{nodata}}'>您还没有下单哦,快去下单吧</view>

<view class="nav">
   <view class="shopp_img">
      <!-- wx:if 是否全选显示不同图标 -->
      <icon wx:if="{{selectAllStatus}}" type="success" color="#FFCC00" bindtap="selectAll" />
      <icon wx:else type="circle" bindtap="selectList" bindtap="selectAll" />
   </view>
   <view class="all">全选</view>
   <view class="gross_amount" wx:if="{{sub}}">合计:
      <text style="color:#C90103;fot-size:32rpx;">¥{{allPrice}}</text> </view>
   <view class="gross_amount" wx:else=""></view>
   <form bindsubmit="submit" report-submit='true' >
    <button  class="sub {{sub == true?'':'hover'}}" form-type="submit" type="default"  catchtap='sub'>{{sub == true?'去结算 >':'删除'}}</button>
  </form>
   <!-- <view class="sub {{sub == true?'':'hover'}}" bindtap='sub'></view> -->
</view>


<view class="tabBar">
   <view class="barList" bindtap='tabBar' data-index='{{index}}' wx:for="{{tabBarIndex}}" wx:key="">
      <image wx:if="{{item.state == false}}" src="{{item.img}}"></image>
      <image wx:else src="{{item.selectImg}}"></image>
      <view class="font" style="{{item.state == false?'':'color:#FEAD00'}}">{{item.name}}</view>
      <view class="num" wx:if="{{item.num != null}}">{{item.num}}</view>
   </view>
</view>