31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
<!-- 单一选项 -->
|
|
<view>
|
|
<view wx:if="{{ slots }}" bindtap="showAlert" data-show="1">
|
|
<slot></slot>
|
|
|
|
</view>
|
|
<view wx:if="{{ !slots }}">
|
|
<view class="{{ name? 'text bold' :'text'}}" bindtap="showAlert" data-show="1" wx:if="{{ !formSelect }}">
|
|
{{ name }}
|
|
<image src="/img/order.png" class="order"></image>
|
|
</view>
|
|
<view class="{{ name2 ? 'text' :'text color-c'}}" bindtap="showAlert" data-show="1" wx:if="{{ formSelect }}">
|
|
{{ name2 || '请选择' }}
|
|
</view>
|
|
</view>
|
|
|
|
<view class="alert-box" hidden="{{ !show }}" catchtouchmove="catchmove">
|
|
<view class="block-back" bindtap="showAlert" data-show="0"></view>
|
|
<view class="inner">
|
|
<view class="title">{{ title }}</view>
|
|
<scroll-view class="ul" scroll-y="trye">
|
|
<view class="{{ item.value==value ? 'li active':'li' }}" wx:for="{{ list }}" wx:key="index" data-alias="{{ item.alias }}" data-name="{{ item.name }}" data-value="{{ item.value}}" bindtap="changeItem">
|
|
{{ item.name }}
|
|
<block wx:if="{{ slots }}">
|
|
{{ item.alias }}
|
|
</block>
|
|
</view>
|
|
</scroll-view>
|
|
</view>
|
|
</view>
|
|
</view> |