s-select-sku.wxml 3.3 KB

1
  1. <su-popup wx:if="{{F}}" class="data-v-a43d1e2a" u-s="{{['d']}}" bindclose="{{E}}" u-i="a43d1e2a-0" bind:__l="__l" u-p="{{F}}"><view class="ss-modal-box bg-white ss-flex-col data-v-a43d1e2a"><view class="modal-header ss-flex ss-col-center data-v-a43d1e2a"><view class="header-left ss-m-r-30 data-v-a43d1e2a"><image class="sku-image data-v-a43d1e2a" src="{{a}}" mode="aspectFill"/></view><view class="header-right ss-flex-col ss-row-between ss-flex-1 data-v-a43d1e2a"><view class="goods-title ss-line-2 data-v-a43d1e2a">{{b}}</view><view class="header-right-bottom ss-flex ss-col-center ss-row-between data-v-a43d1e2a"><view class="ss-flex data-v-a43d1e2a"><view class="price-text data-v-a43d1e2a"><image wx:if="{{c}}" class="data-v-a43d1e2a" src="{{d}}" style="width:30rpx;height:30rpx"></image><text wx:if="{{e}}" class="data-v-a43d1e2a">{{f}}</text><text wx:else class="data-v-a43d1e2a">{{g}}</text></view><view wx:if="{{h}}" class="origin-price-text ss-m-l-10 data-v-a43d1e2a"> 积分:{{i}}</view></view><view class="stock-text ss-m-l-20 data-v-a43d1e2a">{{j}}</view></view></view></view><view class="modal-content ss-flex-1 data-v-a43d1e2a"><scroll-view scroll-y="true" class="modal-content-scroll data-v-a43d1e2a" catchtouchmove="{{x}}"><view wx:for="{{k}}" wx:for-item="property" wx:key="c" class="sku-item ss-m-b-20 data-v-a43d1e2a"><view class="label-text ss-m-b-20 data-v-a43d1e2a">{{property.a}}</view><view class="ss-flex ss-col-center ss-flex-wrap data-v-a43d1e2a"><button wx:for="{{property.b}}" wx:for-item="value" wx:key="d" class="{{['ss-reset-button', 'spec-btn', 'data-v-a43d1e2a', value.b, value.c]}}" disabled="{{value.e}}" bindtap="{{value.f}}">{{value.a}}</button></view></view><view wx:if="{{l}}" class="buy-num-box ss-flex ss-col-center ss-row-between ss-m-b-40 data-v-a43d1e2a"><view class="label-text data-v-a43d1e2a">购买金额 (当前可用积分:{{m}})</view><view class="ss-flex ss-col-center data-v-a43d1e2a"><button class="ss-reset-button all-btn data-v-a43d1e2a" bindtap="{{n}}">全部</button><image wx:if="{{o}}" class="data-v-a43d1e2a" src="{{p}}" style="width:30rpx;height:30rpx"></image><input class="uni-input input-points data-v-a43d1e2a" style="width:100rpx;text-align:center" type="number" placeholder="0" bindinput="{{q}}" disabled="{{r}}" value="{{s}}"/></view></view><view wx:else class="buy-num-box ss-flex ss-col-center ss-row-between ss-m-b-40 data-v-a43d1e2a"><view class="label-text data-v-a43d1e2a">购买数量</view><su-number-box wx:if="{{w}}" class="data-v-a43d1e2a" bindchange="{{t}}" u-i="a43d1e2a-1,a43d1e2a-0" bind:__l="__l" bindupdateModelValue="{{v}}" u-p="{{w}}"/></view></scroll-view></view><view class="modal-footer border-top data-v-a43d1e2a"><view wx:if="{{y}}" class="buy-box ss-flex ss-col-center ss-flex ss-col-center ss-row-center data-v-a43d1e2a"><button class="ss-reset-button add-btn ui-Shadow-Main data-v-a43d1e2a" bindtap="{{z}}">加入购物车</button><button class="ss-reset-button buy-btn ui-Shadow-Main data-v-a43d1e2a" bindtap="{{A}}">立即购买</button></view><view wx:else class="buy-box ss-flex ss-col-center ss-p-r-20 data-v-a43d1e2a"><button class="ss-reset-button disabled-btn one-buy-btn ui-Shadow-Main data-v-a43d1e2a" bindtap="{{D}}"><block wx:if="{{B}}"> 立即兑换 </block><block wx:elif="{{C}}"> 立即购买 </block><block wx:else> 立即兑换 </block></button></view></view></view></su-popup>