You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
2.0 KiB

5 years ago
<!--pages/user/cartlist/list.wxml-->
<title title="购物车">
<!-- <view class="edit-btn" style="right:{{menuWidth}}px">管理</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>
4 years ago
<image src="{{item.sku.headimg}}" mode="aspectFill" bindtap="gotoDetail" data-item="{{item}}"></image>
5 years ago
<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">
5 years ago
<image mode="widthFix" src="https://static.ticket.sz-trip.com/xcxImages/other/nodata.png"></image>
5 years ago
<view>暂无内容</view>
</view>
<view style="height:113rpx"></view>
<view class="fixed-bottom" wx:if="{{list.length>0}}">
<view bindtap="selectAll" class="iconfont{{allChecked?' icon-gou':' icon-quan'}}"></view>
<view class="tip">合计:</view>
<view class="bottom-price">¥{{allPrice/100}}</view>
<view style="flex:1">不含运费</view>
<view class="btn" bindtap="order">去下单</view>
</view>