stuNeed.wxml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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 wx:if="{{teacherAttrIndex != 0}}" 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 wx:if="{{teacherAttrIndex == 0}}" class="stuInfo">
  131. <view>老师学历:</view>
  132. <view class="stuNeedOptions" bindtap="chooseTeachEduTwo">
  133. <view class="stuCourse">{{teacherEdu}}</view>
  134. <view class="iconfont icon-xiangxia"></view>
  135. </view>
  136. </view>
  137. <!-- 老师性别 -->
  138. <view class="stuInfo">
  139. <view>老师性别:</view>
  140. <view class="stuNeedOptions" bindtap="chooseTeachSex">
  141. <view class="stuCourse">{{teacherSex}}</view>
  142. <view class="iconfont icon-xiangxia"></view>
  143. </view>
  144. </view>
  145. <!-- 是否要求老师上传头像 -->
  146. <view class="stuInfo">
  147. <view>是否要求头像上传:</view>
  148. <view class="stuNeedOptions" bindtap="toTeacherImgUpload">
  149. <view class="stuCourse">{{teacherImg}}</view>
  150. <view class="iconfont icon-xiangxia"></view>
  151. </view>
  152. </view>
  153. <!-- 对老师的其他需求 -->
  154. <view class="stuGoal">
  155. <text>对老师的其他需求:</text>
  156. <textarea bindinput="getOtherNeed" class="goal" name="" id="" cols="30" rows="10" maxlength="140"></textarea>
  157. </view>
  158. </view>
  159. <!-- 提交按钮 -->
  160. <button class="submitBtn" type="primary" bindtap="toSubmit">提交</button>
  161. </view>
  162. <!-- 底部空白区域,为了增加间隔效果,避免提交按钮完全贴着底边 -->
  163. <view class="blank"></view>
  164. <!-- 以下是弹窗选区部分 -->
  165. <!-- 课程类别(大类) -->
  166. <view wx:if="{{showCourseTitle}}">
  167. <!-- 空白区(背景) -->
  168. <view class="mask" bindtap="hiddenCourseTitle"></view>
  169. <!-- 内容区 -->
  170. <view class="courseTitle-wrapper">
  171. <view class="chooseContent-title">
  172. <view bindtap="hiddenCourseTitle">取消</view>
  173. <view bindtap="confirmCourseTitle">确定</view>
  174. </view>
  175. <scroll-view scroll-y="true" class="CourseTitleScroll">
  176. <view class="chooseContent" wx:for="{{courseList}}" wx:key="key" bindtap="onChooseCourseTitle" data-index="{{index}}">
  177. <view style="position: absolute;left: 40rpx;">{{item.name}}</view>
  178. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  179. </view>
  180. </scroll-view>
  181. </view>
  182. </view>
  183. <!-- 课程细分(小类) -->
  184. <view wx:if="{{showCourseDetail}}">
  185. <!-- 空白区(背景) -->
  186. <view class="mask" bindtap="hiddenCourseDetail"></view>
  187. <!-- 内容区 -->
  188. <view class="courseDetail-wrapper">
  189. <view class="chooseContent-title">
  190. <view bindtap="hiddenCourseDetail">取消</view>
  191. <view bindtap="confirmCourseDetail">确定</view>
  192. </view>
  193. <scroll-view scroll-y="true" class="courseDetailScroll">
  194. <view class="chooseContent" wx:for="{{courseDetail[courseChosedIndex]}}" wx:key="key" bindtap="onChooseCourseDetail" data-index="{{index}}">
  195. <view style="position: absolute;left: 40rpx;">{{item.courseName}}</view>
  196. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  197. </view>
  198. </scroll-view>
  199. </view>
  200. </view>
  201. <!-- 辅导方式 -->
  202. <view wx:if="{{chosedTeachPosition}}">
  203. <!-- 空白区(背景) -->
  204. <view class="mask" bindtap="hiddenTeachPosition"></view>
  205. <!-- 内容区 -->
  206. <view class="options-wrapper">
  207. <view class="chooseContent-title">
  208. <view bindtap="hiddenTeachPosition">取消</view>
  209. <view bindtap="confirmTeachPosition">确定</view>
  210. </view>
  211. <view class="chooseContent" wx:for="{{teachPositions}}" wx:key="key" bindtap="onTeachPosition" data-index="{{index}}">
  212. <view style="position: absolute;left: 40rpx;">{{item.opType}}</view>
  213. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  214. </view>
  215. </view>
  216. </view>
  217. <!-- 学生性别 -->
  218. <view wx:if="{{chosedStuSex}}">
  219. <!-- 空白区(背景) -->
  220. <view class="mask" bindtap="hiddenStuSex"></view>
  221. <!-- 内容区 -->
  222. <view class="options-wrapper">
  223. <view class="chooseContent-title">
  224. <view bindtap="hiddenStuSex">取消</view>
  225. <view bindtap="confirmChosedStuSex">确定</view>
  226. </view>
  227. <view class="chooseContent" wx:for="{{stuSexList}}" wx:key="key" bindtap="onChosedStuSex" data-index="{{index}}">
  228. <view style="position: absolute;left: 40rpx;">{{item.gender}}</view>
  229. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  230. </view>
  231. </view>
  232. </view>
  233. <!-- 老师身份 -->
  234. <view wx:if="{{chosedTeacherAttr}}">
  235. <!-- 空白区(背景) -->
  236. <view class="mask" bindtap="hiddenTeacherAttr"></view>
  237. <!-- 内容区 -->
  238. <view class="options-wrapper">
  239. <view class="chooseContent-title">
  240. <view bindtap="hiddenTeacherAttr">取消</view>
  241. <view bindtap="confirmTeacherAttr">确定</view>
  242. </view>
  243. <view class="chooseContent" wx:for="{{teacherAttrList}}" wx:key="key" bindtap="onChosedTeacherAttr" data-index="{{index}}">
  244. <view style="position: absolute;left: 40rpx;">{{item.attr}}</view>
  245. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  246. </view>
  247. </view>
  248. </view>
  249. <!-- 老师学历 -->
  250. <!-- 老师身份不等于“不限” 时-->
  251. <view wx:if="{{showTeachEdu && teacherAttr != '不限'}}">
  252. <!-- 空白区(背景) -->
  253. <view class="mask" bindtap="hiddenTeachEdu"></view>
  254. <!-- 内容区 -->
  255. <view class="options-wrapper">
  256. <view class="chooseContent-title">
  257. <view bindtap="hiddenTeachEdu">取消</view>
  258. <view bindtap="confirmTeachEdu">确定</view>
  259. </view>
  260. <view class="chooseContent" wx:for="{{educationList[teacherAttrIndex]}}" wx:key="key" bindtap="onChosedTeacherEdu" data-index="{{index}}">
  261. <view style="position: absolute;left: 40rpx;">{{item.edu}}</view>
  262. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  263. </view>
  264. </view>
  265. </view>
  266. <!-- 老师身份等于“不限”时 -->
  267. <view wx:if="{{showTeachEdu && teacherAttr == '不限'}}">
  268. <!-- 空白区(背景) -->
  269. <view class="mask" bindtap="hiddenTeachEduT"></view>
  270. <!-- 内容区 -->
  271. <view class="options-wrapper">
  272. <view class="chooseContent-title">
  273. <view bindtap="hiddenTeachEduT">取消</view>
  274. <view bindtap="confirmTeachEduT">确定</view>
  275. </view>
  276. <view class="chooseContent" wx:for="{{educationL}}" wx:key="key" bindtap="onChosedTeacherEduT" data-index="{{index}}">
  277. <view style="position: absolute;left: 40rpx;">{{item.edu}}</view>
  278. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  279. </view>
  280. </view>
  281. </view>
  282. <!-- 老师性别 -->
  283. <view wx:if="{{showTeachSex}}">
  284. <!-- 空白区(背景) -->
  285. <view class="mask" bindtap="hiddenTeachSex"></view>
  286. <!-- 内容区 -->
  287. <view class="options-wrapper">
  288. <view class="chooseContent-title">
  289. <view bindtap="hiddenTeachSex">取消</view>
  290. <view bindtap="confirmTeacherSex">确定</view>
  291. </view>
  292. <view class="chooseContent" wx:for="{{teachSexList}}" wx:key="key" bindtap="onChosedTeachsex" data-index="{{index}}">
  293. <view style="position: absolute;left: 40rpx;">{{item.sex}}</view>
  294. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  295. </view>
  296. </view>
  297. </view>
  298. <!-- 老师头像是否上传 -->
  299. <view wx:if="{{showTeachImg}}">
  300. <!-- 空白区(背景) -->
  301. <view class="mask" bindtap="hiddenTeacherImgUpload"></view>
  302. <!-- 内容区 -->
  303. <view class="options-wrapper">
  304. <view class="chooseContent-title">
  305. <view bindtap="hiddenTeacherImgUpload">取消</view>
  306. <view bindtap="confirmTeacherImgUpload">确定</view>
  307. </view>
  308. <view class="chooseContent" wx:for="{{teacherImgList}}" wx:key="key" bindtap="onChosedImgUpload" data-index="{{index}}">
  309. <view style="position: absolute;left: 40rpx;">{{item.imgUpload}}</view>
  310. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  311. </view>
  312. </view>
  313. </view>