2022-07-27 03:12:29 +00:00
|
|
|
<view class="data-v-48b8e4cc"><block wx:if="{{listData.length>0}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="cart-admin data-v-48b8e4cc" bindtap="__e"><text class="data-v-48b8e4cc">购物车信息</text>{{showDel?'取消':'管理'}}</view></block><view class="slide-list data-v-48b8e4cc"><block wx:for="{{listData}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="slide-item data-v-48b8e4cc"><view data-event-opts="{{[['tap',[['clickItemMethod',['$0'],[[['listData','',index]]]]]]]}}" class="slide-item-li data-v-48b8e4cc" bindtap="__e"><label class="radio data-v-48b8e4cc"><radio checked="{{item.ifcheck}}" color="#0073bc" data-event-opts="{{[['tap',[['chooseEv',[index]]]]]}}" catchtap="__e" class="data-v-48b8e4cc"></radio></label><view data-event-opts="{{[['tap',[['goDetail',['$0','$1'],[[['listData','',index,'spuId']],[['listData','',index,'is_series']]]]]]]}}" class="shop-img data-v-48b8e4cc" bindtap="__e"><image src="{{item.image}}" mode="widthFix" class="data-v-48b8e4cc"></image></view><view class="shop-txt data-v-48b8e4cc"><view class="shop-txt-top data-v-48b8e4cc"><view class="title clips2 data-v-48b8e4cc">{{item.title}}</view><view class="specs clips2 data-v-48b8e4cc">{{"规格:"+(item.customTitle==''?item.skuName:item.customTitle)}}</view></view><view class="shop-txt-bottom data-v-48b8e4cc"><view class="price data-v-48b8e4cc">{{"¥"+(vipPrice?item.price:item.original_price)}}</view><view class="num data-v-48b8e4cc"><view data-event-opts="{{[['tap',[['addCutEv',[index,0]]]]]}}" class="icon icon-cut count-btn _i data-v-48b8e4cc" style="{{'background-color:'+(item.num==minNum||item.slide_x!=0?'#d3d3d3':'#0073bc')+';'}}" catchtap="__e"></view><input class="input data-v-48b8e4cc" type="digit" disabled="{{item.slide_x!=0}}" data-event-opts="{{[['blur',[['blurEv',[index,'$event']]]],['focus',[['focusEv',['$0'],[[['listData','',index,'num']]]]]],['input',[['__set_model',['$0','num','$event',[]],[[['listData','',index]]]]]]]}}" value="{{item.num}}" bindblur="__e" bindfocus="__e" bindinput="__e"/><view data-event-opts="{{[['tap',[['addCutEv',[index,1]]]]]}}" class="icon icon-add count-btn _i data-v-48b8e4cc" style="{{'background-color:'+(item.num==maxNum||item.slide_x!=0?'#d3d3d3':'#0073bc')+';'}}" catchtap="__e"></view></view></view></view></view></view></block></view><view class="change-all data-v-48b8e4cc"><label data-event-opts="{{[['tap',[['chooseAll',['$event']]]]]}}" class="label data-v-48b8e4cc" bindtap="__e"><radio style="transform:scale(.8);margin-left:-6rpx;" checked="{{allChoose}}" color="#0073bc" class="data-v-48b8e4cc"></radio><text class="data-v-48b8e4cc">全选</text></label><block wx:if="{{showDel}}"><view class="all-price data-v-48b8e4cc"><view data-event-opts="{{[['tap',[['delShopEv',['$event']]]]]}}" class="btn data-v-48b8e4cc" style="background-color:#f83030;" bindtap="__e">删除</view></view></block><block wx:else><view class="all-price data-v-48b8e4cc"><view class="price data-v-48b8e4cc">合计:<label class="_span data-v-48b8e4cc">{{"¥"+allPrice}}</label></view><view data-event-opts="{{[['tap',[['submitEv',['$event']]]]]}}" class="btn data-v-48b8e4cc" style="{{'background:'+(!buyNum?'#cccccc':'#0073bc')+';'}}" bindtap="__e">{{allPrice==0?'去购物':'提交订单 ('+buyNum+')'}}</view></view></block></view><block wx:if="{{listData.length!=0&&total==listData.length}}"><view class="data-v-48b8e4cc"><pitera vue-id="ce62b2a8-1" textStr="—— 到底啦 ——" class="data-v-48b8e4cc" bind:__l="__l"></pitera></view></block><block wx:if="{{!ifLoading&&!listData.length}}"><nothing-page vue-id="ce62b2a8-2" content="您的购物车,空空如也(*^▽^*)" class="data-v-48b8e4cc" bind:__l="__l"></nothing-page></block></view>
|