38 lines
2.2 KiB
Plaintext
38 lines
2.2 KiB
Plaintext
<view class="picker-modal {{gift?'in':'out'}} {{iphonexnavbar}}">
|
|
<view class="gift-picker">
|
|
<radio-group class="radio-group">
|
|
<view class="option-picker-inner gift-picker">
|
|
<view bindtap="emptyActive" class="gifttitle" style="{{goods.gifts.length==1?'margin-bottom:15rpx':''}}">{{goods.gifts.length>1?'选择':''}}赠品 <text class="icox icox-close pull-right"></text>
|
|
</view>
|
|
<view class="gift-list-group">
|
|
<view class="gift-list" wx:for="{{goods.gifts}}" wx:key="key">
|
|
<label bindtap="radioChange" class="radio" data-giftgoodsid="{{item.id}}" data-title="{{item.title}}" wx:if="{{goods.gifts.length>1&&item.canchose==1}}">
|
|
<radio checked="" color="red" value="{{item.id}}"></radio>{{item.title}}
|
|
</label>
|
|
<label class="radio" wx:if="{{goods.gifts.length>1&&item.canchose==0}}">
|
|
{{item.title}}
|
|
</label>
|
|
<navigator url="/pages/goods/detail/index?id={{val.id}}" wx:for="{{item.gift}}" wx:for-item="val" wx:key="gift_key">
|
|
<view class="fui-list" style="background: #f9f9f9">
|
|
<view class="sold-out-gift" wx:if="{{val.total==0}}">已售罄</view>
|
|
<view class="fui-list-media">
|
|
<image src="{{val.thumb}}"></image>
|
|
</view>
|
|
<view class="fui-list-inner">
|
|
<view class="subtitle">{{val.title}}</view>
|
|
<view class="row">
|
|
<view class="row-text">{{val.marketprice}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</navigator>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</radio-group>
|
|
<view bindtap="emptyActive" class="fui-navbar">
|
|
<view class="nav-item btn" style="background:#ff5555">确定</view>
|
|
</view>
|
|
</view>
|
|
</view>
|