2023-04-17 16:14:18 +08:00

48 lines
2.1 KiB
Plaintext

<view>
<view class="{{ name? 'text bold' :'text'}}" bindtap="showAlert" data-show="1" wx:if="{{ !formSelect }}">
{{ name || title }}<image src="/img/tobottom-c.png" wx:if="{{ img=='tobottom' }}" class="tobottom"></image>
</view>
<view class="{{ name2? 'text' :'text color-c'}}" bindtap="showAlert" data-show="1" wx:if="{{ formSelect }}">
{{ name2 || '请选择' }}
</view>
<view class="alert" wx:if="{{ show }}" catchtouchmove="catchmove">
<view class="block-back" bindtap="showAlert" data-show="0"></view>
<view class="inner">
<view class="title">
{{ title }}
</view>
<view class="list">
<view class="left">
<view class="box">
<view wx:if="{{ !formSelect }}" class="{{value1 =='' ? 'active item' :'item'}}" data-value="" bindtap="selectItem">不限</view>
<view class="{{item.value==value1 ? 'active item' :'item'}}" wx:for="{{ arr1 }}" data-value="{{ item.value }}" bindtap="selectItem" wx:key="index">{{ item.name }}</view>
</view>
</view>
<view class="right">
<scroll-view scroll-y="true" class="box">
<view class="item" data-value="{{ value1 }}" wx:if="{{ !formSelect }}" bindtap="selectItem2">
<view class="{{ value2 == value1 ? 'color-red' :''}}">不限</view>
<image src="/img/checkred.png" class="checked" wx:if="{{ value2 == value1 }}"></image>
</view>
<block wx:for="{{ list }}" wx:key="index">
<view class="item" wx:if="{{index > value1 && index <value1*1 +1 }}" data-value="{{index }}" bindtap="selectItem2">
<view>{{ item }}</view>
<image src="/img/checkred.png" class="checked" wx:if="{{ value2==index }}"></image>
</view>
</block>
</scroll-view>
</view>
</view>
<view class="btn-box">
<view class="btn cle" bindtap="showAlert" data-show="0">取消</view>
<view class="btn" bindtap="submit">确定</view>
</view>
</view>
</view>
</view>