makePiano.wxml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <view class="container">
  2. <!-- 筛选内容 -->
  3. <view class="select-box" animation="{{animationBox}}">
  4. <view class="change-time">
  5. <view class="select-title">选择时间段:</view>
  6. <view class="time-list-view">
  7. <view class="{{index == tIndex ? 'curTimeDate' : ''}}" wx:for-item="tItem" wx:for="{{array}}" wx:for-index="tIndex" wx:key="tIndex" bindtap="getTimeDate" data-value="{{tIndex}}">
  8. {{tItem}}</view>
  9. </view>
  10. <!-- <view class="select-date-view">
  11. <view class="section">
  12. <picker bindchange="bindPickerChange" value="{{index}}" range="{{array}}">
  13. <view class="picker">
  14. {{array[index]}}
  15. </view>
  16. </picker>
  17. </view>
  18. </view> -->
  19. </view>
  20. <view class="search-btn-view">
  21. <view class="reset-btn" bindtap="resetTime">重置</view>
  22. <view class="search-btn" bindtap="selectTime">确定</view>
  23. </view>
  24. </view>
  25. <view class="select-box-bg" bindtap="showSelect" animation="{{animationBg}}" wx:if="{{yFlag == true}}"></view>
  26. <!-- end -->
  27. <!-- 日期选择 -->
  28. <view class="week-view">
  29. <view class="week-list">
  30. <view class="week-box {{curIndex == index ? 'cur-week' : ''}}" wx:for="{{weekList}}" wx:key="index"
  31. data-index="{{index}}" bindtap="getWeek">
  32. <view class="weekDay">{{ item.week}}</view>
  33. <view class="weekDate">{{ item.date}}</view>
  34. </view>
  35. </view>
  36. </view>
  37. <!-- end -->
  38. <!-- 筛选按钮 -->
  39. <view class="home-view">
  40. <view class="home-box" bindtap="selectCity">
  41. <view class="home-img">
  42. <image src="/images/home.png"></image>
  43. </view>
  44. <view class="home-name">{{homeName}}{{schoolNum}}</view>
  45. </view>
  46. <view class="select-view" bindtap="showSelect">筛选</view>
  47. </view>
  48. <!-- end -->
  49. <!-- 校区列表 -->
  50. <view class="school-view">
  51. <view class="school-list">
  52. <view class="school-box" wx:for="{{schoolList}}" wx:key="index" wx:for-item="sitem">
  53. <view class="school-title">
  54. <view class="school-name">{{ sitem.name}}</view>
  55. <view class="school-dis">
  56. <view class="disImg">
  57. <image src="/images/local.png"></image>
  58. </view>
  59. <view class="disNum">{{ sitem.dist}}</view>
  60. </view>
  61. </view>
  62. <view class="school-addr">
  63. <view class="address">{{ sitem.address}}</view>
  64. <view wx:if="{{ sitem.items.length > 0}}" class="showMore {{sitem.moreFlag ? 'curSchool' : ''}}" bindtap="selectSchool" data-id="{{ sitem.id}}" data-index="{{index}}">
  65. <image class="" src="/images/showMore.png"></image>
  66. </view>
  67. </view>
  68. <view class="school-tel">
  69. <view class="telNum">{{ sitem.telephone}}</view>
  70. <view class="getTel" bindtap="collectSchool" data-id="{{ sitem.id}}" >
  71. <image src="{{ sitem.collect == 1? '/images/cur-getTel.png' : '/images/getTel.png'}}"></image>
  72. </view>
  73. </view>
  74. <view class="school-class-list">
  75. <view class="class-none" wx:if="{{(! sitem.items) || sitem.items.length == 0}}">该时间段未排课</view>
  76. <view class="class-list" wx:if="{{sitem.moreFlag}}" wx:for="{{sitem.items}}" wx:for-item="citem" wx:key="cIndex" wx:for-index="items">
  77. <view class="class-box">
  78. <view class="class-time">
  79. {{ citem.time}}
  80. </view>
  81. <view class="wait-tip">
  82. <text wx:if="{{citem.pd_num && citem.pd_num > 0}}">排队中,总共还有{{citem.pd_num}}人</text>
  83. </view>
  84. <view class="class-get-view">
  85. <view class="class-stu-num">
  86. {{ citem.hasVisitNum}}/{{ citem.maxNum}}
  87. </view>
  88. <view class="class-get-btn" wx:if="{{citem.studentVisitNum > 0}}" >
  89. 已预约
  90. </view>
  91. <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}}">
  92. 排队
  93. </view>
  94. <view class="class-get-btn" wx:elif="{{citem.hasVisitNum < citem.maxNum}}" bindtap="doAppointment" data-index="{{index}}" data-cindex="{{items}}" data-id="{{citem.id}}">
  95. 预约
  96. </view>
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. </view>
  103. </view>
  104. <!-- end -->
  105. <!-- <view class="loading">{{loading}}</view> -->
  106. </view>