cart.wxml 2.9 KB

1
  1. <s-layout wx:if="{{v}}" class="data-v-c30a4c2b" u-s="{{['d']}}" style="{{t}}" u-i="c30a4c2b-0" bind:__l="__l" u-p="{{v}}"><s-empty wx:if="{{a}}" class="data-v-c30a4c2b" u-i="c30a4c2b-1,c30a4c2b-0" bind:__l="__l" u-p="{{b}}"/><view wx:if="{{c}}" class="cart-box ss-flex ss-flex-col ss-row-between data-v-c30a4c2b"><view class="cart-header ss-flex ss-col-center ss-row-between ss-p-x-30 data-v-c30a4c2b"><view class="header-left ss-flex ss-col-center ss-font-26 data-v-c30a4c2b"> 共 <text class="goods-number ui-TC-Main ss-flex data-v-c30a4c2b">{{d}}</text> 件商品 </view><view class="header-right data-v-c30a4c2b"><button wx:if="{{e}}" class="ss-reset-button data-v-c30a4c2b" bindtap="{{f}}"> 取消 </button><button wx:else class="ss-reset-button ui-TC-Main data-v-c30a4c2b" bindtap="{{g}}"> 编辑 </button></view></view><view class="ss-m-t-70 data-v-c30a4c2b"></view><view wx:for="{{h}}" wx:for-item="shopItems" wx:key="c" class="cart-content ss-flex-1 ss-p-x-30 data-v-c30a4c2b"><view class="ss-m-b-14 bg-white goods-box data-v-c30a4c2b"><view class="title-text ss-p-x-10 ss-p-t-20 ss-flex ss-col-center data-v-c30a4c2b"><text class="ss-m-l-10 data-v-c30a4c2b">{{shopItems.a}}</text></view><view wx:for="{{shopItems.b}}" wx:for-item="product" wx:key="j" class="ss-r-10 data-v-c30a4c2b"><view class="ss-flex ss-col-center data-v-c30a4c2b"><label class="check-box ss-flex ss-col-center ss-p-l-10 data-v-c30a4c2b" bindtap="{{product.c}}"><radio class="data-v-c30a4c2b" checked="{{product.a}}" color="var(--ui-BG-Main)" style="transform:scale(0.8)" catchtap="{{product.b}}"/></label><s-goods-item wx:if="{{product.i}}" class="data-v-c30a4c2b" u-s="{{['tool']}}" u-i="{{product.h}}" bind:__l="__l" u-p="{{product.i}}"><su-number-box wx:if="{{i}}" class="data-v-c30a4c2b" bindchange="{{product.d}}" u-i="{{product.e}}" bind:__l="__l" bindupdateModelValue="{{product.f}}" u-p="{{product.g}}" slot="tool"></su-number-box></s-goods-item></view></view></view></view><su-fixed wx:if="{{j}}" class="data-v-c30a4c2b" u-s="{{['d']}}" u-i="c30a4c2b-4,c30a4c2b-0" bind:__l="__l" u-p="{{s}}"><view class="cart-footer ss-flex ss-col-center ss-row-between ss-p-x-30 border-bottom data-v-c30a4c2b"><view class="footer-left ss-flex ss-col-center data-v-c30a4c2b"><label class="check-box ss-flex ss-col-center ss-p-r-30 data-v-c30a4c2b" bindtap="{{m}}"><radio class="data-v-c30a4c2b" checked="{{k}}" color="var(--ui-BG-Main)" style="transform:scale(0.8)" catchtap="{{l}}"/><view class="ss-m-l-8 data-v-c30a4c2b"> 全选 </view></label><text class="data-v-c30a4c2b">合计:</text><view class="text-price price-text data-v-c30a4c2b">{{n}}</view></view><view class="footer-right data-v-c30a4c2b"><button wx:if="{{o}}" class="ss-reset-button ui-BG-Main-Gradient pay-btn ui-Shadow-Main data-v-c30a4c2b" bindtap="{{p}}"> 删除 </button><button wx:else class="ss-reset-button ui-BG-Main-Gradient pay-btn ui-Shadow-Main data-v-c30a4c2b" bindtap="{{r}}"> 去结算 {{q}}</button></view></view></su-fixed></view></s-layout>