<view class="content"><view class="goods-list"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item"><label style="margin-right:30rpx;"><checkbox value="{{item.$orig.checked}}" checked="{{item.$orig.checked}}" data-event-opts="{{[['tap',[['checkChange',['$0'],[[['carts','',index]]]]]]]}}" bindtap="__e"></checkbox></label><image class="goods-img" src="{{item.$orig.productAttrImage==null||item.$orig.productAttrImage==''?item.$orig.productImage:item.$orig.productAttrImage}}" mode="aspectFit"></image><view class="info-box"><view><view class="title-box"><view class="tag">{{item.g0}}</view><view class="title ellipsis">{{item.$orig.productName}}</view></view><view class="intro ellipsis">{{item.$orig.productAttrName}}</view></view><view class="price-num"><view class="price"><text class="unit">¥</text><text class="text">{{item.$orig.price}}</text></view><view class="num-box"><view data-event-opts="{{[['tap',[['delNum',['$0'],[[['carts','',index]]]]]]]}}" class="img-box" bindtap="__e"><block wx:if="{{item.$orig.cartNum<=1}}"><image src="../../static/images/jian.png" mode></image></block><block wx:else><image src="../../static/images/jian2.png" mode></image></block></view><input type="number" data-event-opts="{{[['change',[['changeNum',['$event','$0'],[[['carts','',index]]]]]]]}}" value="{{item.$orig.cartNum}}" bindchange="__e"/><view data-event-opts="{{[['tap',[['addNum',['$0'],[[['carts','',index]]]]]]]}}" class="img-box" bindtap="__e"><image src="../../static/images/add.png" mode></image></view></view></view></view></view></block></view><block wx:if="{{$root.g1==0}}"><view class="no-data-box"><image src="../../static/images/no_data.png" mode="aspectFit"></image><view class="empty-title">暂无数据</view></view></block><view class="like-product"><like-product class="vue-ref" vue-id="1edffc88-1" data-ref="product" bind:__l="__l"></like-product></view><view class="btn-foot"><view class="left"><label><checkbox checked="{{checkAll}}" data-event-opts="{{[['tap',[['handleCheckAll']]]]}}" bindtap="__e"></checkbox></label><text class="text">全选</text><text data-event-opts="{{[['tap',[['delCart']]]]}}" class="text" bindtap="__e">删除</text></view><view class="right"><view class="total"><text class="label">合计：</text><view class="price"><text class="unit">¥</text><text class="num">{{$root.g2}}</text></view></view><view data-event-opts="{{[['tap',[['submit',['$event']]]]]}}" class="btn" bindtap="__e">结算</view></view></view></view>