store/packageA/mycomponent/goodsComponent/plugin/groupWork/groupWork.wxml

54 lines
2.6 KiB
Plaintext

<!--packageA/mycomponent/goodsComponent/plugin/groupWork/groupWork.wxml-->
<view class="u_groupWork">
<view class="u_groupWork-box">
<view class="u_groupWork-left">
<view class="u_groupWork_title">参与拼团</view>
<view class="u_groupWork_num">该活动您还剩余 {{ gooddatas.surplus }} 次开团机会</view>
</view>
<van-button type="danger" size="small" color="#f14e4e" disabled="{{groupWork_disabled}}"
wx:if="{{gooddatas.group_open == 1}}" catchtap="showSpecsPop">发起拼团</van-button>
</view>
<!-- 规格弹窗,关联层级 -->
<yz_specs id='yzSpecs' goods="{{goods}}" hidden-buy-btn disable-stepper-input show="{{showSpecs}}"
bind:sku-selected="skuSelected" bind:buy-clicked="buyClicked">
<view slot='sku-header-other'>
<view style="viewne-height: 24px;font-size:12px;" wx:if="{{!groupModel}}">请选择层级</view>
</view>
<view slot='sku-body-bottom'>
<view class="select_box noVantRadio" wx:if="groupLevel" style="padding-top: 0;">
<van-radio-group value="{{groupModel}}" checked-color="#f15353" class="select" style="padding-bottom: 0;">
<van-radio catchtap="selectGroup" data-item="{{item}}" use-icon-slot class="radio-style {{groupModel == item.id?'vantRadioshow':''}} {{item.status != 2?'disabled-style':''}}" wx:for="{{gooddatas.specs}}" name="{{item.id}}" disabled="{{item.status != 2}}">
<view style="padding: 8rpx 25rpx 8rpx 0;" class="vantRadioshow-color">
<view>¥{{ item.min_price }} 起</view>
<view>{{ item.person }}人团</view>
</view>
</van-radio>
</van-radio-group>
</view>
</view>
<view slot='sku-buy-btn'>
<van-button type="danger" size="large" id="btsmall" catchtap="getPayData" custom-style="font-size:12px;">
<text style="width:100%;display: inline-block;">0.1元开/参团金</text>
<text>该金额为支付开/参团费用,非商品金额</text>
</van-button>
</view>
</yz_specs>
<!-- 支付 -->
<van-popup show="{{Payshow}}" position="bottom" overlay="{{true}}" bind:close="rewardPayshowClose">
<view class="rewardPay">
<view class="payMode">
<view class="ul">
<view class="li" data-info="{{item}}" catchtap="payPost" wx:for="{{btnData}}" wx:key="index">
{{ item.name }}
</view>
</view>
</view>
<view class="cancel" catchtap="rewardPayCancelBtn">取消</view>
</view>
</van-popup>
<pay-keyboard show="{{popupSpecs}}" wx:if="{{popupSpecs}}" bindclose="payKeyboardClose"
bindcomplete="payKeyboardComplete"></pay-keyboard>
</view>