luban-mall/unpackage/dist/dev/mp-weixin/components/shopping-carts/cart-slide.wxml

1 line
3.2 KiB
Plaintext

<view class="data-v-48b8e4cc"><view class="slide-list data-v-48b8e4cc"><block wx:for="{{$root.l0}}" 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.$orig.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.$orig.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 data-v-48b8e4cc">{{item.$orig.title}}</view><view class="specs clips2 data-v-48b8e4cc">{{"规格:"+(item.$orig.customTitle==''?item.$orig.skuName:item.$orig.customTitle)}}</view></view><view class="shop-txt-bottom data-v-48b8e4cc"><view class="price data-v-48b8e4cc">{{"¥"+(vipPrice?item.g0:item.g1)}}</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.$orig.num==minNum||item.$orig.slide_x!=0?'#d3d3d3':'#0073bc')+';'}}" catchtap="__e"></view><input class="input data-v-48b8e4cc" type="digit" disabled="{{item.$orig.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.$orig.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.$orig.num==maxNum||item.$orig.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);" checked="{{allChoose}}" color="#0073bc" class="data-v-48b8e4cc"></radio><text class="data-v-48b8e4cc">全选</text></label><view class="all-price data-v-48b8e4cc"><view class="price data-v-48b8e4cc">合计:<label class="_span data-v-48b8e4cc">{{"¥"+$root.g2}}</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></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>