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

76 lines
3.8 KiB
Plaintext

<view>
<view class="{{ name? 'text bold' :'text'}}" bindtap="showAlert" data-show="1" >
{{ name || title }}<image src="/img/tobottom-c.png" wx:if="{{ img=='tobottom' }}" class="tobottom"></image>
</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">
选择 区域/附近学校
</view>
<view class="list">
<view class="left">
<view class="box">
<view class="{{ select1=='location' ? 'active item' :'item'}}" data-value="location" bindtap="selectArea" >区域</view>
<view class="{{ select1=='school' ? 'active item' :'item'}}" data-value="school" bindtap="selectArea" >学校</view>
<view class="{{ select1=='ischeck' ? 'active item ischeck' :'item ischeck'}}" data-value="ischeck" bindtap="selectArea" wx:if="{{ verifiedList.length>0 }}">
<image src="/img/{{ select1=='ischeck' ? 'ischeck' :'ischeck-grey'}}.png" class="ischeck-logo"></image>
已核实房源</view>
</view>
</view>
<block wx:if="{{ select1=='location' }}">
<view class="center">
<view class="box">
<view class="{{value1 =='' || value1 == 0 ? '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="0" bindtap="selectItem2">
<view class="{{ selectarr === null ? 'color-3' :''}}">不限</view>
<image src="/img/checkred.png" class="checked" wx:if="{{ selectarr === null }}"></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 class="{{ selectarr[index]?'color-3' :'' }}">{{ item }}</view>
<view class="check-box"><image src="/img/right.png" class="checked" wx:if="{{ selectarr[index] }}"></image></view>
</view>
</block>
</scroll-view>
</view>
</block>
<block wx:if="{{ select1=='school' }}">
<view class="right grey">
<scroll-view scroll-y="true" class="box">
<view class="item" data-value="" bindtap="selectItemSchool">
<view class="{{ ''==selectSchool?'color-3' :'' }}">不限</view>
<image src="/img/checkred.png" class="checked" wx:if="{{ ''==selectSchool }}"></image>
</view>
<view class="item" wx:for="{{ school }}" wx:key="index" data-value="{{index}}" bindtap="selectItemSchool">
<view class="{{ index==selectSchool?'color-3' :'' }}">{{ item }} 附近</view>
<image src="/img/checkred.png" class="checked" wx:if="{{ index==selectSchool }}"></image>
</view>
</scroll-view>
</view>
</block>
<!-- <view > -->
<view class="right" hidden="{{ select1!='ischeck' }}">
<scroll-view scroll-y="true" class="box">
<ads item="{{ item }}" wx:for="{{ verifiedList }}" wx:key='index'></ads>
</scroll-view>
</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>