123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <view class="container">
- <!-- 筛选内容 -->
- <view class="select-box" animation="{{animationBox}}">
- <view class="change-time">
- <view class="select-title">选择时间段:</view>
- <view class="time-list-view">
- <view class="{{index == tIndex ? 'curTimeDate' : ''}}" wx:for-item="tItem" wx:for="{{array}}" wx:for-index="tIndex" wx:key="tIndex" bindtap="getTimeDate" data-value="{{tIndex}}">
- {{tItem}}</view>
- </view>
- <!-- <view class="select-date-view">
- <view class="section">
- <picker bindchange="bindPickerChange" value="{{index}}" range="{{array}}">
- <view class="picker">
- {{array[index]}}
- </view>
- </picker>
- </view>
- </view> -->
- </view>
- <view class="search-btn-view">
- <view class="reset-btn" bindtap="resetTime">重置</view>
- <view class="search-btn" bindtap="selectTime">确定</view>
- </view>
- </view>
- <view class="select-box-bg" bindtap="showSelect" animation="{{animationBg}}" wx:if="{{yFlag == true}}"></view>
- <!-- end -->
- <!-- 日期选择 -->
- <view class="week-view">
- <view class="week-list">
- <view class="week-box {{curIndex == index ? 'cur-week' : ''}}" wx:for="{{weekList}}" wx:key="index"
- data-index="{{index}}" bindtap="getWeek">
- <view class="weekDay">{{ item.week}}</view>
- <view class="weekDate">{{ item.date}}</view>
- </view>
- </view>
- </view>
- <!-- end -->
- <!-- 筛选按钮 -->
- <view class="home-view">
- <view class="home-box" bindtap="selectCity">
- <view class="home-img">
- <image src="/images/home.png"></image>
- </view>
- <view class="home-name">{{homeName}}{{schoolNum}}</view>
- </view>
- <view class="select-view" bindtap="showSelect">筛选</view>
- </view>
- <!-- end -->
- <!-- 校区列表 -->
- <view class="school-view">
- <view class="school-list">
- <view class="school-box" wx:for="{{schoolList}}" wx:key="index" wx:for-item="sitem">
- <view class="school-title">
- <view class="school-name">{{ sitem.name}}</view>
- <view class="school-dis">
- <view class="disImg">
- <image src="/images/local.png"></image>
- </view>
- <view class="disNum">{{ sitem.dist}}</view>
- </view>
- </view>
- <view class="school-addr">
- <view class="address">{{ sitem.address}}</view>
- <view wx:if="{{ sitem.items.length > 0}}" class="showMore {{sitem.moreFlag ? 'curSchool' : ''}}" bindtap="selectSchool" data-id="{{ sitem.id}}" data-index="{{index}}">
- <image class="" src="/images/showMore.png"></image>
- </view>
- </view>
- <view class="school-tel">
- <view class="telNum">{{ sitem.telephone}}</view>
- <view class="getTel" bindtap="collectSchool" data-id="{{ sitem.id}}" >
- <image src="{{ sitem.collect == 1? '/images/cur-getTel.png' : '/images/getTel.png'}}"></image>
- </view>
- </view>
- <view class="school-class-list">
- <view class="class-none" wx:if="{{(! sitem.items) || sitem.items.length == 0}}">该时间段未排课</view>
- <view class="class-list" wx:if="{{sitem.moreFlag}}" wx:for="{{sitem.items}}" wx:for-item="citem" wx:key="cIndex" wx:for-index="items">
- <view class="class-box">
- <view class="class-time">
- {{ citem.time}}
- </view>
- <view class="wait-tip">
- <text wx:if="{{citem.pd_num && citem.pd_num > 0}}">排队中,总共还有{{citem.pd_num}}人</text>
- </view>
- <view class="class-get-view">
- <view class="class-stu-num">
- {{ citem.hasVisitNum}}/{{ citem.maxNum}}
- </view>
- <view class="class-get-btn" wx:if="{{citem.studentVisitNum > 0}}" >
- 已预约
- </view>
- <view class="class-get-btn wait-btn" wx:elif="{{citem.hasVisitNum >= citem.maxNum}}" bindtap="toQueueUp" data-index="{{index}}" data-cindex="{{items}}" data-id="{{citem.id}}">
- 排队
- </view>
- <view class="class-get-btn" wx:elif="{{citem.hasVisitNum < citem.maxNum}}" bindtap="doAppointment" data-index="{{index}}" data-cindex="{{items}}" data-id="{{citem.id}}">
- 预约
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- end -->
- <!-- <view class="loading">{{loading}}</view> -->
- </view>
|