stuNeed.js 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721
  1. // pages/stuNeed/stuNeed.js
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. stuName: '', //学生姓名
  8. stuPhoneNum: '', //学生电话号码
  9. stuWeChatNum: '', //学生微信号码
  10. chosedCourse: '', //课程类别(大类)选项
  11. showCourseTitle: false, //课程类别(大类)选项是否展示
  12. courseChosedIndex: '', //选中课程大类的索引
  13. chosedCourseDetail: '', //课程细分选项
  14. showCourseDetail: false, //课程细分选项是否展示
  15. teachPosition: '', //辅导方式
  16. chosedTeachPosition: false, //辅导方式选项是否展示
  17. stuSex: '', //学生性别
  18. salary: '', //学生输入的酬金
  19. schoolTimeAM: [], //上午上课时间
  20. schoolTimePM: [], //下午上课时间
  21. schoolTimeEvening: [], //晚上上课时间
  22. schoolTime: [], //合并后的上课时间
  23. stuGoal: '', //学生输入的期望目标或效果
  24. chosedStuSex: false, //学生性别选项是否展示
  25. teacherAttr: '不限', //老师身份默认选项
  26. chosedTeacherAttr: false, //老师身份选项区是否展示
  27. teacherAttrIndex: '', //选中老师身份的索引
  28. teacherEdu: '不限', //老师学历默认选项
  29. showTeachEdu: false, //老师学历选项区是否展示
  30. teacherSex: '不限', //老师性别默认选项
  31. showTeachSex: false, //老师性别选项是否展示
  32. teacherImg: '不限', //老师头像是否上传默认选项
  33. showTeachImg: false, //老师头像是否上传的选项是否展示
  34. toTeacherOtherNeed: '', //对老师的其他需求
  35. // 课程类别
  36. courseList: [{
  37. name: "小学",
  38. choesd: false
  39. },
  40. {
  41. name: "初中",
  42. choesd: false
  43. },
  44. {
  45. name: "高中",
  46. choesd: false
  47. },
  48. {
  49. name: "大学",
  50. choesd: false
  51. },
  52. {
  53. name: "音乐",
  54. choesd: false
  55. },
  56. {
  57. name: "舞蹈",
  58. choesd: false
  59. },
  60. {
  61. name: "语言",
  62. choesd: false
  63. },
  64. {
  65. name: "体育",
  66. choesd: false
  67. },
  68. {
  69. name: "美术",
  70. choesd: false
  71. },
  72. {
  73. name: "书法",
  74. choesd: false
  75. },
  76. {
  77. name: "少儿编程",
  78. choesd: false
  79. },
  80. {
  81. name: "计算机",
  82. choesd: false
  83. },
  84. {
  85. name: "其他",
  86. choesd: false
  87. }
  88. ],
  89. // 课程细分
  90. courseDetail: [
  91. [{
  92. courseName: '小学1-5数学',
  93. choesd: false
  94. },
  95. {
  96. courseName: '小学1-5英语',
  97. choesd: false
  98. },
  99. {
  100. courseName: '小学1-5语文',
  101. choesd: false
  102. },
  103. {
  104. courseName: '小学6数学',
  105. choesd: false
  106. },
  107. {
  108. courseName: '小学6英语',
  109. choesd: false
  110. },
  111. {
  112. courseName: '小学6语文',
  113. choesd: false
  114. },
  115. {
  116. courseName: '小学奥数',
  117. choesd: false
  118. }
  119. ],
  120. [{
  121. courseName: '初一初二语文',
  122. choesd: false
  123. },
  124. {
  125. courseName: '初一初二数学',
  126. choesd: false
  127. },
  128. {
  129. courseName: '初一初二英语',
  130. choesd: false
  131. },
  132. {
  133. courseName: '初一初二物理',
  134. choesd: false
  135. },
  136. {
  137. courseName: '初一初二化学',
  138. choesd: false
  139. },
  140. {
  141. courseName: '初三语文',
  142. choesd: false
  143. },
  144. {
  145. courseName: '初三数学',
  146. choesd: false
  147. },
  148. {
  149. courseName: '初三英语',
  150. choesd: false
  151. },
  152. {
  153. courseName: '初三物理',
  154. choesd: false
  155. },
  156. {
  157. courseName: '初三化学',
  158. choesd: false
  159. },
  160. {
  161. courseName: '初中历史',
  162. choesd: false
  163. },
  164. {
  165. courseName: '初中地理',
  166. choesd: false
  167. },
  168. {
  169. courseName: '初中奥数',
  170. choesd: false
  171. },
  172. {
  173. courseName: '初中生物',
  174. choesd: false
  175. },
  176. {
  177. courseName: '初中预备班',
  178. choesd: false
  179. },
  180. {
  181. courseName: '初中科学',
  182. choesd: false
  183. },
  184. {
  185. courseName: '初中政治',
  186. choesd: false
  187. }
  188. ],
  189. [{
  190. courseName: '高一高二语文',
  191. choesd: false
  192. },
  193. {
  194. courseName: '高一高二数学',
  195. choesd: false
  196. },
  197. {
  198. courseName: '高一高二英语',
  199. choesd: false
  200. },
  201. {
  202. courseName: '高一高二物理',
  203. choesd: false
  204. },
  205. {
  206. courseName: '高一高二化学',
  207. choesd: false
  208. },
  209. {
  210. courseName: '高三语文',
  211. choesd: false
  212. },
  213. {
  214. courseName: '高三数学',
  215. choesd: false
  216. },
  217. {
  218. courseName: '高三英语',
  219. choesd: false
  220. },
  221. {
  222. courseName: '高三物理',
  223. choesd: false
  224. },
  225. {
  226. courseName: '高三化学',
  227. choesd: false
  228. },
  229. {
  230. courseName: '高中历史',
  231. choesd: false
  232. },
  233. {
  234. courseName: '高中地理',
  235. choesd: false
  236. },
  237. {
  238. courseName: '高中政治',
  239. choesd: false
  240. },
  241. {
  242. courseName: '高中生物',
  243. choesd: false
  244. },
  245. {
  246. courseName: '信息科技',
  247. choesd: false
  248. },
  249. {
  250. courseName: 'SAT',
  251. choesd: false
  252. }
  253. ],
  254. [{
  255. courseName: '托福',
  256. choesd: false
  257. },
  258. {
  259. courseName: '雅思',
  260. choesd: false
  261. },
  262. {
  263. courseName: '高等数学',
  264. choesd: false
  265. },
  266. {
  267. courseName: '微观经济学',
  268. choesd: false
  269. },
  270. {
  271. courseName: 'MBA',
  272. choesd: false
  273. },
  274. {
  275. courseName: '成人高考',
  276. choesd: false
  277. },
  278. {
  279. courseName: '国学',
  280. choesd: false
  281. },
  282. {
  283. courseName: '自学考试',
  284. choesd: false
  285. },
  286. {
  287. courseName: '专升本',
  288. choesd: false
  289. },
  290. {
  291. courseName: '考博面试辅导',
  292. choesd: false
  293. },
  294. {
  295. courseName: '考博专业课',
  296. choesd: false
  297. },
  298. {
  299. courseName: '考博英语',
  300. choesd: false
  301. },
  302. {
  303. courseName: '英语四级',
  304. choesd: false
  305. },
  306. {
  307. courseName: '英语六级',
  308. choesd: false
  309. },
  310. {
  311. courseName: '论文指导',
  312. choesd: false
  313. },
  314. {
  315. courseName: '考研专业课',
  316. choesd: false
  317. },
  318. {
  319. courseName: '考研政治',
  320. choesd: false
  321. },
  322. {
  323. courseName: '考研数学',
  324. choesd: false
  325. },
  326. {
  327. courseName: '考研英语',
  328. choesd: false
  329. },
  330. {
  331. courseName: '英语专业四级',
  332. choesd: false
  333. },
  334. {
  335. courseName: '英语专业八级',
  336. choesd: false
  337. },
  338. {
  339. courseName: '课程辅导',
  340. choesd: false
  341. }
  342. ],
  343. [{
  344. courseName: '小提琴',
  345. choesd: false
  346. },
  347. {
  348. courseName: '钢琴',
  349. choesd: false
  350. },
  351. {
  352. courseName: '电子琴',
  353. choesd: false
  354. },
  355. {
  356. courseName: '长笛',
  357. choesd: false
  358. },
  359. {
  360. courseName: '琵琶',
  361. choesd: false
  362. },
  363. {
  364. courseName: '手风琴',
  365. choesd: false
  366. },
  367. {
  368. courseName: '古筝',
  369. choesd: false
  370. },
  371. {
  372. courseName: '练耳歌唱',
  373. choesd: false
  374. },
  375. {
  376. courseName: '大号',
  377. choesd: false
  378. },
  379. {
  380. courseName: '声乐',
  381. choesd: false
  382. },
  383. {
  384. courseName: '萨克斯',
  385. choesd: false
  386. },
  387. {
  388. courseName: '单簧管',
  389. choesd: false
  390. },
  391. {
  392. courseName: '吉他',
  393. choesd: false
  394. },
  395. {
  396. courseName: '小号',
  397. choesd: false
  398. },
  399. {
  400. courseName: '古琴',
  401. choesd: false
  402. },
  403. {
  404. courseName: '二胡',
  405. choesd: false
  406. },
  407. {
  408. courseName: '大提琴',
  409. choesd: false
  410. },
  411. {
  412. courseName: '打击乐',
  413. choesd: false
  414. },
  415. {
  416. courseName: '圆号',
  417. choesd: false
  418. },
  419. {
  420. courseName: '中提琴',
  421. choesd: false
  422. },
  423. {
  424. courseName: '竹笛',
  425. choesd: false
  426. },
  427. {
  428. courseName: '架子鼓',
  429. choesd: false
  430. },
  431. {
  432. courseName: '扬琴',
  433. choesd: false
  434. },
  435. {
  436. courseName: '巴松',
  437. choesd: false
  438. }
  439. ],
  440. [{
  441. courseName: '民族舞',
  442. choesd: false
  443. },
  444. {
  445. courseName: '爵士舞',
  446. choesd: false
  447. },
  448. {
  449. courseName: '拉丁舞',
  450. choesd: false
  451. },
  452. {
  453. courseName: '芭蕾舞',
  454. choesd: false
  455. },
  456. {
  457. courseName: '街舞',
  458. choesd: false
  459. },
  460. {
  461. courseName: '现代舞',
  462. choesd: false
  463. },
  464. {
  465. courseName: '踢踏舞',
  466. choesd: false
  467. }
  468. ],
  469. [{
  470. courseName: '本地方言',
  471. choesd: false
  472. },
  473. {
  474. courseName: '日语',
  475. choesd: false
  476. },
  477. {
  478. courseName: '英语口语',
  479. choesd: false
  480. },
  481. {
  482. courseName: '新概念英语',
  483. choesd: false
  484. },
  485. {
  486. courseName: '牛津英语',
  487. choesd: false
  488. },
  489. {
  490. courseName: '西班牙语',
  491. choesd: false
  492. },
  493. {
  494. courseName: '德语',
  495. choesd: false
  496. },
  497. {
  498. courseName: '商务英语',
  499. choesd: false
  500. },
  501. {
  502. courseName: '法语',
  503. choesd: false
  504. },
  505. {
  506. courseName: '韩语',
  507. choesd: false
  508. },
  509. {
  510. courseName: '意大利语',
  511. choesd: false
  512. },
  513. {
  514. courseName: '汉语',
  515. choesd: false
  516. },
  517. {
  518. courseName: '阿拉伯语',
  519. choesd: false
  520. },
  521. {
  522. courseName: 'SBS英语',
  523. choesd: false
  524. },
  525. {
  526. courseName: '俄语',
  527. choesd: false
  528. },
  529. {
  530. courseName: '葡萄牙语',
  531. choesd: false
  532. },
  533. {
  534. courseName: '初中政治',
  535. choesd: false
  536. }
  537. ],
  538. [{
  539. courseName: '羽毛球',
  540. choesd: false
  541. },
  542. {
  543. courseName: '跆拳道',
  544. choesd: false
  545. },
  546. {
  547. courseName: '游泳',
  548. choesd: false
  549. },
  550. {
  551. courseName: '乒乓球',
  552. choesd: false
  553. },
  554. {
  555. courseName: '网球',
  556. choesd: false
  557. },
  558. {
  559. courseName: '中国象棋',
  560. choesd: false
  561. },
  562. {
  563. courseName: '国际象棋',
  564. choesd: false
  565. },
  566. {
  567. courseName: '围棋',
  568. choesd: false
  569. },
  570. {
  571. courseName: '篮球',
  572. choesd: false
  573. },
  574. {
  575. courseName: '空手道',
  576. choesd: false
  577. }
  578. ],
  579. [{
  580. courseName: '卡通画',
  581. choesd: false
  582. },
  583. {
  584. courseName: '中国画',
  585. choesd: false
  586. },
  587. {
  588. courseName: '素描',
  589. choesd: false
  590. },
  591. {
  592. courseName: '油画',
  593. choesd: false
  594. },
  595. {
  596. courseName: '水彩',
  597. choesd: false
  598. },
  599. {
  600. courseName: '漫画',
  601. choesd: false
  602. }
  603. ],
  604. [{
  605. courseName: '硬笔',
  606. choesd: false
  607. },
  608. {
  609. courseName: '毛笔',
  610. choesd: false
  611. },
  612. {
  613. courseName: '篆刻',
  614. choesd: false
  615. }
  616. ],
  617. [{
  618. courseName: 'Scratch',
  619. choesd: false
  620. },
  621. {
  622. courseName: 'Python',
  623. choesd: false
  624. },
  625. {
  626. courseName: 'C++',
  627. choesd: false
  628. },
  629. {
  630. courseName: 'microbit',
  631. choesd: false
  632. }
  633. ],
  634. [{
  635. courseName: '应用能力初级',
  636. choesd: false
  637. },
  638. {
  639. courseName: '应用能力中级',
  640. choesd: false
  641. },
  642. {
  643. courseName: '基本操作',
  644. choesd: false
  645. }
  646. ],
  647. [{
  648. courseName: '学习习惯',
  649. choesd: false
  650. },
  651. {
  652. courseName: '口才',
  653. choesd: false
  654. },
  655. {
  656. courseName: '心理辅导',
  657. choesd: false
  658. },
  659. {
  660. courseName: '记忆力',
  661. choesd: false
  662. },
  663. {
  664. courseName: '注意力',
  665. choesd: false
  666. }
  667. ]
  668. ],
  669. // 辅导方式
  670. teachPositions: [{
  671. opType: '老师上门',
  672. choesd: false
  673. },
  674. {
  675. opType: '学员上门',
  676. choesd: false
  677. }, {
  678. opType: '线上辅导',
  679. choesd: false
  680. }, {
  681. opType: '老师住家',
  682. choesd: false
  683. },
  684. {
  685. opType: '学员住家',
  686. choesd: false
  687. }
  688. ],
  689. // 学生性别
  690. stuSexList: [{
  691. gender: '男',
  692. choesd: false
  693. },
  694. {
  695. gender: '女',
  696. choesd: false
  697. }
  698. ],
  699. // 老师身份列表
  700. teacherAttrList: [{
  701. 'attr': '不限',
  702. chosed: true
  703. },
  704. {
  705. 'attr': '专职老师',
  706. chosed: false
  707. },
  708. {
  709. 'attr': '在校大学生',
  710. chosed: false
  711. }
  712. ],
  713. // 老师学历列表1
  714. educationList: [
  715. [{
  716. 'edu': '不限',
  717. chosed: true
  718. }],
  719. [{
  720. 'edu': '不限',
  721. chosed: true
  722. },
  723. {
  724. 'edu': '博士毕业',
  725. chosed: false
  726. },
  727. {
  728. 'edu': '硕士毕业',
  729. chosed: false
  730. },
  731. {
  732. 'edu': '本科毕业',
  733. chosed: false
  734. },
  735. {
  736. 'edu': '专科毕业',
  737. chosed: false
  738. }
  739. ],
  740. [{
  741. 'edu': '不限',
  742. chosed: true
  743. },
  744. {
  745. 'edu': '博士在读',
  746. chosed: false
  747. },
  748. {
  749. 'edu': '硕士在读',
  750. chosed: false
  751. },
  752. {
  753. 'edu': '本科在读',
  754. chosed: false
  755. },
  756. {
  757. 'edu': '专科在读',
  758. chosed: false
  759. }
  760. ]
  761. ],
  762. // 老师学历列表2
  763. educationL: [{
  764. 'edu': '不限',
  765. chosed: true
  766. },
  767. {
  768. 'edu': '博士毕业',
  769. chosed: false
  770. },
  771. {
  772. 'edu': '硕士毕业',
  773. chosed: false
  774. },
  775. {
  776. 'edu': '本科毕业',
  777. chosed: false
  778. },
  779. {
  780. 'edu': '专科毕业',
  781. chosed: false
  782. },
  783. {
  784. 'edu': '博士在读',
  785. chosed: false
  786. },
  787. {
  788. 'edu': '硕士在读',
  789. chosed: false
  790. },
  791. {
  792. 'edu': '本科在读',
  793. chosed: false
  794. },
  795. {
  796. 'edu': '专科在读',
  797. chosed: false
  798. }
  799. ],
  800. // 老师性别列表
  801. teachSexList: [{
  802. sex: '不限',
  803. chosed: true
  804. },
  805. {
  806. sex: '男',
  807. chosed: false
  808. },
  809. {
  810. sex: '女',
  811. chosed: false
  812. }
  813. ],
  814. // 是否要求头像上传
  815. teacherImgList: [{
  816. imgUpload: '不限',
  817. choesd: true
  818. },
  819. {
  820. imgUpload: '是',
  821. choesd: false
  822. },
  823. {
  824. imgUpload: '否',
  825. choesd: false
  826. }
  827. ],
  828. // 上课时间
  829. // 上午
  830. timeAM: [{
  831. name: '1',
  832. value: 'A1'
  833. },
  834. {
  835. name: '2',
  836. value: 'A2'
  837. },
  838. {
  839. name: '3',
  840. value: 'A3'
  841. },
  842. {
  843. name: '4',
  844. value: 'A4'
  845. },
  846. {
  847. name: '5',
  848. value: 'A5'
  849. },
  850. {
  851. name: '6',
  852. value: 'A6'
  853. },
  854. {
  855. name: '7',
  856. value: 'A7'
  857. }
  858. ],
  859. // 下午
  860. timePM: [{
  861. name: '1',
  862. value: 'P1'
  863. },
  864. {
  865. name: '2',
  866. value: 'P2'
  867. },
  868. {
  869. name: '3',
  870. value: 'P3'
  871. },
  872. {
  873. name: '4',
  874. value: 'P4'
  875. },
  876. {
  877. name: '5',
  878. value: 'P5'
  879. },
  880. {
  881. name: '6',
  882. value: 'P6'
  883. },
  884. {
  885. name: '7',
  886. value: 'P7'
  887. }
  888. ],
  889. // 晚上
  890. timeEvening: [{
  891. name: '1',
  892. value: 'E1'
  893. },
  894. {
  895. name: '2',
  896. value: 'E2'
  897. },
  898. {
  899. name: '3',
  900. value: 'E3'
  901. },
  902. {
  903. name: '4',
  904. value: 'E4'
  905. },
  906. {
  907. name: '5',
  908. value: 'E5'
  909. },
  910. {
  911. name: '6',
  912. value: 'E6'
  913. },
  914. {
  915. name: '7',
  916. value: 'E7'
  917. }
  918. ]
  919. },
  920. /**
  921. * 生命周期函数--监听页面加载
  922. */
  923. onLoad(options) {
  924. },
  925. // 获取学生姓名
  926. getStuName(e) {
  927. // console.log(e.detail.value)
  928. this.setData({
  929. stuName: e.detail.value
  930. })
  931. // console.log(this.data.stuName)
  932. },
  933. // 获取学生手机号码
  934. getStuPhone(e) {
  935. this.setData({
  936. stuPhoneNum: e.detail.value
  937. })
  938. },
  939. //获取学生微信号码
  940. getStuWeChat(e) {
  941. this.setData({
  942. stuWeChatNum: e.detail.value
  943. })
  944. },
  945. // 课程类别
  946. // 打开课程类别(大类)选项区
  947. chooseCourseTitle() {
  948. this.setData({
  949. showCourseTitle: true,
  950. chosedCourseDetail: ''
  951. })
  952. },
  953. // 定义退出下拉选区的方法
  954. hiddenCourseTitle() {
  955. this.setData({
  956. showCourseTitle: false
  957. })
  958. },
  959. // 从下拉区选择课程类别内容
  960. onChooseCourseTitle(e) {
  961. let index = e.currentTarget.dataset.index
  962. let courseList = this.data.courseList
  963. for (let i = 0; i < courseList.length; i++) {
  964. if (i == index) {
  965. courseList[i].chosed = !courseList[i].chosed
  966. } else {
  967. courseList[i].chosed = false
  968. }
  969. }
  970. this.setData({
  971. courseList
  972. })
  973. },
  974. // 课程类别(大类)确定按钮的点击事件
  975. confirmCourseTitle() {
  976. let courseList = this.data.courseList
  977. let index
  978. for (let i = 0; i < courseList.length; i++) {
  979. if (courseList[i].chosed) {
  980. index = i
  981. }
  982. }
  983. let chosedCourse = courseList[index]?.name || ''
  984. let courseChosedIndex = index
  985. this.setData({
  986. chosedCourse,
  987. courseChosedIndex
  988. })
  989. // console.log('courseChosedIndex:' + courseChosedIndex)
  990. // let courseDetail = this.data.courseDetail
  991. // console.log('courseDetail:'+courseDetail[courseChosedIndex])
  992. this.hiddenCourseTitle()
  993. },
  994. // 课程细分(小类)选择
  995. // 打开课程细分选项区
  996. toCourseDetail() {
  997. if (!this.data.chosedCourse) {
  998. wx.showToast({
  999. title: '请先选择课程类别',
  1000. icon: 'none'
  1001. })
  1002. return
  1003. }
  1004. this.setData({
  1005. showCourseDetail: true
  1006. })
  1007. },
  1008. // 定义退出课程细分选区的方法
  1009. hiddenCourseDetail() {
  1010. this.setData({
  1011. showCourseDetail: false
  1012. })
  1013. },
  1014. // 从下拉区选择课程细分内容
  1015. onChooseCourseDetail(e) {
  1016. let index = e.currentTarget.dataset.index
  1017. let courseDetail = this.data.courseDetail
  1018. let courseChosedIndex = this.data.courseChosedIndex
  1019. for (let i = 0; i < courseDetail[courseChosedIndex].length; i++) {
  1020. if (i == index) {
  1021. courseDetail[courseChosedIndex][i].chosed = !courseDetail[courseChosedIndex][i].chosed
  1022. } else {
  1023. courseDetail[courseChosedIndex][i].chosed = false
  1024. }
  1025. }
  1026. this.setData({
  1027. courseDetail
  1028. })
  1029. },
  1030. // 课程细分(小类)确定按钮的点击事件
  1031. confirmCourseDetail() {
  1032. let courseDetail = this.data.courseDetail
  1033. let courseChosedIndex = this.data.courseChosedIndex
  1034. let index
  1035. for (let i = 0; i < courseDetail[courseChosedIndex].length; i++) {
  1036. if (courseDetail[courseChosedIndex][i].chosed) {
  1037. index = i
  1038. }
  1039. }
  1040. let chosedCourseDetail = courseDetail[courseChosedIndex][index]?.courseName || ''
  1041. this.setData({
  1042. chosedCourseDetail
  1043. })
  1044. this.hiddenCourseDetail()
  1045. },
  1046. // 辅导方式
  1047. // 打开辅导方式选项区
  1048. toTeachPosition() {
  1049. this.setData({
  1050. chosedTeachPosition: true
  1051. })
  1052. },
  1053. // 关闭辅导方式选项区的方法
  1054. hiddenTeachPosition() {
  1055. this.setData({
  1056. chosedTeachPosition: false
  1057. })
  1058. },
  1059. // 从下拉选区选择辅导方式内容
  1060. onTeachPosition(e) {
  1061. let index = e.currentTarget.dataset.index
  1062. let teachPositions = this.data.teachPositions
  1063. for (let i = 0; i < teachPositions.length; i++) {
  1064. if (i == index) {
  1065. teachPositions[i].chosed = !teachPositions[i].chosed
  1066. } else {
  1067. teachPositions[i].chosed = false
  1068. }
  1069. }
  1070. this.setData({
  1071. teachPositions
  1072. })
  1073. },
  1074. // 辅导方式确定按钮点击事件
  1075. confirmTeachPosition() {
  1076. let teachPositions = this.data.teachPositions
  1077. let index
  1078. for (let i = 0; i < teachPositions.length; i++) {
  1079. if (teachPositions[i].chosed) {
  1080. index = i
  1081. }
  1082. }
  1083. let teachPosition = teachPositions[index]?.opType || ''
  1084. this.setData({
  1085. teachPosition
  1086. })
  1087. this.hiddenTeachPosition()
  1088. },
  1089. // 选择学生性别
  1090. // 打开学生性别选项区
  1091. chooseStuSex() {
  1092. this.setData({
  1093. chosedStuSex: true,
  1094. stuSex: ''
  1095. })
  1096. // 点击学生性别的选项后,将原来的选项取消,恢复到默认选项
  1097. let stuSexList = this.data.stuSexList
  1098. for (let i = 0; i < stuSexList.length; i++) {
  1099. stuSexList[i].chosed = false
  1100. }
  1101. this.setData({
  1102. stuSexList
  1103. })
  1104. },
  1105. // 关闭学生性别选项区的方法
  1106. hiddenStuSex() {
  1107. this.setData({
  1108. chosedStuSex: false
  1109. })
  1110. },
  1111. // 从下拉选区选择学生性别
  1112. onChosedStuSex(e) {
  1113. let index = e.currentTarget.dataset.index
  1114. let stuSexList = this.data.stuSexList
  1115. for (let i = 0; i < stuSexList.length; i++) {
  1116. if (i == index) {
  1117. stuSexList[i].chosed = !stuSexList[i].chosed
  1118. } else {
  1119. stuSexList[i].chosed = false
  1120. }
  1121. }
  1122. this.setData({
  1123. stuSexList
  1124. })
  1125. },
  1126. // 学生性别确定按钮点击事件
  1127. confirmChosedStuSex() {
  1128. let stuSexList = this.data.stuSexList
  1129. let index
  1130. for (let i = 0; i < stuSexList.length; i++) {
  1131. if (stuSexList[i].chosed) {
  1132. index = i
  1133. }
  1134. }
  1135. let stuSex = stuSexList[index]?.gender || ''
  1136. this.setData({
  1137. stuSex
  1138. })
  1139. this.hiddenStuSex()
  1140. },
  1141. // 获取学生输入的课时费
  1142. getSalary(e) {
  1143. this.setData({
  1144. salary: e.detail.value
  1145. })
  1146. },
  1147. // 选择上课时间
  1148. // 上午
  1149. chechboxChangeAM(e) {
  1150. // console.log(e)
  1151. let schoolTimeAM = this.data.schoolTimeAM
  1152. schoolTimeAM = e.detail.value
  1153. this.setData({
  1154. schoolTimeAM
  1155. })
  1156. // console.log(schoolTimeAM)
  1157. },
  1158. // 下午
  1159. chechboxChangePM(e) {
  1160. // console.log(e)
  1161. let schoolTimePM = this.data.schoolTimePM
  1162. schoolTimePM = e.detail.value
  1163. this.setData({
  1164. schoolTimePM
  1165. })
  1166. // console.log(schoolTimePM)
  1167. },
  1168. // 晚上
  1169. chechboxChangeEvening(e) {
  1170. // console.log(e)
  1171. let schoolTimeEvening = this.data.schoolTimeEvening
  1172. schoolTimeEvening = e.detail.value
  1173. this.setData({
  1174. schoolTimeEvening
  1175. })
  1176. // console.log(schoolTimeEvening)
  1177. },
  1178. // 合并上课时间的函数
  1179. joinTime() {
  1180. let schoolTimeAM = this.data.schoolTimeAM
  1181. let schoolTimePM = this.data.schoolTimePM
  1182. let schoolTimeEvening = this.data.schoolTimeEvening
  1183. let schoolTime = this.data.schoolTime
  1184. schoolTime = schoolTimeAM.concat(schoolTimePM, schoolTimeEvening)
  1185. this.setData({
  1186. schoolTime
  1187. })
  1188. // console.log("上课时间为:"+schoolTime)
  1189. },
  1190. // 获取学生输入的期望达到的目标或效果
  1191. getStuGoal(e) {
  1192. this.setData({
  1193. stuGoal: e.detail.value
  1194. })
  1195. },
  1196. // 选择老师身份
  1197. // 打开老师身份选项区
  1198. chooseTeachAttr() {
  1199. this.setData({
  1200. chosedTeacherAttr: true,
  1201. // teacherAttr: '不限',
  1202. teacherEdu: '不限'
  1203. })
  1204. // 点击老师身份的选项后,将原来的选项取消,恢复到默认选项
  1205. let teacherAttrList = this.data.teacherAttrList
  1206. for (let i = 0; i < teacherAttrList.length; i++) {
  1207. if (i == 0) {
  1208. teacherAttrList[i].chosed = true
  1209. } else {
  1210. teacherAttrList[i].chosed = false
  1211. }
  1212. }
  1213. this.setData({
  1214. teacherAttrList
  1215. })
  1216. // console.log(teacherAttrList)
  1217. let index
  1218. for (let i = 0; i < teacherAttrList.length; i++) {
  1219. if (teacherAttrList[i].chosed) {
  1220. index = i
  1221. }
  1222. }
  1223. let teacherAttr = teacherAttrList[index]?.attr || teacherAttrList[0].attr
  1224. let teacherAttrIndex = index
  1225. this.setData({
  1226. teacherAttr,
  1227. teacherAttrIndex
  1228. })
  1229. // 点击老师身份后,重置老师学历选项为默认值
  1230. let educationList = this.data.educationList
  1231. for (let i = 0; i < educationList.length; i++) {
  1232. for (let j = 0; j < educationList[i].length; j++) {
  1233. if (j == 0) {
  1234. educationList[i][j].chosed = true
  1235. } else {
  1236. educationList[i][j].chosed = false
  1237. }
  1238. }
  1239. }
  1240. this.setData({
  1241. educationList
  1242. })
  1243. let teacherEduIndex
  1244. for (let i = 0; i < educationList[teacherAttrIndex].length; i++) {
  1245. if (educationList[teacherAttrIndex][i].chosed) {
  1246. teacherEduIndex = i
  1247. }
  1248. }
  1249. let teacherEdu = educationList[teacherAttrIndex][teacherEduIndex]?.edu || ''
  1250. this.setData({
  1251. teacherEdu
  1252. })
  1253. },
  1254. // 定义关闭老师身份选项区的方法
  1255. hiddenTeacherAttr() {
  1256. this.setData({
  1257. chosedTeacherAttr: false
  1258. })
  1259. },
  1260. // 从下拉选区选择老师身份
  1261. onChosedTeacherAttr(e) {
  1262. let index = e.currentTarget.dataset.index
  1263. let teacherAttrList = this.data.teacherAttrList
  1264. for (let i = 0; i < teacherAttrList.length; i++) {
  1265. if (i == index) {
  1266. teacherAttrList[i].chosed = !teacherAttrList[i].chosed
  1267. } else {
  1268. teacherAttrList[i].chosed = false
  1269. }
  1270. }
  1271. this.setData({
  1272. teacherAttrList
  1273. })
  1274. },
  1275. // 老师身份的确定按钮点击事件
  1276. confirmTeacherAttr() {
  1277. let teacherAttrList = this.data.teacherAttrList
  1278. let index
  1279. for (let i = 0; i < teacherAttrList.length; i++) {
  1280. if (teacherAttrList[i].chosed) {
  1281. index = i
  1282. }
  1283. }
  1284. let teacherAttr = teacherAttrList[index]?.attr || teacherAttrList[0].attr
  1285. let teacherAttrIndex = index
  1286. this.setData({
  1287. teacherAttr,
  1288. teacherAttrIndex
  1289. })
  1290. this.hiddenTeacherAttr()
  1291. // console.log(teacherAttrIndex)
  1292. },
  1293. // 老师学历(当老师身份不包括“不限”时)
  1294. // 打开老师学历选项区
  1295. chooseTeachEdu() {
  1296. this.setData({
  1297. showTeachEdu: true,
  1298. teacherEdu: '不限'
  1299. })
  1300. let educationList = this.data.educationList
  1301. // console.log(educationList)
  1302. // 点击老师学历的选项后,将原来的选项取消,恢复到默认选项
  1303. for (let i = 0; i < educationList.length; i++) {
  1304. for (let j = 0; j < educationList[i].length; j++) {
  1305. if (j == 0) {
  1306. educationList[i][j].chosed = true
  1307. } else {
  1308. educationList[i][j].chosed = false
  1309. }
  1310. }
  1311. }
  1312. this.setData({
  1313. educationList
  1314. })
  1315. },
  1316. // 关闭老师学历选项区的方法
  1317. hiddenTeachEdu() {
  1318. this.setData({
  1319. showTeachEdu: false
  1320. })
  1321. },
  1322. // 从下拉选区选择老师的学历
  1323. onChosedTeacherEdu(e) {
  1324. let index = e.currentTarget.dataset.index
  1325. let educationList = this.data.educationList
  1326. let teacherAttrIndex = this.data.teacherAttrIndex
  1327. for (let i = 0; i < educationList[teacherAttrIndex].length; i++) {
  1328. if (i == index) {
  1329. educationList[teacherAttrIndex][i].chosed = !educationList[teacherAttrIndex][i].chosed
  1330. } else {
  1331. educationList[teacherAttrIndex][i].chosed = false
  1332. }
  1333. }
  1334. this.setData({
  1335. educationList
  1336. })
  1337. },
  1338. // 老师学历确定按钮点击事件
  1339. confirmTeachEdu() {
  1340. let educationList = this.data.educationList
  1341. let teacherAttrIndex = this.data.teacherAttrIndex
  1342. let index
  1343. for (let i = 0; i < educationList[teacherAttrIndex].length; i++) {
  1344. if (educationList[teacherAttrIndex][i].chosed) {
  1345. index = i
  1346. }
  1347. }
  1348. let teacherEdu = educationList[teacherAttrIndex][index]?.edu || educationList[teacherAttrIndex][0].edu
  1349. this.setData({
  1350. teacherEdu
  1351. })
  1352. this.hiddenTeachEdu()
  1353. },
  1354. // 老师学历2(当老师身份选择“不限”时)
  1355. // 打开老师学历选项区
  1356. chooseTeachEduTwo() {
  1357. this.setData({
  1358. showTeachEdu: true,
  1359. teacherEdu: '不限',
  1360. })
  1361. // 点击老师学历的选项后,将原来的选项取消,恢复到默认选项
  1362. let educationL = this.data.educationL
  1363. for (let i = 0; i < educationL.length; i++) {
  1364. if (i == 0) {
  1365. educationL[i].chosed = true
  1366. } else {
  1367. educationL[i].chosed = false
  1368. }
  1369. }
  1370. this.setData({
  1371. educationL
  1372. })
  1373. },
  1374. // 关闭老师学历选项区的方法
  1375. hiddenTeachEduT() {
  1376. this.setData({
  1377. showTeachEdu: false
  1378. })
  1379. },
  1380. // 从下拉选区选择老师的学历
  1381. onChosedTeacherEduT(e) {
  1382. let index = e.currentTarget.dataset.index
  1383. let educationL = this.data.educationL
  1384. for (let i = 0; i < educationL.length; i++) {
  1385. if (i == index) {
  1386. educationL[i].chosed = !educationL[i].chosed
  1387. } else {
  1388. educationL[i].chosed = false
  1389. }
  1390. }
  1391. this.setData({
  1392. educationL
  1393. })
  1394. },
  1395. // 老师学历确定按钮点击事件
  1396. confirmTeachEduT() {
  1397. let educationL = this.data.educationL
  1398. let index
  1399. for (let i = 0; i < educationL.length; i++) {
  1400. if (educationL[i].chosed) {
  1401. index = i
  1402. }
  1403. }
  1404. let teacherEdu = educationL[index]?.edu || educationL[0].edu
  1405. this.setData({
  1406. teacherEdu
  1407. })
  1408. this.hiddenTeachEduT()
  1409. },
  1410. // 选择老师性别
  1411. // 打开老师性别选项区
  1412. chooseTeachSex() {
  1413. this.setData({
  1414. showTeachSex: true,
  1415. teacherSex: '不限'
  1416. })
  1417. // 点击老师性别的选项后,将原来的选项取消,恢复到默认选项
  1418. let teachSexList = this.data.teachSexList
  1419. for (let i = 0; i < teachSexList.length; i++) {
  1420. if (i == 0) {
  1421. teachSexList[i].chosed = true
  1422. } else {
  1423. teachSexList[i].chosed = false
  1424. }
  1425. }
  1426. this.setData({
  1427. teachSexList
  1428. })
  1429. },
  1430. // 关闭老师性别选区的方法
  1431. hiddenTeachSex() {
  1432. this.setData({
  1433. showTeachSex: false
  1434. })
  1435. },
  1436. // 从下拉选区选择老师性别
  1437. onChosedTeachsex(e) {
  1438. let index = e.currentTarget.dataset.index
  1439. let teachSexList = this.data.teachSexList
  1440. for (let i = 0; i < teachSexList.length; i++) {
  1441. if (i == index) {
  1442. teachSexList[i].chosed = !teachSexList[i].chosed
  1443. } else {
  1444. teachSexList[i].chosed = false
  1445. }
  1446. }
  1447. this.setData({
  1448. teachSexList
  1449. })
  1450. },
  1451. // 老师性别确定按钮点击事件
  1452. confirmTeacherSex() {
  1453. let teachSexList = this.data.teachSexList
  1454. let index
  1455. for (let i = 0; i < teachSexList.length; i++) {
  1456. if (teachSexList[i].chosed) {
  1457. index = i
  1458. }
  1459. }
  1460. let teacherSex = teachSexList[index]?.sex || teachSexList[0].sex
  1461. this.setData({
  1462. teacherSex
  1463. })
  1464. this.hiddenTeachSex()
  1465. },
  1466. // 是否要求老师头像上传
  1467. // 打开老师头像是否上传选项区
  1468. toTeacherImgUpload() {
  1469. this.setData({
  1470. showTeachImg: true,
  1471. teacherImg: '不限'
  1472. })
  1473. // 点击老师头像是否上传的选项后,将原来的选项取消,恢复到默认选项
  1474. let teacherImgList = this.data.teacherImgList
  1475. for (let i = 0; i < teacherImgList.length; i++) {
  1476. if (i == 0) {
  1477. teacherImgList[i].chosed = true
  1478. } else {
  1479. teacherImgList[i].chosed = false
  1480. }
  1481. }
  1482. this.setData({
  1483. teacherImgList
  1484. })
  1485. },
  1486. // 关闭老师头像是否上传选区的方法
  1487. hiddenTeacherImgUpload() {
  1488. this.setData({
  1489. showTeachImg: false
  1490. })
  1491. },
  1492. // 从下拉选区选择老师头像是否上传
  1493. onChosedImgUpload(e) {
  1494. let index = e.currentTarget.dataset.index
  1495. let teacherImgList = this.data.teacherImgList
  1496. for (let i = 0; i < teacherImgList.length; i++) {
  1497. if (i == index) {
  1498. teacherImgList[i].chosed = !teacherImgList[i].chosed
  1499. } else {
  1500. teacherImgList[i].chosed = false
  1501. }
  1502. }
  1503. this.setData({
  1504. teacherImgList
  1505. })
  1506. },
  1507. // 老师头像是否上传确定按钮点击事件
  1508. confirmTeacherImgUpload() {
  1509. let teacherImgList = this.data.teacherImgList
  1510. let index
  1511. for (let i = 0; i < teacherImgList.length; i++) {
  1512. if (teacherImgList[i].chosed) {
  1513. index = i
  1514. }
  1515. }
  1516. let teacherImg = teacherImgList[index]?.imgUpload || teacherImgList[0].imgUpload
  1517. this.setData({
  1518. teacherImg
  1519. })
  1520. this.hiddenTeacherImgUpload()
  1521. },
  1522. // 对老师的其他需求
  1523. getOtherNeed(e) {
  1524. // console.log(e)
  1525. this.setData({
  1526. toTeacherOtherNeed: e.detail.value
  1527. })
  1528. },
  1529. // 提交
  1530. toSubmit() {
  1531. //判断姓名是否为空
  1532. let stuName = this.data.stuName
  1533. if(!stuName){
  1534. wx.showToast({
  1535. title: '姓名不能为空',
  1536. icon:'none'
  1537. })
  1538. return
  1539. }
  1540. //判断手机号码是否为空
  1541. let stuPhoneNum = this.data.stuPhoneNum
  1542. if(!stuPhoneNum){
  1543. wx.showToast({
  1544. title: '手机号不能为空',
  1545. icon:'none'
  1546. })
  1547. return
  1548. }
  1549. //判断手机号码是否正确
  1550. let phoneReg = /^1(3|4|5|6|7|8|9)\d{9}$/;
  1551. if (!phoneReg.test(stuPhoneNum)) {
  1552. wx.showToast({
  1553. title: '手机号格式错误',
  1554. icon: 'none'
  1555. })
  1556. return;
  1557. }
  1558. //判断微信号码是否为空
  1559. let stuWeChatNum = this.data.stuWeChatNum
  1560. if(!stuWeChatNum){
  1561. wx.showToast({
  1562. title: '微信号不能为空',
  1563. icon:'none'
  1564. })
  1565. return
  1566. }
  1567. // 判断课程类别(大类)是否选择
  1568. let chosedCourse = this.data.chosedCourse
  1569. if(!chosedCourse){
  1570. wx.showToast({
  1571. title: '课程类别未选',
  1572. icon:'none'
  1573. })
  1574. return
  1575. }
  1576. // 判断课程细分(小类)是否选择
  1577. let chosedCourseDetail = this.data.chosedCourseDetail
  1578. if(!chosedCourseDetail){
  1579. wx.showToast({
  1580. title: '课程细分未选',
  1581. icon:'none'
  1582. })
  1583. return
  1584. }
  1585. // 判断辅导方式是否选择
  1586. let teachPosition = this.data.teachPosition
  1587. if(!teachPosition){
  1588. wx.showToast({
  1589. title: '辅导方式未选',
  1590. icon:'none'
  1591. })
  1592. return
  1593. }
  1594. // 判断学生性别是否选择
  1595. let stuSex = this.data.stuSex
  1596. if(!stuSex){
  1597. wx.showToast({
  1598. title: '学生性别未选',
  1599. icon:'none'
  1600. })
  1601. return
  1602. }
  1603. //判断课时费是否输入
  1604. let salary = this.data.salary
  1605. if(!salary){
  1606. wx.showToast({
  1607. title: '课时费不能为空',
  1608. icon:'none'
  1609. })
  1610. return
  1611. }
  1612. //判断上课时间是否选择
  1613. //调用上课时间合并的函数
  1614. this.joinTime()
  1615. // 判断上课时间是否为空
  1616. let schoolTime = this.data.schoolTime
  1617. if (schoolTime.length == 0) {
  1618. wx.showToast({
  1619. title: '请选择上课时间',
  1620. icon: 'none'
  1621. })
  1622. return
  1623. }
  1624. // 存入本地缓存
  1625. wx.setStorageSync('student', {
  1626. stuName: this.data.stuName,
  1627. stuPhoneNum: this.data.stuPhoneNum,
  1628. stuWeChatNum: this.data.stuWeChatNum,
  1629. chosedCourse: this.data.chosedCourse,
  1630. chosedCourseDetail: this.data.chosedCourseDetail,
  1631. teachPosition: this.data.teachPosition,
  1632. stuSex: this.data.stuSex,
  1633. salary: this.data.salary,
  1634. schoolTime: this.data.schoolTime,
  1635. stuGoal: this.data.stuGoal,
  1636. teacherAttr: this.data.teacherAttr,
  1637. teacherEdu: this.data.teacherEdu,
  1638. teacherSex: this.data.teacherSex,
  1639. teacherImg: this.data.teacherImg,
  1640. toTeacherOtherNeed: this.data.toTeacherOtherNeed
  1641. })
  1642. wx.showToast({
  1643. title: '提交成功',
  1644. })
  1645. },
  1646. /**
  1647. * 生命周期函数--监听页面初次渲染完成
  1648. */
  1649. onReady() {
  1650. },
  1651. /**
  1652. * 生命周期函数--监听页面显示
  1653. */
  1654. onShow() {
  1655. },
  1656. /**
  1657. * 生命周期函数--监听页面隐藏
  1658. */
  1659. onHide() {
  1660. },
  1661. /**
  1662. * 生命周期函数--监听页面卸载
  1663. */
  1664. onUnload() {
  1665. },
  1666. /**
  1667. * 页面相关事件处理函数--监听用户下拉动作
  1668. */
  1669. onPullDownRefresh() {
  1670. },
  1671. /**
  1672. * 页面上拉触底事件的处理函数
  1673. */
  1674. onReachBottom() {
  1675. },
  1676. /**
  1677. * 用户点击右上角分享
  1678. */
  1679. onShareAppMessage() {
  1680. }
  1681. })