|
|
|
|
<!--pages/user/cartlist/list.wxml-->
|
|
|
|
|
<title title="购物车">
|
|
|
|
|
<view class="edit-btn" style="right:{{menuWidth}}px" wx:if="{{list.length>0}}" bindtap="manage">{{manageFlag?'关闭':'管理'}}</view>
|
|
|
|
|
</title>
|
|
|
|
|
<view wx:for="{{list}}" class="goods-item {{item.isTouchMove ? 'touch-move-active' : ''}}" bindtouchstart='touchStart' bindtouchmove='touchmove' data-index="{{index}}">
|
|
|
|
|
<view class="item{{(item.product.flag!=1 || item.sku.flag!='on')?' disable':''}}">
|
|
|
|
|
<view class="iconfont{{item.checked?' icon-gou':' icon-quan'}}" bindtap="select" data-index="{{index}}"></view>
|
|
|
|
|
<image src="{{item.sku.headimg}}" mode="aspectFill" bindtap="gotoDetail" data-item="{{item}}"></image>
|
|
|
|
|
<view class="item-info textOver">
|
|
|
|
|
<view class="title textOver">{{item.product.title}}</view>
|
|
|
|
|
<view class="sku-title textOver">
|
|
|
|
|
<view class="sku-name textOver">{{item.sku.sku_name}}</view>
|
|
|
|
|
<view class="sku-number">x{{item.num}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="item-bottom" wx:if="{{item.product.flag==1 && item.sku.flag=='on'}}">
|
|
|
|
|
<view class="price">{{item.sku.price/100}}</view>
|
|
|
|
|
<view class="iconfont icon-sami-select" bindtap="minus" data-index="{{index}}"></view>
|
|
|
|
|
<view class="number">{{item.num}}</view>
|
|
|
|
|
<view class="iconfont icon-add-select" bindtap="add" data-index="{{index}}"></view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="item-bottom" wx:else>已下架</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class='del' catchtap="del" data-index="{{index}}">删除</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view wx:if="{{list.length==0}}" class="common-empty" style="z-index:-1">
|
|
|
|
|
<image mode="widthFix" src="https://static.ticket.sz-trip.com/xcxImages/other/nodata.png"></image>
|
|
|
|
|
<view>暂无内容</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view style="height:113rpx"></view>
|
|
|
|
|
<view class="fixed-bottom" wx:if="{{list.length>0&&manageFlag===false}}">
|
|
|
|
|
<view bindtap="selectAll" class="iconfont{{allChecked?' icon-gou':' icon-quan'}}"></view>
|
|
|
|
|
<view class="tip">合计:</view>
|
|
|
|
|
<view class="bottom-price">¥{{allPrice/100}} </view>
|
|
|
|
|
<view style="margin-right: 10rpx; font-size: 29rpx;color: #000;">起</view>
|
|
|
|
|
<view style="flex:1"></view>
|
|
|
|
|
<view class="btn" bindtap="order">去下单</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="fixed-bottom" wx:if="{{list.length>0&&manageFlag===true}}">
|
|
|
|
|
<view class="iconfont{{allChecked?' icon-gou':' icon-quan'}}" bindtap="selectAll"></view>
|
|
|
|
|
<text style="color:#666;font-size:26rpx;flex-shrink:0;margin-left:10rpx;flex:1">全选</text>
|
|
|
|
|
<view class="fixed-btn del-btn" bindtap="delM">删除</view>
|
|
|
|
|
</view>
|