stuNeed.wxml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  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_1">周日</text>
  69. </view>
  70. <view class="tr_2">
  71. <checkbox-group bindchange="chechboxChangeAM">
  72. <view class="th2_0">上午</view>
  73. <label wx:for="{{timeAM}}" wx:key="index">
  74. <checkbox class="th2_1" value="{{item.value}}"></checkbox>
  75. </label>
  76. </checkbox-group>
  77. </view>
  78. <view class="tr_2">
  79. <checkbox-group bindchange="chechboxChangePM">
  80. <view class="th2_0">下午</view>
  81. <label wx:for="{{timePM}}" wx:key="index">
  82. <checkbox class="th2_1" value="{{item.value}}"></checkbox>
  83. </label>
  84. </checkbox-group>
  85. </view>
  86. <view class="tr_2">
  87. <checkbox-group bindchange="chechboxChangeEvening">
  88. <view class="th2_0">晚上</view>
  89. <label wx:for="{{timeEvening}}" wx:key="index">
  90. <checkbox class="th2_1" value="{{item.value}}"></checkbox>
  91. </label>
  92. </checkbox-group>
  93. </view>
  94. </view>
  95. </view>
  96. <!-- 期望达到的目标或效果 -->
  97. <view class="stuGoal">
  98. <text>期望达到的目标或效果:</text>
  99. <textarea class="goal" name="" id="" cols="30" rows="10" maxlength="140" bindinput="getStuGoal"></textarea>
  100. </view>
  101. <!-- 老师身份 -->
  102. <view class="stuInfo">
  103. <view>老师身份:</view>
  104. <view class="stuNeedOptions" bindtap="chooseTeachAttr">
  105. <view class="stuCourse">{{teacherAttr}}</view>
  106. <view class="iconfont icon-xiangxia"></view>
  107. </view>
  108. </view>
  109. <!-- 老师学历 不等于“不限”-->
  110. <view wx:if="{{teacherAttrIndex != 0}}" class="stuInfo">
  111. <view>老师学历:</view>
  112. <view class="stuNeedOptions" bindtap="chooseTeachEdu">
  113. <view class="stuCourse">{{teacherEdu}}</view>
  114. <view class="iconfont icon-xiangxia"></view>
  115. </view>
  116. </view>
  117. <!-- 老师学历 等于“不限”-->
  118. <view wx:if="{{teacherAttrIndex == 0}}" class="stuInfo">
  119. <view>老师学历:</view>
  120. <view class="stuNeedOptions" bindtap="chooseTeachEduTwo">
  121. <view class="stuCourse">{{teacherEdu}}</view>
  122. <view class="iconfont icon-xiangxia"></view>
  123. </view>
  124. </view>
  125. <!-- 老师性别 -->
  126. <view class="stuInfo">
  127. <view>老师性别:</view>
  128. <view class="stuNeedOptions" bindtap="chooseTeachSex">
  129. <view class="stuCourse">{{teacherSex}}</view>
  130. <view class="iconfont icon-xiangxia"></view>
  131. </view>
  132. </view>
  133. <!-- 是否要求老师上传头像 -->
  134. <view class="stuInfo">
  135. <view>是否要求头像上传:</view>
  136. <view class="stuNeedOptions" bindtap="toTeacherImgUpload">
  137. <view class="stuCourse">{{teacherImg}}</view>
  138. <view class="iconfont icon-xiangxia"></view>
  139. </view>
  140. </view>
  141. <!-- 对老师的其他需求 -->
  142. <view class="stuGoal">
  143. <text>对老师的其他需求:</text>
  144. <textarea bindinput="getOtherNeed" class="goal" name="" id="" cols="30" rows="10" maxlength="140"></textarea>
  145. </view>
  146. </view>
  147. <!-- 提交按钮 -->
  148. <button class="submitBtn" type="primary" bindtap="toSubmit">提交</button>
  149. </view>
  150. <!-- 底部空白区域,为了增加间隔效果,避免提交按钮完全贴着底边 -->
  151. <view class="blank"></view>
  152. <!-- 以下是弹窗选区部分 -->
  153. <!-- 课程类别(大类) -->
  154. <view wx:if="{{showCourseTitle}}">
  155. <!-- 空白区(背景) -->
  156. <view class="mask" bindtap="hiddenCourseTitle"></view>
  157. <!-- 内容区 -->
  158. <view class="courseTitle-wrapper">
  159. <view class="chooseContent-title">
  160. <view bindtap="hiddenCourseTitle">取消</view>
  161. <view bindtap="confirmCourseTitle">确定</view>
  162. </view>
  163. <scroll-view scroll-y="true" class="CourseTitleScroll">
  164. <view class="chooseContent" wx:for="{{courseList}}" wx:key="key" bindtap="onChooseCourseTitle" data-index="{{index}}">
  165. <view style="position: absolute;left: 40rpx;">{{item.name}}</view>
  166. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  167. </view>
  168. </scroll-view>
  169. </view>
  170. </view>
  171. <!-- 课程细分(小类) -->
  172. <view wx:if="{{showCourseDetail}}">
  173. <!-- 空白区(背景) -->
  174. <view class="mask" bindtap="hiddenCourseDetail"></view>
  175. <!-- 内容区 -->
  176. <view class="courseDetail-wrapper">
  177. <view class="chooseContent-title">
  178. <view bindtap="hiddenCourseDetail">取消</view>
  179. <view bindtap="confirmCourseDetail">确定</view>
  180. </view>
  181. <scroll-view scroll-y="true" class="courseDetailScroll">
  182. <view class="chooseContent" wx:for="{{courseDetail[courseChosedIndex]}}" wx:key="key" bindtap="onChooseCourseDetail" data-index="{{index}}">
  183. <view style="position: absolute;left: 40rpx;">{{item.courseName}}</view>
  184. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  185. </view>
  186. </scroll-view>
  187. </view>
  188. </view>
  189. <!-- 辅导方式 -->
  190. <view wx:if="{{chosedTeachPosition}}">
  191. <!-- 空白区(背景) -->
  192. <view class="mask" bindtap="hiddenTeachPosition"></view>
  193. <!-- 内容区 -->
  194. <view class="options-wrapper">
  195. <view class="chooseContent-title">
  196. <view bindtap="hiddenTeachPosition">取消</view>
  197. <view bindtap="confirmTeachPosition">确定</view>
  198. </view>
  199. <view class="chooseContent" wx:for="{{teachPositions}}" wx:key="key" bindtap="onTeachPosition" data-index="{{index}}">
  200. <view style="position: absolute;left: 40rpx;">{{item.opType}}</view>
  201. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  202. </view>
  203. </view>
  204. </view>
  205. <!-- 学生性别 -->
  206. <view wx:if="{{chosedStuSex}}">
  207. <!-- 空白区(背景) -->
  208. <view class="mask" bindtap="hiddenStuSex"></view>
  209. <!-- 内容区 -->
  210. <view class="options-wrapper">
  211. <view class="chooseContent-title">
  212. <view bindtap="hiddenStuSex">取消</view>
  213. <view bindtap="confirmChosedStuSex">确定</view>
  214. </view>
  215. <view class="chooseContent" wx:for="{{stuSexList}}" wx:key="key" bindtap="onChosedStuSex" data-index="{{index}}">
  216. <view style="position: absolute;left: 40rpx;">{{item.gender}}</view>
  217. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  218. </view>
  219. </view>
  220. </view>
  221. <!-- 老师身份 -->
  222. <view wx:if="{{chosedTeacherAttr}}">
  223. <!-- 空白区(背景) -->
  224. <view class="mask" bindtap="hiddenTeacherAttr"></view>
  225. <!-- 内容区 -->
  226. <view class="options-wrapper">
  227. <view class="chooseContent-title">
  228. <view bindtap="hiddenTeacherAttr">取消</view>
  229. <view bindtap="confirmTeacherAttr">确定</view>
  230. </view>
  231. <view class="chooseContent" wx:for="{{teacherAttrList}}" wx:key="key" bindtap="onChosedTeacherAttr" data-index="{{index}}">
  232. <view style="position: absolute;left: 40rpx;">{{item.attr}}</view>
  233. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  234. </view>
  235. </view>
  236. </view>
  237. <!-- 老师学历 -->
  238. <!-- 老师身份不等于“不限” 时-->
  239. <view wx:if="{{showTeachEdu && teacherAttr != '不限'}}">
  240. <!-- 空白区(背景) -->
  241. <view class="mask" bindtap="hiddenTeachEdu"></view>
  242. <!-- 内容区 -->
  243. <view class="options-wrapper">
  244. <view class="chooseContent-title">
  245. <view bindtap="hiddenTeachEdu">取消</view>
  246. <view bindtap="confirmTeachEdu">确定</view>
  247. </view>
  248. <view class="chooseContent" wx:for="{{educationList[teacherAttrIndex]}}" wx:key="key" bindtap="onChosedTeacherEdu" data-index="{{index}}">
  249. <view style="position: absolute;left: 40rpx;">{{item.edu}}</view>
  250. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  251. </view>
  252. </view>
  253. </view>
  254. <!-- 老师身份等于“不限”时 -->
  255. <view wx:if="{{showTeachEdu && teacherAttr == '不限'}}">
  256. <!-- 空白区(背景) -->
  257. <view class="mask" bindtap="hiddenTeachEduT"></view>
  258. <!-- 内容区 -->
  259. <view class="options-wrapper">
  260. <view class="chooseContent-title">
  261. <view bindtap="hiddenTeachEduT">取消</view>
  262. <view bindtap="confirmTeachEduT">确定</view>
  263. </view>
  264. <view class="chooseContent" wx:for="{{educationL}}" wx:key="key" bindtap="onChosedTeacherEduT" data-index="{{index}}">
  265. <view style="position: absolute;left: 40rpx;">{{item.edu}}</view>
  266. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  267. </view>
  268. </view>
  269. </view>
  270. <!-- 老师性别 -->
  271. <view wx:if="{{showTeachSex}}">
  272. <!-- 空白区(背景) -->
  273. <view class="mask" bindtap="hiddenTeachSex"></view>
  274. <!-- 内容区 -->
  275. <view class="options-wrapper">
  276. <view class="chooseContent-title">
  277. <view bindtap="hiddenTeachSex">取消</view>
  278. <view bindtap="confirmTeacherSex">确定</view>
  279. </view>
  280. <view class="chooseContent" wx:for="{{teachSexList}}" wx:key="key" bindtap="onChosedTeachsex" data-index="{{index}}">
  281. <view style="position: absolute;left: 40rpx;">{{item.sex}}</view>
  282. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  283. </view>
  284. </view>
  285. </view>
  286. <!-- 老师头像是否上传 -->
  287. <view wx:if="{{showTeachImg}}">
  288. <!-- 空白区(背景) -->
  289. <view class="mask" bindtap="hiddenTeacherImgUpload"></view>
  290. <!-- 内容区 -->
  291. <view class="options-wrapper">
  292. <view class="chooseContent-title">
  293. <view bindtap="hiddenTeacherImgUpload">取消</view>
  294. <view bindtap="confirmTeacherImgUpload">确定</view>
  295. </view>
  296. <view class="chooseContent" wx:for="{{teacherImgList}}" wx:key="key" bindtap="onChosedImgUpload" data-index="{{index}}">
  297. <view style="position: absolute;left: 40rpx;">{{item.imgUpload}}</view>
  298. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  299. </view>
  300. </view>
  301. </view>