luban-mall/unpackage/dist/dev/mp-weixin/pagesA/cart/cart.wxml

1 line
3.9 KiB
Plaintext

<view class="pad-b150 data-v-8217e9aa"><status-nav vue-id="1f8ddb3b-1" ifReturn="{{true}}" navBarTitle="购物车" marginBottom="{{0}}" class="data-v-8217e9aa" bind:__l="__l"></status-nav><view class="cart-content data-v-8217e9aa"><block wx:if="{{listData.length>0}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="cart-admin data-v-8217e9aa" bindtap="__e"><text class="data-v-8217e9aa">购物车信息</text>{{showDel?'取消':'管理'}}</view></block><view class="slide-list data-v-8217e9aa"><block wx:for="{{listData}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="slide-item data-v-8217e9aa"><view data-event-opts="{{[['tap',[['clickItemMethod',['$0'],[[['listData','',index]]]]]]]}}" class="slide-item-li data-v-8217e9aa" bindtap="__e"><label class="radio data-v-8217e9aa"><radio checked="{{item.ifcheck}}" color="#0073bc" data-event-opts="{{[['tap',[['chooseEv',[index]]]]]}}" catchtap="__e" class="data-v-8217e9aa"></radio></label><view data-event-opts="{{[['tap',[['goDetail',['$0','$1'],[[['listData','',index,'spuId']],[['listData','',index,'is_series']]]]]]]}}" class="shop-img data-v-8217e9aa" bindtap="__e"><image src="{{item.image}}" mode="widthFix" class="data-v-8217e9aa"></image></view><view class="shop-txt data-v-8217e9aa"><view data-event-opts="{{[['tap',[['goDetail',['$0','$1'],[[['listData','',index,'spuId']],[['listData','',index,'is_series']]]]]]]}}" class="shop-txt-top data-v-8217e9aa" bindtap="__e"><view class="title clips2 data-v-8217e9aa">{{item.title}}</view><view class="specs clips2 data-v-8217e9aa">{{"规格:"+(item.customTitle==''?item.skuName:item.customTitle)}}</view></view><view class="shop-txt-bottom data-v-8217e9aa"><view class="price data-v-8217e9aa">{{"¥"+(vipPrice?item.price:item.original_price)}}</view><view class="num data-v-8217e9aa"><view data-event-opts="{{[['tap',[['addCutEv',[index,0]]]]]}}" class="icon icon-cut count-btn _i data-v-8217e9aa" style="{{'background-color:'+(item.num==minNum||item.slide_x!=0?'#d3d3d3':'#0073bc')+';'}}" catchtap="__e"></view><input class="input data-v-8217e9aa" 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-8217e9aa" 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-8217e9aa"><label data-event-opts="{{[['tap',[['chooseAll',['$event']]]]]}}" class="label data-v-8217e9aa" bindtap="__e"><radio style="transform:scale(.8);margin-left:-6rpx;" checked="{{allChoose}}" color="#0073bc" class="data-v-8217e9aa"></radio><text class="data-v-8217e9aa">全选</text></label><block wx:if="{{showDel}}"><view class="all-price data-v-8217e9aa"><view data-event-opts="{{[['tap',[['delShopEv',['$event']]]]]}}" class="btn data-v-8217e9aa" style="background-color:#f83030;" bindtap="__e">删除</view></view></block><block wx:else><view class="all-price data-v-8217e9aa"><view class="price data-v-8217e9aa">合计:<label class="_span data-v-8217e9aa">{{"¥"+allPrice}}</label></view><view data-event-opts="{{[['tap',[['submitEv',['$event']]]]]}}" class="btn data-v-8217e9aa" style="{{'background:'+(!buyNum?'#cccccc':'#0073bc')+';'}}" bindtap="__e">{{allPrice==0?'去购物':'提交订单 ('+buyNum+')'}}</view></view></block></view><block wx:if="{{listData.length!==0&&noMore}}"><view class="more-txt data-v-8217e9aa">—— 到底啦 ——</view></block><block wx:if="{{isLoading&&listData.length==0}}"><nothing-page vue-id="1f8ddb3b-2" content="您的购物车,空空如也(*^▽^*)" class="data-v-8217e9aa" bind:__l="__l"></nothing-page></block></view></view>