<view class="main"><block wx:if="{{list.length==0&&user._id}}"><view class="one"><view class="logo"><text class="iconfont icon-gouwuche"></text></view><view class="one_1">购物车空空如也~</view><view class="btn"><button type="primary" size="mini" data-event-opts="{{[['tap',[['toCommon',['/pages/home/index']]]]]}}" bindtap="__e">去逛逛</button></view></view></block><block wx:else><view class="two"><view class="text_1"><checkbox class="checkbox" checked="{{isAll}}" data-event-opts="{{[['tap',[['selectAll',[false]]]]]}}" bindtap="__e">全选</checkbox></view><block wx:if="{{num==0}}"><view data-event-opts="{{[['tap',[['edit',[1]]]]]}}" class="text_2" bindtap="__e">编辑</view></block><block wx:if="{{num==1}}"><view data-event-opts="{{[['tap',[['edit',[0]]]]]}}" class="text_2" bindtap="__e">完成</view></block></view></block><block wx:if="{{list.length!=0&&user._id}}"><view class="thr"><scroll-view class="scroll-view" scroll-y="true"><view class="list-scroll-view"><checkbox-group name="checkbox" data-event-opts="{{[['change',[['marketChange',['$event']]]]]}}" bindchange="__e"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="list"><view class="list_1"><view class="title"><checkbox value="{{item.$orig.supplier._id}}" checked="{{item.$orig.check}}"><text class="iconfont icon-shangdian"></text>{{''+item.$orig.supplier.name+''}}</checkbox></view><block wx:for="{{item.l0}}" wx:for-item="gs" wx:for-index="__i0__" wx:key="_id"><view><checkbox-group name="checkbox" data-event-opts="{{[['tap',[['goodsChange',['$0'],[[['list','',index],['list','specs._id',gs.$orig.specs._id]]]]]]]}}" bindtap="__e"><view class="content"><view class="box"><checkbox value="{{gs.$orig.cart_id}}" checked="{{gs.$orig.check}}"></checkbox></view><view class="img"><image src="{{gs.m0}}"></image></view><block wx:if="{{num==0}}"><view data-event-opts="{{[['tap',[['toCommon',['/pagesGoods/index/index','$0'],[[['list','',index],['list','specs._id',gs.$orig.specs._id]]]]]]]}}" class="thr_1" bindtap="__e"><view class="left"><view class="name textOver">{{gs.$orig.goods.name}}</view><view class="other"><block wx:if="{{num==0}}"><view class="money"><view>{{"¥"+gs.$orig.money}}</view><view>{{"x"+gs.$orig.num}}</view></view></block></view></view><view class="right"><block wx:if="{{gs.$orig.specs.name}}"><view class="title_1 textOver"><text>{{"规格:"+gs.$orig.specs.name}}</text></view></block></view></view></block><block wx:if="{{num==1}}"><view class="num"><uni-number-box vue-id="{{'3ac8154e-1-'+index+'-'+__i0__}}" name="num" value="{{gs.$orig.num}}" min="{{1}}" max="{{gs.$orig.specs.num}}" data-event-opts="{{[['^change',[['changeValue',['$0'],[[['list','',index],['list','specs._id',gs.$orig.specs._id]]]]]],['^input',[['__set_model',['$0','num','$event',[]],[[['list','',index],['list','specs._id',gs.$orig.specs._id]]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></uni-number-box></view></block><block wx:if="{{num==1}}"><view class="del"><text data-event-opts="{{[['tap',[['toDel',['$0'],[[['list','',index],['list','specs._id',gs.$orig.specs._id]]]]]]]}}" class="iconfont icon-icon-cross-empty" bindtap="__e"></text></view></block></view></checkbox-group></view></block></view></view></block></checkbox-group></view></scroll-view></view></block><block wx:if="{{list.length!=0&&user._id}}"><view class="foot"><view class="total">总价：<text>{{"￥"+totalMoney}}</text></view><block wx:if="{{$root.m1}}"><view class="btn"><block wx:if="{{num==0}}"><button type="primary" size="mini" data-event-opts="{{[['tap',[['toSettle']]]]}}" bindtap="__e">提交订单</button></block><block wx:if="{{num==1}}"><button type="primary" size="mini" data-event-opts="{{[['tap',[['toDel']]]]}}" bindtap="__e">删除</button></block></view></block></view></block></view>