stuNeed.wxml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. <!--pages/stuNeed/stuNeed.wxml-->
  2. <view>
  3. <view class="stuNeedArea">
  4. <!-- 学生姓名 -->
  5. <view class="stuInfo">
  6. <view class="stuInfo-title">姓<text decode="true">&emsp;&emsp;</text>名*:</view>
  7. <input class="stuInput" type="text" placeholder="您的姓名" bindinput="getStuName" />
  8. </view>
  9. <!-- 学生手机号 -->
  10. <view class="stuInfo">
  11. <view class="stuInfo-title">手机号码*:</view>
  12. <input class="stuInput" type="number" placeholder="手机号码" bindinput="getStuPhone" />
  13. </view>
  14. <!-- 学生微信号 -->
  15. <view class="stuInfo">
  16. <view class="stuInfo-title">微<text decode="true">&ensp;</text>信<text decode="true">&ensp;</text>号*:</view>
  17. <input class="stuInput" type="text" placeholder="微信号(不便接听电话时微信沟通)" bindinput="getStuWeChat" />
  18. </view>
  19. <!-- 课程大类 -->
  20. <view class="stuInfo">
  21. <view>课程类别*:</view>
  22. <view class="stuNeedOptions" bindtap="chooseCourseTitle">
  23. <view class="stuCourse">{{chosedCourse || '请选择课程类别'}}</view>
  24. <view class="iconfont icon-xiangxia"></view>
  25. </view>
  26. </view>
  27. <!-- 课程细分小类 -->
  28. <view class="stuInfo">
  29. <view>课程细分*:</view>
  30. <view class="stuNeedOptions" bindtap="toCourseDetail">
  31. <view class="stuCourse">{{chosedCourseDetail || '请先选择课程类别'}}</view>
  32. <view class="iconfont icon-xiangxia"></view>
  33. </view>
  34. </view>
  35. <!-- 辅导方式 -->
  36. <view class="stuInfo">
  37. <view>辅导方式*:</view>
  38. <view class="stuNeedOptions" bindtap="toTeachPosition">
  39. <view class="stuCourse">{{teachPosition || '请选择'}}</view>
  40. <view class="iconfont icon-xiangxia"></view>
  41. </view>
  42. </view>
  43. <!-- 学生性别 -->
  44. <view class="stuInfo">
  45. <view>学生性别*:</view>
  46. <view class="stuNeedOptions" bindtap="chooseStuSex">
  47. <view class="stuCourse">{{stuSex || '请选择'}}</view>
  48. <view class="iconfont icon-xiangxia"></view>
  49. </view>
  50. </view>
  51. <!-- 课时费 -->
  52. <view class="stuInfo">
  53. <view class="stuInfo-title">课<text decode="true">&ensp;</text>时<text decode="true">&ensp;</text>费*:</view>
  54. <input class="stuInput" type="number" bindinput="getSalary" placeholder="请输入课时金额" />
  55. </view>
  56. <!-- 上课时间 -->
  57. <view>
  58. <text class="tr-title">上课时间*:</text>
  59. <view class="tr-container">
  60. <view class="tr_1">
  61. <text class="th_0" decode="true">&ensp;&ensp;&ensp;&ensp;</text>
  62. <text class="th_1">周一</text>
  63. <text class="th_1">周二</text>
  64. <text class="th_1">周三</text>
  65. <text class="th_1">周四</text>
  66. <text class="th_1">周五</text>
  67. <text class="th_1">周六</text>
  68. <text class="th_2">周日</text>
  69. </view>
  70. <view class="tr_2">
  71. <checkbox-group>
  72. <view class="th2_0">上午</view>
  73. <checkbox class="th2_1"></checkbox>
  74. <checkbox class="th2_1"></checkbox>
  75. <checkbox class="th2_1"></checkbox>
  76. <checkbox class="th2_1"></checkbox>
  77. <checkbox class="th2_1"></checkbox>
  78. <checkbox class="th2_1"></checkbox>
  79. <checkbox class="th2_2"></checkbox>
  80. </checkbox-group>
  81. </view>
  82. <view class="tr_2">
  83. <checkbox-group>
  84. <view class="th2_0">下午</view>
  85. <checkbox class="th2_1"></checkbox>
  86. <checkbox class="th2_1"></checkbox>
  87. <checkbox class="th2_1"></checkbox>
  88. <checkbox class="th2_1"></checkbox>
  89. <checkbox class="th2_1"></checkbox>
  90. <checkbox class="th2_1"></checkbox>
  91. <checkbox class="th2_2"></checkbox>
  92. </checkbox-group>
  93. </view>
  94. <view class="tr_2">
  95. <checkbox-group>
  96. <view class="th2_0">晚上</view>
  97. <checkbox class="th2_1"></checkbox>
  98. <checkbox class="th2_1"></checkbox>
  99. <checkbox class="th2_1"></checkbox>
  100. <checkbox class="th2_1"></checkbox>
  101. <checkbox class="th2_1"></checkbox>
  102. <checkbox class="th2_1"></checkbox>
  103. <checkbox class="th2_2"></checkbox>
  104. </checkbox-group>
  105. </view>
  106. </view>
  107. </view>
  108. <!-- 期望达到的目标或效果 -->
  109. <view class="stuGoal">
  110. <text>期望达到的目标或效果:</text>
  111. <textarea class="goal" name="" id="" cols="30" rows="10" maxlength="140" bindinput="getStuGoal"></textarea>
  112. </view>
  113. <!-- 老师身份 -->
  114. <view class="stuInfo">
  115. <view>老师身份:</view>
  116. <view class="stuNeedOptions" bindtap="chooseTeachAttr">
  117. <view class="stuCourse">{{teacherAttr}}</view>
  118. <view class="iconfont icon-xiangxia"></view>
  119. </view>
  120. </view>
  121. <!-- 老师学历 -->
  122. <view class="stuInfo">
  123. <view>老师学历:</view>
  124. <view class="stuNeedOptions" bindtap="chooseTeachEdu">
  125. <view class="stuCourse">{{teacherEdu}}</view>
  126. <view class="iconfont icon-xiangxia"></view>
  127. </view>
  128. </view>
  129. <!-- 老师性别 -->
  130. <view class="stuInfo">
  131. <view>老师性别:</view>
  132. <view class="stuNeedOptions" bindtap="chooseTeachSex">
  133. <view class="stuCourse">{{teacherSex}}</view>
  134. <view class="iconfont icon-xiangxia"></view>
  135. </view>
  136. </view>
  137. <!-- 是否要求老师上传头像 -->
  138. <view class="stuInfo">
  139. <view>是否要求头像上传:</view>
  140. <view class="stuNeedOptions">
  141. <view class="stuCourse">{{teacherImg}}</view>
  142. <view class="iconfont icon-xiangxia"></view>
  143. </view>
  144. </view>
  145. <!-- 对老师的其他需求 -->
  146. <view class="stuGoal">
  147. <text>对老师的其他需求:</text>
  148. <textarea class="goal" name="" id="" cols="30" rows="10" maxlength="140"></textarea>
  149. </view>
  150. </view>
  151. <!-- 提交按钮 -->
  152. <button class="submitBtn" type="primary" bindtap="toSubmit">提交</button>
  153. </view>
  154. <!-- 底部空白区域,为了增加间隔效果,避免提交按钮完全贴着底边 -->
  155. <view class="blank"></view>
  156. <!-- 以下是弹窗选区部分 -->
  157. <!-- 课程类别(大类) -->
  158. <view wx:if="{{showCourseTitle}}">
  159. <!-- 空白区(背景) -->
  160. <view class="mask" bindtap="hiddenCourseTitle"></view>
  161. <!-- 内容区 -->
  162. <view class="courseTitle-wrapper">
  163. <view class="chooseContent-title">
  164. <view bindtap="hiddenCourseTitle">取消</view>
  165. <view bindtap="confirmCourseTitle">确定</view>
  166. </view>
  167. <scroll-view scroll-y="true" class="CourseTitleScroll">
  168. <view class="chooseContent" wx:for="{{courseList}}" wx:key="key" bindtap="onChooseCourseTitle" data-index="{{index}}">
  169. <view style="position: absolute;left: 40rpx;">{{item.name}}</view>
  170. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  171. </view>
  172. </scroll-view>
  173. </view>
  174. </view>
  175. <!-- 课程细分(小类) -->
  176. <view wx:if="{{showCourseDetail}}">
  177. <!-- 空白区(背景) -->
  178. <view class="mask" bindtap="hiddenCourseDetail"></view>
  179. <!-- 内容区 -->
  180. <view class="courseDetail-wrapper">
  181. <view class="chooseContent-title">
  182. <view bindtap="hiddenCourseDetail">取消</view>
  183. <view bindtap="confirmCourseDetail">确定</view>
  184. </view>
  185. <scroll-view scroll-y="true" class="courseDetailScroll">
  186. <view class="chooseContent" wx:for="{{courseDetail[courseChosedIndex]}}" wx:key="key" bindtap="onChooseCourseDetail" data-index="{{index}}">
  187. <view style="position: absolute;left: 40rpx;">{{item.courseName}}</view>
  188. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  189. </view>
  190. </scroll-view>
  191. </view>
  192. </view>
  193. <!-- 辅导方式 -->
  194. <view wx:if="{{chosedTeachPosition}}">
  195. <!-- 空白区(背景) -->
  196. <view class="mask" bindtap="hiddenTeachPosition"></view>
  197. <!-- 内容区 -->
  198. <view class="options-wrapper">
  199. <view class="chooseContent-title">
  200. <view bindtap="hiddenTeachPosition">取消</view>
  201. <view bindtap="confirmTeachPosition">确定</view>
  202. </view>
  203. <view class="chooseContent" wx:for="{{teachPositions}}" wx:key="key" bindtap="onTeachPosition" data-index="{{index}}">
  204. <view style="position: absolute;left: 40rpx;">{{item.opType}}</view>
  205. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  206. </view>
  207. </view>
  208. </view>
  209. <!-- 学生性别 -->
  210. <view wx:if="{{chosedStuSex}}">
  211. <!-- 空白区(背景) -->
  212. <view class="mask" bindtap="hiddenStuSex"></view>
  213. <!-- 内容区 -->
  214. <view class="options-wrapper">
  215. <view class="chooseContent-title">
  216. <view bindtap="hiddenStuSex">取消</view>
  217. <view bindtap="confirmChosedStuSex">确定</view>
  218. </view>
  219. <view class="chooseContent" wx:for="{{stuSexList}}" wx:key="key" bindtap="onChosedStuSex" data-index="{{index}}">
  220. <view style="position: absolute;left: 40rpx;">{{item.gender}}</view>
  221. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  222. </view>
  223. </view>
  224. </view>
  225. <!-- 老师身份 -->
  226. <view wx:if="{{chosedTeacherAttr}}">
  227. <!-- 空白区(背景) -->
  228. <view class="mask" bindtap="hiddenTeacherAttr"></view>
  229. <!-- 内容区 -->
  230. <view class="options-wrapper">
  231. <view class="chooseContent-title">
  232. <view bindtap="hiddenTeacherAttr">取消</view>
  233. <view bindtap="confirmTeacherAttr">确定</view>
  234. </view>
  235. <view class="chooseContent" wx:for="{{teacherAttrList}}" wx:key="key" bindtap="onChosedTeacherAttr" data-index="{{index}}">
  236. <view style="position: absolute;left: 40rpx;">{{item.attr}}</view>
  237. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  238. </view>
  239. </view>
  240. </view>
  241. <!-- 老师学历 -->
  242. <view wx:if="{{showTeachEdu && teacherAttr != '不限'}}">
  243. <!-- 空白区(背景) -->
  244. <view class="mask" bindtap="hiddenTeachEdu"></view>
  245. <!-- 内容区 -->
  246. <view class="options-wrapper">
  247. <view class="chooseContent-title">
  248. <view bindtap="hiddenTeachEdu">取消</view>
  249. <view bindtap="confirmTeachEdu">确定</view>
  250. </view>
  251. <view class="chooseContent" wx:for="{{educationList[teacherAttrIndex]}}" wx:key="key" bindtap="onChosedTeacherEdu" data-index="{{index}}">
  252. <view style="position: absolute;left: 40rpx;">{{item.edu}}</view>
  253. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  254. </view>
  255. </view>
  256. </view>
  257. <view wx:if="{{showTeachEdu && teacherAttr == '不限'}}">
  258. <!-- 空白区(背景) -->
  259. <view class="mask" bindtap="hiddenTeachEduT"></view>
  260. <!-- 内容区 -->
  261. <view class="options-wrapper">
  262. <view class="chooseContent-title">
  263. <view bindtap="hiddenTeachEduT">取消</view>
  264. <view bindtap="confirmTeachEduT">确定</view>
  265. </view>
  266. <view class="chooseContent" wx:for="{{educationL}}" wx:key="key" bindtap="onChosedTeacherEduT" data-index="{{index}}">
  267. <view style="position: absolute;left: 40rpx;">{{item.edu}}</view>
  268. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  269. </view>
  270. </view>
  271. </view>
  272. <!-- 老师性别 -->
  273. <view wx:if="{{showTeachSex}}">
  274. <!-- 空白区(背景) -->
  275. <view class="mask" bindtap="hiddenTeachSex"></view>
  276. <!-- 内容区 -->
  277. <view class="options-wrapper">
  278. <view class="chooseContent-title">
  279. <view bindtap="hiddenTeachSex">取消</view>
  280. <view bindtap="confirmTeacherSex">确定</view>
  281. </view>
  282. <view class="chooseContent" wx:for="{{teachSexList}}" wx:key="key" bindtap="onChosedTeachsex" data-index="{{index}}">
  283. <view style="position: absolute;left: 40rpx;">{{item.sex}}</view>
  284. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  285. </view>
  286. </view>
  287. </view>