```
//总金额取小数
<wxs src="../../utils/formate.wxs" module="format"></wxs>
<view class="box">
//isMove:删除按钮显示隐藏
<view class="list {{ item.isMove ? 'isMove' : ''}}" data-index='{{index}}' wx:for="{{cartList}}" wx:key="index" bindtouchstart="touchstart" bindtouchmove="touchmove">
<view class="item" bindtap="itemClick" data-index="{{index}}">
<!-- 选择按钮 -->
<view class="circle" bindtap="shopSelected" data-index="{{index}}">
<icon type="success" wx:if="{{item.selected}}" size="22"></icon>
<icon type="circle" wx:else color="#999" size="22"></icon>
</view>
<!-- 图片 -->
<view class="img">
<image src="{{item.pic}}"></image>
</view>
<!-- 内容区域 -->
<view class="content">
<view class="title">{{item.name}}</view>
<view class="subTitle">{{item.info}}</view>
<view class="price">¥{{item.price}}</view>
<view class="update">
<view class="reduce" data-index="{{index}}" data-id="{{item.id}}" bindtap="reduce">-</view>
<view class="value">{{item.num}}</view>
<view class="add" data-index="{{index}}" data-id="{{item.id}}" bindtap="add">+</view>
</view>
</view>
</view>
<view class="remove" bindtap="remove" data-id="{{item.id}}">删除</view>
</view>
</view>
<view class="settlement">
<!-- 全选 -->
<view class="allSelect" bindtap="selectAll">
<view class="allIcon">
<icon type="success" wx:if="{{allSelected}}" size="20"></icon>
<icon type="circle" wx:else color="#999" size="20"></icon>
</view>
<view>
全选
</view>
</view>
<view class="{{countSelect ? 'count' : 'countDisabled'}}">
结算({{format.toFixed(count)}})
</view>
</view>
```