xlcs/xlcs-user/unpackage/dist/dev/mp-weixin/pages/cart/cart.wxml

1 line
4.3 KiB
Plaintext
Raw Normal View History

2023-09-26 10:22:29 +08:00
<view class="gg"><u-navbar vue-id="1775f8c0-1" border-bottom="{{false}}" is-back="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="u-flex u-m-l-20 u-m-r-20"><view class="u-font-xl u-m-r-20">购物车</view><view class="u-font-xs u-light-color u-p-t-10">{{"共"+getSelectedCount+"件商品"}}</view></view></u-navbar><view class="gg-content"><block wx:if="{{getCartInfoList}}"><scroll-view class="gg-cart-sv-container" scroll-y="true"><u-checkbox-group vue-id="1775f8c0-2" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{$root.l0}}" wx:for-item="cartInfoListItem" wx:for-index="index" wx:key="index"><view><u-card vue-id="{{('1775f8c0-3-'+index)+','+('1775f8c0-2')}}" border="{{false}}" padding="{{10}}" show-head="{{cartInfoListItem.m0}}" bind:__l="__l" vue-slots="{{['head','body']}}"><view class="u-m-10" slot="head"><u-checkbox vue-id="{{('1775f8c0-4-'+index)+','+('1775f8c0-3-'+index)}}" name="{{cartInfoListItem.m1}}" value="{{cartInfoListItem.m2}}" active-color="red" shape="circle" data-event-opts="{{[['^change',[['changeMultiChecked']]]]}}" bind:change="__e" bind:__l="__l"></u-checkbox><text>{{cartInfoListItem.$orig.activityRule.ruleDesc}}</text></view><view slot="body"><block wx:for="{{cartInfoListItem.$orig.cartInfoList}}" wx:for-item="cartInfoItem" wx:for-index="idx" wx:key="idx"><view><view class="{{['u-body-item','u-flex','u-col-between','u-p-10',(idx!==cartInfoListItem.g0-1)?'u-border-bottom':'']}}"><u-checkbox vue-id="{{('1775f8c0-5-'+index+'-'+idx)+','+('1775f8c0-3-'+index)}}" name="{{cartInfoItem.skuId}}" active-color="red" shape="circle" value="{{cartInfoItem.isChecked}}" data-event-opts="{{[['^change',[['changeChecked']]],['^input',[['__set_model',['$0','isChecked','$event',[]],[[['getCartInfoList','',index],['cartInfoList','',idx]]]]]]]}}" bind:change="__e" bind:input="__e" bind:__l="__l"></u-checkbox><list-img-item vue-id="{{('1775f8c0-6-'+index+'-'+idx)+','+('1775f8c0-3-'+index)}}" lazyLoad="{{false}}" showBottom="{{cartInfoItem.skuType===0&&cartInfoItem.isNewPerson===1}}" showLeft="{{cartInfoItem.skuType===1}}" showRight="{{false}}" src="{{cartInfoItem.imgUrl}}" height="200rpx" width="200rpx" bind:__l="__l"></list-img-item><view class="u-p-b-20 u-m-l-20" style="flex:1;"><view class="u-font-lg">{{cartInfoItem.skuName}}</view><view class="u-flex u-row-between"><view class="u-type-error"><text>¥</text><text>{{cartInfoItem.cartPrice}}</text></view><add-to-cart vue-id="{{('1775f8c0-7-'+index+'-'+idx)+','+('1775f8c0-3-'+index)}}" shopDetail="{{cartInfoItem}}" skuId="{{cartInfoItem.skuId}}" bind:__l="__l"></add-to-cart></view></view></view></view></block></view></u-card></view></block></u-checkbox-group></scroll-view></block><block wx:else><u-empty vue-id="1775f8c0-8" margin-top="{{300}}" mode="car" bind:__l="__l" vue-slots="{{['bottom']}}"><u-button vue-id="{{('1775f8c0-9')+','+('1775f8c0-8')}}" slot="bottom" type="error" data-event-opts="{{[['^click',[['gotoCategory']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">点击购买商品</u-button></u-empty></block><view class="gg-navigation"><view class="navigation"><view class="left"><view class="item u-m-t-20"><u-checkbox vue-id="1775f8c0-10" value="{{isAllSelected}}" active-color="red" shape="circle" data-event-opts="{{[['^change',[['changeAllSelected']]]]}}" bind:change="__e" bind:__l="__l"></u-checkbox></view><view class="item"><view class="u-font-sm u-line-1"><view class="u-type-error">{{"现价:¥"+getCartPriceInfo.totalAmount}}</view><view class="u-font-xs u-type-info">{{'优惠券优惠:¥'+getCartPriceInfo.couponReduceAmount+''}}<text class="u-font-xs u-m-l-20 u-type-info">原价:</text><text class="u-font-xs u-type-info">{{"¥"+getCartPriceInfo.originalTotalAmount}}</text></view></view></view></view><view class="right"><view data-event-opts="{{[['tap',[['gotoConfirmOrder',['$event']]]]]}}" class="buy btn u-line-1" bindtap="__e">立即购买</view></view></view></view></view><coupon-info-list vue-id="1775f8c0-11" couponInfoList="{{getCartCouponInfoList}}" showCouponInfoList="{{showCouponInfoList}}" data-even