xlcs/xlcs-user/unpackage/dist/dev/mp-weixin/components/AddToCart/AddToCart.wxml

1 line
1.2 KiB
Plaintext
Raw Permalink Normal View History

2023-09-26 10:22:29 +08:00
<view><block wx:if="{{getCheckProductExists}}"><block><u-button vue-id="72b25e48-1" size="mini" type="warning" data-event-opts="{{[['^click',[['addShopCart']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">加入购物车</u-button></block></block><block wx:else><block><u-number-box class="vue-ref" vue-id="72b25e48-2" disabled-input="{{true}}" input-height="{{40}}" input-width="{{60}}" max="{{getMax}}" min="{{0}}" size="{{20}}" data-ref="uNumber" value="{{skuNumValue}}" data-event-opts="{{[['^minus',[['changeSkuNumMinus']]],['^plus',[['changeSkuNumPlus']]],['^input',[['__set_model',['','skuNumValue','$event',[]]]]]]}}" bind:minus="__e" bind:plus="__e" bind:input="__e" bind:__l="__l"></u-number-box></block></block><u-modal class="vue-ref" vue-id="72b25e48-3" async-close="{{true}}" show-cancel-button="{{true}}" data-ref="confirmModal" value="{{showConfirmModal}}" data-event-opts="{{[['^cancel',[['modalCancel']]],['^confirm',[['modalConfirm']]],['^input',[['__set_model',['','showConfirmModal','$event',[]]]]]]}}" bind:cancel="__e" bind:confirm="__e" bind:input="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="u-flex u-row-center u-m-20">确认删除该商品?</view></u-modal></view>