|
@@ -67,35 +67,37 @@
|
|
|
</van-popup>
|
|
|
<!-- 学校 -->
|
|
|
<van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{102}}" show="{{showSchool}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseSchool">
|
|
|
- <view class="toolbar-top">
|
|
|
- <view class="toolbar-cancel" bind:tap="onCloseSchool">取消</view>
|
|
|
- <view class="toolbar-confirm" bind:tap="onSubmitSchool">确认</view>
|
|
|
- </view>
|
|
|
- <view class="areaListOpen" bind:tap="onShowAreaList">
|
|
|
- <text>{{ provinceName + " " + cityName + " " + regionName}}</text>
|
|
|
- <image src="./images/chevron-down.png" />
|
|
|
- </view>
|
|
|
- <view class="searchList">
|
|
|
- <van-search use-left-icon-slot use-action-slot show-action placeholder="请输入学校名称关键字" value="{{ searchName }}" bind:search="onSearch" bind:change="onSearchChange" bind:clear="onSearch">
|
|
|
- <image slot="left-icon" src="./images/icon-search.png" class="icon-search" />
|
|
|
- <view slot="action" class="searchBtn" bind:tap="onSearch">搜索</view>
|
|
|
- </van-search>
|
|
|
- </view>
|
|
|
- <van-picker wx:if="{{schoolAreaList.length}}" loading="{{ schoolLoading }}" columns="{{ schoolAreaList }}" bind:change="onChangeSchool" visible-item-count="6" default-index="{{ schoolAreaIndex }}">
|
|
|
- </van-picker>
|
|
|
- <view wx:else class="empty-box">
|
|
|
- <image src="https://oss.dayaedu.com/ktyq/1739278149891.png"></image>
|
|
|
- <view class="empty-text">暂无数据</view>
|
|
|
- </view>
|
|
|
+ <block wx:if="{{showSchool}}">
|
|
|
+ <view class="toolbar-top">
|
|
|
+ <view class="toolbar-cancel" bind:tap="onCloseSchool">取消</view>
|
|
|
+ <view class="toolbar-confirm" bind:tap="onSubmitSchool">确认</view>
|
|
|
+ </view>
|
|
|
+ <view class="areaListOpen" bind:tap="onShowAreaList">
|
|
|
+ <text>{{ provinceName + " " + cityName + " " + regionName}}</text>
|
|
|
+ <image src="./images/chevron-down.png" />
|
|
|
+ </view>
|
|
|
+ <view class="searchList">
|
|
|
+ <van-search use-left-icon-slot use-action-slot show-action placeholder="请输入学校名称关键字" value="{{ searchName }}" bind:search="onSearch" bind:change="onSearchChange" bind:clear="onSearch">
|
|
|
+ <image slot="left-icon" src="./images/icon-search.png" class="icon-search" />
|
|
|
+ <view slot="action" class="searchBtn" bind:tap="onSearch">搜索</view>
|
|
|
+ </van-search>
|
|
|
+ </view>
|
|
|
+ <van-picker wx:if="{{schoolAreaList.length}}" loading="{{ schoolLoading }}" columns="{{ schoolAreaList }}" bind:change="onChangeSchool" visible-item-count="6" default-index="{{ schoolAreaIndex }}">
|
|
|
+ </van-picker>
|
|
|
+ <view wx:else class="empty-box">
|
|
|
+ <image src="https://oss.dayaedu.com/ktyq/1739278149891.png"></image>
|
|
|
+ <view class="empty-text">暂无数据</view>
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
</van-popup>
|
|
|
<!-- 年级 -->
|
|
|
<van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{102}}" show="{{showGrade}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseGrade">
|
|
|
- <van-picker columns="{{ gradeList }}" visible-item-count="6" show-toolbar bind:cancel="onCloseGrade" bind:confirm="onSubmitGrade" default-index="{{ gradeIndex }}">
|
|
|
+ <van-picker wx:if="{{ showGrade }}" columns="{{ gradeList }}" visible-item-count="6" show-toolbar bind:cancel="onCloseGrade" bind:confirm="onSubmitGrade" default-index="{{ gradeIndex }}">
|
|
|
</van-picker>
|
|
|
</van-popup>
|
|
|
<!-- 班级 -->
|
|
|
<van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{102}}" show="{{showClass}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseClass">
|
|
|
- <van-picker columns="{{ classList }}" visible-item-count="6" show-toolbar bind:cancel="onCloseClass" bind:confirm="onSubmitClass" default-index="{{ classIndex }}">
|
|
|
+ <van-picker wx:if="{{ showClass }}" columns="{{ classList }}" visible-item-count="6" show-toolbar bind:cancel="onCloseClass" bind:confirm="onSubmitClass" default-index="{{ classIndex }}">
|
|
|
</van-picker>
|
|
|
</van-popup>
|
|
|
</view>
|