cart.wxml 5.1 KB

1
  1. <view class="cart data-v-571acef2" style="{{$root.s0}}"><block wx:if="{{isRequest}}"><tui-skeleton vue-id="e780df58-1" loadingType="2" class="data-v-571acef2" bind:__l="__l"></tui-skeleton></block><header-cart vue-id="e780df58-2" systeminfo="{{systeminfo}}" navbar-data="{{nvabarData}}" headerBtnPosi="{{headerBtnPosi}}" page="{{1}}" class="data-v-571acef2" bind:__l="__l"></header-cart><block wx:if="{{!isEmpty}}"><block wx:if="{{!isshowDelbtn}}"><view class="{{['cart-top','data-v-571acef2',(cartTopFixed)?'fixed':'']}}" style="{{$root.s1}}"><view class="count data-v-571acef2">{{"共"+kindCount+"件商品"}}</view><view data-event-opts="{{[['tap',[['showDelManager',['$event']]]]]}}" class="btn data-v-571acef2" bindtap="__e">删除</view></view><view class="receive-coupon data-v-571acef2"><view class="tip-text data-v-571acef2">{{couponTipText}}</view><view data-event-opts="{{[['tap',[['receiveCoupon',['$event']]]]]}}" class="btn data-v-571acef2" bindtap="__e">领券</view></view></block><block wx:for="{{goodsList}}" wx:for-item="cart" wx:for-index="index" wx:key="index"><cm-cart-product class="product-list data-v-571acef2" vue-id="{{'e780df58-3-'+index}}" listType="{{listType}}" data="{{cart}}" vkey="productList" data-event-opts="{{[['^chooseAll',[['chooseAllProduct']]],['^chooseOne',[['chooseOneProduct']]]]}}" bind:chooseAll="__e" bind:chooseOne="__e" bind:__l="__l"></cm-cart-product></block><block wx:if="{{failureList.length>0}}"><cm-cart-product class="product-list data-v-571acef2" vue-id="e780df58-4" data="{{failureList}}" listType="{{failureListType}}" data-event-opts="{{[['^chooseOne',[['chooseFailureProduct']]]]}}" bind:chooseOne="__e" bind:__l="__l"></cm-cart-product></block><view class="footer data-v-571acef2" style="{{$root.s2}}"><view data-event-opts="{{[['tap',[['chooseAll',['$event']]]]]}}" class="radio data-v-571acef2" bindtap="__e"><text class="{{['iconfont','data-v-571acef2',isCheckAll?'icon-xuanze':'icon-weixuanze']}}"></text><text class="tip data-v-571acef2">全选</text></view><block wx:if="{{!isshowDelbtn}}"><view class="center data-v-571acef2"><view class="row data-v-571acef2"><text class="data-v-571acef2">总价:</text><text class="total-price data-v-571acef2">{{"¥"+$root.f0}}</text></view><block wx:if="{{currentCouponIndex>-1&&currentCoupon}}"><view class="row data-v-571acef2"><text class="data-v-571acef2">共减</text><text class="discounted-price data-v-571acef2">{{"¥"+$root.f1}}</text><text data-event-opts="{{[['tap',[['showDiscountedDetail',['$event']]]]]}}" bindtap="__e" class="data-v-571acef2">优惠明细</text><text class="{{['iconfont','data-v-571acef2',showDitail?'tui-icon-arrowdown':'tui-icon-arrowup']}}"></text></view></block></view><view data-event-opts="{{[['tap',[['toConfirmation',['$event']]]]]}}" class="submit data-v-571acef2" bindtap="__e">{{"去结算("+allCount+")"}}</view></block><block wx:else><view class="footer-del data-v-571acef2"><view data-event-opts="{{[['tap',[['hideDelManage',['$event']]]]]}}" class="btn btn-cancel data-v-571acef2" catchtap="__e">取消</view><view data-event-opts="{{[['tap',[['deleteList',['$event']]]]]}}" class="btn btn-confirm data-v-571acef2" catchtap="__e">删除</view></view></block></view></block><block wx:else><view class="empty data-v-571acef2"><cm-empty vue-id="e780df58-5" image="{{StaticUrl+'icon-empty-cart.png'}}" message="购物车空空的,快去逛逛吧~" class="data-v-571acef2" bind:__l="__l"></cm-empty></view></block><cm-coupon-list vue-id="e780df58-6" title="优惠券" listType="search" couponList="{{couponList}}" visible="{{couponVisible}}" btnUseType="{{2}}" tabs="{{couponListTabs}}" data-event-opts="{{[['^close',[['closeCouponList']]],['^tabClick',[['couponListTabClick']]],['^couponClick',[['couponClick']]]]}}" bind:close="__e" bind:tabClick="__e" bind:couponClick="__e" class="data-v-571acef2" bind:__l="__l"></cm-coupon-list><cm-drawer vue-id="e780df58-7" title="优惠明细" visible="{{showDitail}}" position="bottom" offset="{{100}}" zIndex="99" data-event-opts="{{[['^close',[['e0']]]]}}" bind:close="__e" class="data-v-571acef2" bind:__l="__l" vue-slots="{{['default']}}"><view class="discounted-ditail data-v-571acef2"><view class="row data-v-571acef2"><text class="data-v-571acef2">商品总额</text><text class="data-v-571acef2">{{"¥"+$root.f2}}</text></view><view class="row data-v-571acef2"><text class="data-v-571acef2">促销满减</text><text class="red data-v-571acef2">{{"-¥"+$root.f3}}</text></view><block wx:if="{{currentCouponIndex>-1&&currentCoupon}}"><view class="row data-v-571acef2"><text class="data-v-571acef2">优惠券</text><text class="red data-v-571acef2">{{"-¥"+$root.f4}}</text></view></block><view class="row total data-v-571acef2"><text class="data-v-571acef2">总计</text><text class="data-v-571acef2">{{"¥"+$root.f5}}</text></view><view class="tip data-v-571acef2">实际订单金额以结算页为准</view></view></cm-drawer><tui-modal vue-id="e780df58-8" show="{{modal}}" content="{{contentModalText}}" color="#333" size="{{32}}" shape="circle" maskClosable="{{false}}" data-event-opts="{{[['^click',[['handleClick']]],['^cancel',[['hideModal']]]]}}" bind:click="__e" bind:cancel="__e" class="data-v-571acef2" bind:__l="__l"></tui-modal></view>