stuNeed.js 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717
  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. [{
  535. courseName: '羽毛球',
  536. choesd: false
  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. [{
  576. courseName: '卡通画',
  577. choesd: false
  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. [{
  601. courseName: '硬笔',
  602. choesd: false
  603. },
  604. {
  605. courseName: '毛笔',
  606. choesd: false
  607. },
  608. {
  609. courseName: '篆刻',
  610. choesd: false
  611. }
  612. ],
  613. [{
  614. courseName: 'Scratch',
  615. choesd: false
  616. },
  617. {
  618. courseName: 'Python',
  619. choesd: false
  620. },
  621. {
  622. courseName: 'C++',
  623. choesd: false
  624. },
  625. {
  626. courseName: 'microbit',
  627. choesd: false
  628. }
  629. ],
  630. [{
  631. courseName: '应用能力初级',
  632. choesd: false
  633. },
  634. {
  635. courseName: '应用能力中级',
  636. choesd: false
  637. },
  638. {
  639. courseName: '基本操作',
  640. choesd: false
  641. }
  642. ],
  643. [{
  644. courseName: '学习习惯',
  645. choesd: false
  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. ],
  665. // 辅导方式
  666. teachPositions: [{
  667. opType: '老师上门',
  668. choesd: false
  669. },
  670. {
  671. opType: '学员上门',
  672. choesd: false
  673. }, {
  674. opType: '线上辅导',
  675. choesd: false
  676. }, {
  677. opType: '老师住家',
  678. choesd: false
  679. },
  680. {
  681. opType: '学员住家',
  682. choesd: false
  683. }
  684. ],
  685. // 学生性别
  686. stuSexList: [{
  687. gender: '男',
  688. choesd: false
  689. },
  690. {
  691. gender: '女',
  692. choesd: false
  693. }
  694. ],
  695. // 老师身份列表
  696. teacherAttrList: [{
  697. 'attr': '不限',
  698. chosed: true
  699. },
  700. {
  701. 'attr': '专职老师',
  702. chosed: false
  703. },
  704. {
  705. 'attr': '在校大学生',
  706. chosed: false
  707. }
  708. ],
  709. // 老师学历列表1
  710. educationList: [
  711. [{
  712. 'edu': '不限',
  713. chosed: true
  714. }],
  715. [{
  716. 'edu': '不限',
  717. chosed: true
  718. },
  719. {
  720. 'edu': '博士毕业',
  721. chosed: false
  722. },
  723. {
  724. 'edu': '硕士毕业',
  725. chosed: false
  726. },
  727. {
  728. 'edu': '本科毕业',
  729. chosed: false
  730. },
  731. {
  732. 'edu': '专科毕业',
  733. chosed: false
  734. }
  735. ],
  736. [{
  737. 'edu': '不限',
  738. chosed: true
  739. },
  740. {
  741. 'edu': '博士在读',
  742. chosed: false
  743. },
  744. {
  745. 'edu': '硕士在读',
  746. chosed: false
  747. },
  748. {
  749. 'edu': '本科在读',
  750. chosed: false
  751. },
  752. {
  753. 'edu': '专科在读',
  754. chosed: false
  755. }
  756. ]
  757. ],
  758. // 老师学历列表2
  759. educationL: [{
  760. 'edu': '不限',
  761. chosed: true
  762. },
  763. {
  764. 'edu': '博士毕业',
  765. chosed: false
  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. // 老师性别列表
  797. teachSexList: [{
  798. sex: '不限',
  799. chosed: true
  800. },
  801. {
  802. sex: '男',
  803. chosed: false
  804. },
  805. {
  806. sex: '女',
  807. chosed: false
  808. }
  809. ],
  810. // 是否要求头像上传
  811. teacherImgList: [{
  812. imgUpload: '不限',
  813. choesd: true
  814. },
  815. {
  816. imgUpload: '是',
  817. choesd: false
  818. },
  819. {
  820. imgUpload: '否',
  821. choesd: false
  822. }
  823. ],
  824. // 上课时间
  825. // 上午
  826. timeAM: [{
  827. name: '1',
  828. value: 'A1'
  829. },
  830. {
  831. name: '2',
  832. value: 'A2'
  833. },
  834. {
  835. name: '3',
  836. value: 'A3'
  837. },
  838. {
  839. name: '4',
  840. value: 'A4'
  841. },
  842. {
  843. name: '5',
  844. value: 'A5'
  845. },
  846. {
  847. name: '6',
  848. value: 'A6'
  849. },
  850. {
  851. name: '7',
  852. value: 'A7'
  853. }
  854. ],
  855. // 下午
  856. timePM: [{
  857. name: '1',
  858. value: 'P1'
  859. },
  860. {
  861. name: '2',
  862. value: 'P2'
  863. },
  864. {
  865. name: '3',
  866. value: 'P3'
  867. },
  868. {
  869. name: '4',
  870. value: 'P4'
  871. },
  872. {
  873. name: '5',
  874. value: 'P5'
  875. },
  876. {
  877. name: '6',
  878. value: 'P6'
  879. },
  880. {
  881. name: '7',
  882. value: 'P7'
  883. }
  884. ],
  885. // 晚上
  886. timeEvening: [{
  887. name: '1',
  888. value: 'E1'
  889. },
  890. {
  891. name: '2',
  892. value: 'E2'
  893. },
  894. {
  895. name: '3',
  896. value: 'E3'
  897. },
  898. {
  899. name: '4',
  900. value: 'E4'
  901. },
  902. {
  903. name: '5',
  904. value: 'E5'
  905. },
  906. {
  907. name: '6',
  908. value: 'E6'
  909. },
  910. {
  911. name: '7',
  912. value: 'E7'
  913. }
  914. ]
  915. },
  916. /**
  917. * 生命周期函数--监听页面加载
  918. */
  919. onLoad(options) {
  920. },
  921. // 获取学生姓名
  922. getStuName(e) {
  923. // console.log(e.detail.value)
  924. this.setData({
  925. stuName: e.detail.value
  926. })
  927. // console.log(this.data.stuName)
  928. },
  929. // 获取学生手机号码
  930. getStuPhone(e) {
  931. this.setData({
  932. stuPhoneNum: e.detail.value
  933. })
  934. },
  935. //获取学生微信号码
  936. getStuWeChat(e) {
  937. this.setData({
  938. stuWeChatNum: e.detail.value
  939. })
  940. },
  941. // 课程类别
  942. // 打开课程类别(大类)选项区
  943. chooseCourseTitle() {
  944. this.setData({
  945. showCourseTitle: true,
  946. chosedCourseDetail: ''
  947. })
  948. },
  949. // 定义退出下拉选区的方法
  950. hiddenCourseTitle() {
  951. this.setData({
  952. showCourseTitle: false
  953. })
  954. },
  955. // 从下拉区选择课程类别内容
  956. onChooseCourseTitle(e) {
  957. let index = e.currentTarget.dataset.index
  958. let courseList = this.data.courseList
  959. for (let i = 0; i < courseList.length; i++) {
  960. if (i == index) {
  961. courseList[i].chosed = !courseList[i].chosed
  962. } else {
  963. courseList[i].chosed = false
  964. }
  965. }
  966. this.setData({
  967. courseList
  968. })
  969. },
  970. // 课程类别(大类)确定按钮的点击事件
  971. confirmCourseTitle() {
  972. let courseList = this.data.courseList
  973. let index
  974. for (let i = 0; i < courseList.length; i++) {
  975. if (courseList[i].chosed) {
  976. index = i
  977. }
  978. }
  979. let chosedCourse = courseList[index]?.name || ''
  980. let courseChosedIndex = index
  981. this.setData({
  982. chosedCourse,
  983. courseChosedIndex
  984. })
  985. // console.log('courseChosedIndex:' + courseChosedIndex)
  986. // let courseDetail = this.data.courseDetail
  987. // console.log('courseDetail:'+courseDetail[courseChosedIndex])
  988. this.hiddenCourseTitle()
  989. },
  990. // 课程细分(小类)选择
  991. // 打开课程细分选项区
  992. toCourseDetail() {
  993. if (!this.data.chosedCourse) {
  994. wx.showToast({
  995. title: '请先选择课程类别',
  996. icon: 'none'
  997. })
  998. return
  999. }
  1000. this.setData({
  1001. showCourseDetail: true
  1002. })
  1003. },
  1004. // 定义退出课程细分选区的方法
  1005. hiddenCourseDetail() {
  1006. this.setData({
  1007. showCourseDetail: false
  1008. })
  1009. },
  1010. // 从下拉区选择课程细分内容
  1011. onChooseCourseDetail(e) {
  1012. let index = e.currentTarget.dataset.index
  1013. let courseDetail = this.data.courseDetail
  1014. let courseChosedIndex = this.data.courseChosedIndex
  1015. for (let i = 0; i < courseDetail[courseChosedIndex].length; i++) {
  1016. if (i == index) {
  1017. courseDetail[courseChosedIndex][i].chosed = !courseDetail[courseChosedIndex][i].chosed
  1018. } else {
  1019. courseDetail[courseChosedIndex][i].chosed = false
  1020. }
  1021. }
  1022. this.setData({
  1023. courseDetail
  1024. })
  1025. },
  1026. // 课程细分(小类)确定按钮的点击事件
  1027. confirmCourseDetail() {
  1028. let courseDetail = this.data.courseDetail
  1029. let courseChosedIndex = this.data.courseChosedIndex
  1030. let index
  1031. for (let i = 0; i < courseDetail[courseChosedIndex].length; i++) {
  1032. if (courseDetail[courseChosedIndex][i].chosed) {
  1033. index = i
  1034. }
  1035. }
  1036. let chosedCourseDetail = courseDetail[courseChosedIndex][index]?.courseName || ''
  1037. this.setData({
  1038. chosedCourseDetail
  1039. })
  1040. this.hiddenCourseDetail()
  1041. },
  1042. // 辅导方式
  1043. // 打开辅导方式选项区
  1044. toTeachPosition() {
  1045. this.setData({
  1046. chosedTeachPosition: true
  1047. })
  1048. },
  1049. // 关闭辅导方式选项区的方法
  1050. hiddenTeachPosition() {
  1051. this.setData({
  1052. chosedTeachPosition: false
  1053. })
  1054. },
  1055. // 从下拉选区选择辅导方式内容
  1056. onTeachPosition(e) {
  1057. let index = e.currentTarget.dataset.index
  1058. let teachPositions = this.data.teachPositions
  1059. for (let i = 0; i < teachPositions.length; i++) {
  1060. if (i == index) {
  1061. teachPositions[i].chosed = !teachPositions[i].chosed
  1062. } else {
  1063. teachPositions[i].chosed = false
  1064. }
  1065. }
  1066. this.setData({
  1067. teachPositions
  1068. })
  1069. },
  1070. // 辅导方式确定按钮点击事件
  1071. confirmTeachPosition() {
  1072. let teachPositions = this.data.teachPositions
  1073. let index
  1074. for (let i = 0; i < teachPositions.length; i++) {
  1075. if (teachPositions[i].chosed) {
  1076. index = i
  1077. }
  1078. }
  1079. let teachPosition = teachPositions[index]?.opType || ''
  1080. this.setData({
  1081. teachPosition
  1082. })
  1083. this.hiddenTeachPosition()
  1084. },
  1085. // 选择学生性别
  1086. // 打开学生性别选项区
  1087. chooseStuSex() {
  1088. this.setData({
  1089. chosedStuSex: true,
  1090. stuSex: ''
  1091. })
  1092. // 点击学生性别的选项后,将原来的选项取消,恢复到默认选项
  1093. let stuSexList = this.data.stuSexList
  1094. for (let i = 0; i < stuSexList.length; i++) {
  1095. stuSexList[i].chosed = false
  1096. }
  1097. this.setData({
  1098. stuSexList
  1099. })
  1100. },
  1101. // 关闭学生性别选项区的方法
  1102. hiddenStuSex() {
  1103. this.setData({
  1104. chosedStuSex: false
  1105. })
  1106. },
  1107. // 从下拉选区选择学生性别
  1108. onChosedStuSex(e) {
  1109. let index = e.currentTarget.dataset.index
  1110. let stuSexList = this.data.stuSexList
  1111. for (let i = 0; i < stuSexList.length; i++) {
  1112. if (i == index) {
  1113. stuSexList[i].chosed = !stuSexList[i].chosed
  1114. } else {
  1115. stuSexList[i].chosed = false
  1116. }
  1117. }
  1118. this.setData({
  1119. stuSexList
  1120. })
  1121. },
  1122. // 学生性别确定按钮点击事件
  1123. confirmChosedStuSex() {
  1124. let stuSexList = this.data.stuSexList
  1125. let index
  1126. for (let i = 0; i < stuSexList.length; i++) {
  1127. if (stuSexList[i].chosed) {
  1128. index = i
  1129. }
  1130. }
  1131. let stuSex = stuSexList[index]?.gender || ''
  1132. this.setData({
  1133. stuSex
  1134. })
  1135. this.hiddenStuSex()
  1136. },
  1137. // 获取学生输入的课时费
  1138. getSalary(e) {
  1139. this.setData({
  1140. salary: e.detail.value
  1141. })
  1142. },
  1143. // 选择上课时间
  1144. // 上午
  1145. chechboxChangeAM(e) {
  1146. // console.log(e)
  1147. let schoolTimeAM = this.data.schoolTimeAM
  1148. schoolTimeAM = e.detail.value
  1149. this.setData({
  1150. schoolTimeAM
  1151. })
  1152. // console.log(schoolTimeAM)
  1153. },
  1154. // 下午
  1155. chechboxChangePM(e) {
  1156. // console.log(e)
  1157. let schoolTimePM = this.data.schoolTimePM
  1158. schoolTimePM = e.detail.value
  1159. this.setData({
  1160. schoolTimePM
  1161. })
  1162. // console.log(schoolTimePM)
  1163. },
  1164. // 晚上
  1165. chechboxChangeEvening(e) {
  1166. // console.log(e)
  1167. let schoolTimeEvening = this.data.schoolTimeEvening
  1168. schoolTimeEvening = e.detail.value
  1169. this.setData({
  1170. schoolTimeEvening
  1171. })
  1172. // console.log(schoolTimeEvening)
  1173. },
  1174. // 合并上课时间的函数
  1175. joinTime() {
  1176. let schoolTimeAM = this.data.schoolTimeAM
  1177. let schoolTimePM = this.data.schoolTimePM
  1178. let schoolTimeEvening = this.data.schoolTimeEvening
  1179. let schoolTime = this.data.schoolTime
  1180. schoolTime = schoolTimeAM.concat(schoolTimePM, schoolTimeEvening)
  1181. this.setData({
  1182. schoolTime
  1183. })
  1184. // console.log("上课时间为:"+schoolTime)
  1185. },
  1186. // 获取学生输入的期望达到的目标或效果
  1187. getStuGoal(e) {
  1188. this.setData({
  1189. stuGoal: e.detail.value
  1190. })
  1191. },
  1192. // 选择老师身份
  1193. // 打开老师身份选项区
  1194. chooseTeachAttr() {
  1195. this.setData({
  1196. chosedTeacherAttr: true,
  1197. // teacherAttr: '不限',
  1198. teacherEdu: '不限'
  1199. })
  1200. // 点击老师身份的选项后,将原来的选项取消,恢复到默认选项
  1201. let teacherAttrList = this.data.teacherAttrList
  1202. for (let i = 0; i < teacherAttrList.length; i++) {
  1203. if (i == 0) {
  1204. teacherAttrList[i].chosed = true
  1205. } else {
  1206. teacherAttrList[i].chosed = false
  1207. }
  1208. }
  1209. this.setData({
  1210. teacherAttrList
  1211. })
  1212. // console.log(teacherAttrList)
  1213. let index
  1214. for (let i = 0; i < teacherAttrList.length; i++) {
  1215. if (teacherAttrList[i].chosed) {
  1216. index = i
  1217. }
  1218. }
  1219. let teacherAttr = teacherAttrList[index]?.attr || teacherAttrList[0].attr
  1220. let teacherAttrIndex = index
  1221. this.setData({
  1222. teacherAttr,
  1223. teacherAttrIndex
  1224. })
  1225. // 点击老师身份后,重置老师学历选项为默认值
  1226. let educationList = this.data.educationList
  1227. for (let i = 0; i < educationList.length; i++) {
  1228. for (let j = 0; j < educationList[i].length; j++) {
  1229. if (j == 0) {
  1230. educationList[i][j].chosed = true
  1231. } else {
  1232. educationList[i][j].chosed = false
  1233. }
  1234. }
  1235. }
  1236. this.setData({
  1237. educationList
  1238. })
  1239. let teacherEduIndex
  1240. for (let i = 0; i < educationList[teacherAttrIndex].length; i++) {
  1241. if (educationList[teacherAttrIndex][i].chosed) {
  1242. teacherEduIndex = i
  1243. }
  1244. }
  1245. let teacherEdu = educationList[teacherAttrIndex][teacherEduIndex]?.edu || ''
  1246. this.setData({
  1247. teacherEdu
  1248. })
  1249. },
  1250. // 定义关闭老师身份选项区的方法
  1251. hiddenTeacherAttr() {
  1252. this.setData({
  1253. chosedTeacherAttr: false
  1254. })
  1255. },
  1256. // 从下拉选区选择老师身份
  1257. onChosedTeacherAttr(e) {
  1258. let index = e.currentTarget.dataset.index
  1259. let teacherAttrList = this.data.teacherAttrList
  1260. for (let i = 0; i < teacherAttrList.length; i++) {
  1261. if (i == index) {
  1262. teacherAttrList[i].chosed = !teacherAttrList[i].chosed
  1263. } else {
  1264. teacherAttrList[i].chosed = false
  1265. }
  1266. }
  1267. this.setData({
  1268. teacherAttrList
  1269. })
  1270. },
  1271. // 老师身份的确定按钮点击事件
  1272. confirmTeacherAttr() {
  1273. let teacherAttrList = this.data.teacherAttrList
  1274. let index
  1275. for (let i = 0; i < teacherAttrList.length; i++) {
  1276. if (teacherAttrList[i].chosed) {
  1277. index = i
  1278. }
  1279. }
  1280. let teacherAttr = teacherAttrList[index]?.attr || teacherAttrList[0].attr
  1281. let teacherAttrIndex = index
  1282. this.setData({
  1283. teacherAttr,
  1284. teacherAttrIndex
  1285. })
  1286. this.hiddenTeacherAttr()
  1287. // console.log(teacherAttrIndex)
  1288. },
  1289. // 老师学历(当老师身份不包括“不限”时)
  1290. // 打开老师学历选项区
  1291. chooseTeachEdu() {
  1292. this.setData({
  1293. showTeachEdu: true,
  1294. teacherEdu: '不限'
  1295. })
  1296. let educationList = this.data.educationList
  1297. // console.log(educationList)
  1298. // 点击老师学历的选项后,将原来的选项取消,恢复到默认选项
  1299. for (let i = 0; i < educationList.length; i++) {
  1300. for (let j = 0; j < educationList[i].length; j++) {
  1301. if (j == 0) {
  1302. educationList[i][j].chosed = true
  1303. } else {
  1304. educationList[i][j].chosed = false
  1305. }
  1306. }
  1307. }
  1308. this.setData({
  1309. educationList
  1310. })
  1311. },
  1312. // 关闭老师学历选项区的方法
  1313. hiddenTeachEdu() {
  1314. this.setData({
  1315. showTeachEdu: false
  1316. })
  1317. },
  1318. // 从下拉选区选择老师的学历
  1319. onChosedTeacherEdu(e) {
  1320. let index = e.currentTarget.dataset.index
  1321. let educationList = this.data.educationList
  1322. let teacherAttrIndex = this.data.teacherAttrIndex
  1323. for (let i = 0; i < educationList[teacherAttrIndex].length; i++) {
  1324. if (i == index) {
  1325. educationList[teacherAttrIndex][i].chosed = !educationList[teacherAttrIndex][i].chosed
  1326. } else {
  1327. educationList[teacherAttrIndex][i].chosed = false
  1328. }
  1329. }
  1330. this.setData({
  1331. educationList
  1332. })
  1333. },
  1334. // 老师学历确定按钮点击事件
  1335. confirmTeachEdu() {
  1336. let educationList = this.data.educationList
  1337. let teacherAttrIndex = this.data.teacherAttrIndex
  1338. let index
  1339. for (let i = 0; i < educationList[teacherAttrIndex].length; i++) {
  1340. if (educationList[teacherAttrIndex][i].chosed) {
  1341. index = i
  1342. }
  1343. }
  1344. let teacherEdu = educationList[teacherAttrIndex][index]?.edu || educationList[teacherAttrIndex][0].edu
  1345. this.setData({
  1346. teacherEdu
  1347. })
  1348. this.hiddenTeachEdu()
  1349. },
  1350. // 老师学历2(当老师身份选择“不限”时)
  1351. // 打开老师学历选项区
  1352. chooseTeachEduTwo() {
  1353. this.setData({
  1354. showTeachEdu: true,
  1355. teacherEdu: '不限',
  1356. })
  1357. // 点击老师学历的选项后,将原来的选项取消,恢复到默认选项
  1358. let educationL = this.data.educationL
  1359. for (let i = 0; i < educationL.length; i++) {
  1360. if (i == 0) {
  1361. educationL[i].chosed = true
  1362. } else {
  1363. educationL[i].chosed = false
  1364. }
  1365. }
  1366. this.setData({
  1367. educationL
  1368. })
  1369. },
  1370. // 关闭老师学历选项区的方法
  1371. hiddenTeachEduT() {
  1372. this.setData({
  1373. showTeachEdu: false
  1374. })
  1375. },
  1376. // 从下拉选区选择老师的学历
  1377. onChosedTeacherEduT(e) {
  1378. let index = e.currentTarget.dataset.index
  1379. let educationL = this.data.educationL
  1380. for (let i = 0; i < educationL.length; i++) {
  1381. if (i == index) {
  1382. educationL[i].chosed = !educationL[i].chosed
  1383. } else {
  1384. educationL[i].chosed = false
  1385. }
  1386. }
  1387. this.setData({
  1388. educationL
  1389. })
  1390. },
  1391. // 老师学历确定按钮点击事件
  1392. confirmTeachEduT() {
  1393. let educationL = this.data.educationL
  1394. let index
  1395. for (let i = 0; i < educationL.length; i++) {
  1396. if (educationL[i].chosed) {
  1397. index = i
  1398. }
  1399. }
  1400. let teacherEdu = educationL[index]?.edu || educationL[0].edu
  1401. this.setData({
  1402. teacherEdu
  1403. })
  1404. this.hiddenTeachEduT()
  1405. },
  1406. // 选择老师性别
  1407. // 打开老师性别选项区
  1408. chooseTeachSex() {
  1409. this.setData({
  1410. showTeachSex: true,
  1411. teacherSex: '不限'
  1412. })
  1413. // 点击老师性别的选项后,将原来的选项取消,恢复到默认选项
  1414. let teachSexList = this.data.teachSexList
  1415. for (let i = 0; i < teachSexList.length; i++) {
  1416. if (i == 0) {
  1417. teachSexList[i].chosed = true
  1418. } else {
  1419. teachSexList[i].chosed = false
  1420. }
  1421. }
  1422. this.setData({
  1423. teachSexList
  1424. })
  1425. },
  1426. // 关闭老师性别选区的方法
  1427. hiddenTeachSex() {
  1428. this.setData({
  1429. showTeachSex: false
  1430. })
  1431. },
  1432. // 从下拉选区选择老师性别
  1433. onChosedTeachsex(e) {
  1434. let index = e.currentTarget.dataset.index
  1435. let teachSexList = this.data.teachSexList
  1436. for (let i = 0; i < teachSexList.length; i++) {
  1437. if (i == index) {
  1438. teachSexList[i].chosed = !teachSexList[i].chosed
  1439. } else {
  1440. teachSexList[i].chosed = false
  1441. }
  1442. }
  1443. this.setData({
  1444. teachSexList
  1445. })
  1446. },
  1447. // 老师性别确定按钮点击事件
  1448. confirmTeacherSex() {
  1449. let teachSexList = this.data.teachSexList
  1450. let index
  1451. for (let i = 0; i < teachSexList.length; i++) {
  1452. if (teachSexList[i].chosed) {
  1453. index = i
  1454. }
  1455. }
  1456. let teacherSex = teachSexList[index]?.sex || teachSexList[0].sex
  1457. this.setData({
  1458. teacherSex
  1459. })
  1460. this.hiddenTeachSex()
  1461. },
  1462. // 是否要求老师头像上传
  1463. // 打开老师头像是否上传选项区
  1464. toTeacherImgUpload() {
  1465. this.setData({
  1466. showTeachImg: true,
  1467. teacherImg: '不限'
  1468. })
  1469. // 点击老师头像是否上传的选项后,将原来的选项取消,恢复到默认选项
  1470. let teacherImgList = this.data.teacherImgList
  1471. for (let i = 0; i < teacherImgList.length; i++) {
  1472. if (i == 0) {
  1473. teacherImgList[i].chosed = true
  1474. } else {
  1475. teacherImgList[i].chosed = false
  1476. }
  1477. }
  1478. this.setData({
  1479. teacherImgList
  1480. })
  1481. },
  1482. // 关闭老师头像是否上传选区的方法
  1483. hiddenTeacherImgUpload() {
  1484. this.setData({
  1485. showTeachImg: false
  1486. })
  1487. },
  1488. // 从下拉选区选择老师头像是否上传
  1489. onChosedImgUpload(e) {
  1490. let index = e.currentTarget.dataset.index
  1491. let teacherImgList = this.data.teacherImgList
  1492. for (let i = 0; i < teacherImgList.length; i++) {
  1493. if (i == index) {
  1494. teacherImgList[i].chosed = !teacherImgList[i].chosed
  1495. } else {
  1496. teacherImgList[i].chosed = false
  1497. }
  1498. }
  1499. this.setData({
  1500. teacherImgList
  1501. })
  1502. },
  1503. // 老师头像是否上传确定按钮点击事件
  1504. confirmTeacherImgUpload() {
  1505. let teacherImgList = this.data.teacherImgList
  1506. let index
  1507. for (let i = 0; i < teacherImgList.length; i++) {
  1508. if (teacherImgList[i].chosed) {
  1509. index = i
  1510. }
  1511. }
  1512. let teacherImg = teacherImgList[index]?.imgUpload || teacherImgList[0].imgUpload
  1513. this.setData({
  1514. teacherImg
  1515. })
  1516. this.hiddenTeacherImgUpload()
  1517. },
  1518. // 对老师的其他需求
  1519. getOtherNeed(e) {
  1520. // console.log(e)
  1521. this.setData({
  1522. toTeacherOtherNeed: e.detail.value
  1523. })
  1524. },
  1525. // 提交
  1526. toSubmit() {
  1527. //判断姓名是否为空
  1528. let stuName = this.data.stuName
  1529. if(!stuName){
  1530. wx.showToast({
  1531. title: '姓名不能为空',
  1532. icon:'none'
  1533. })
  1534. return
  1535. }
  1536. //判断手机号码是否为空
  1537. let stuPhoneNum = this.data.stuPhoneNum
  1538. if(!stuPhoneNum){
  1539. wx.showToast({
  1540. title: '手机号不能为空',
  1541. icon:'none'
  1542. })
  1543. return
  1544. }
  1545. //判断手机号码是否正确
  1546. let phoneReg = /^1(3|4|5|6|7|8|9)\d{9}$/;
  1547. if (!phoneReg.test(stuPhoneNum)) {
  1548. wx.showToast({
  1549. title: '手机号格式错误',
  1550. icon: 'none'
  1551. })
  1552. return;
  1553. }
  1554. //判断微信号码是否为空
  1555. let stuWeChatNum = this.data.stuWeChatNum
  1556. if(!stuWeChatNum){
  1557. wx.showToast({
  1558. title: '微信号不能为空',
  1559. icon:'none'
  1560. })
  1561. return
  1562. }
  1563. // 判断课程类别(大类)是否选择
  1564. let chosedCourse = this.data.chosedCourse
  1565. if(!chosedCourse){
  1566. wx.showToast({
  1567. title: '课程类别未选',
  1568. icon:'none'
  1569. })
  1570. return
  1571. }
  1572. // 判断课程细分(小类)是否选择
  1573. let chosedCourseDetail = this.data.chosedCourseDetail
  1574. if(!chosedCourseDetail){
  1575. wx.showToast({
  1576. title: '课程细分未选',
  1577. icon:'none'
  1578. })
  1579. return
  1580. }
  1581. // 判断辅导方式是否选择
  1582. let teachPosition = this.data.teachPosition
  1583. if(!teachPosition){
  1584. wx.showToast({
  1585. title: '辅导方式未选',
  1586. icon:'none'
  1587. })
  1588. return
  1589. }
  1590. // 判断学生性别是否选择
  1591. let stuSex = this.data.stuSex
  1592. if(!stuSex){
  1593. wx.showToast({
  1594. title: '学生性别未选',
  1595. icon:'none'
  1596. })
  1597. return
  1598. }
  1599. //判断课时费是否输入
  1600. let salary = this.data.salary
  1601. if(!salary){
  1602. wx.showToast({
  1603. title: '课时费不能为空',
  1604. icon:'none'
  1605. })
  1606. return
  1607. }
  1608. //判断上课时间是否选择
  1609. //调用上课时间合并的函数
  1610. this.joinTime()
  1611. // 判断上课时间是否为空
  1612. let schoolTime = this.data.schoolTime
  1613. if (schoolTime.length == 0) {
  1614. wx.showToast({
  1615. title: '请选择上课时间',
  1616. icon: 'none'
  1617. })
  1618. return
  1619. }
  1620. // 存入本地缓存
  1621. wx.setStorageSync('student', {
  1622. stuName: this.data.stuName,
  1623. stuPhoneNum: this.data.stuPhoneNum,
  1624. stuWeChatNum: this.data.stuWeChatNum,
  1625. chosedCourse: this.data.chosedCourse,
  1626. chosedCourseDetail: this.data.chosedCourseDetail,
  1627. teachPosition: this.data.teachPosition,
  1628. stuSex: this.data.stuSex,
  1629. salary: this.data.salary,
  1630. schoolTime: this.data.schoolTime,
  1631. stuGoal: this.data.stuGoal,
  1632. teacherAttr: this.data.teacherAttr,
  1633. teacherEdu: this.data.teacherEdu,
  1634. teacherSex: this.data.teacherSex,
  1635. teacherImg: this.data.teacherImg,
  1636. toTeacherOtherNeed: this.data.toTeacherOtherNeed
  1637. })
  1638. wx.showToast({
  1639. title: '提交成功',
  1640. })
  1641. },
  1642. /**
  1643. * 生命周期函数--监听页面初次渲染完成
  1644. */
  1645. onReady() {
  1646. },
  1647. /**
  1648. * 生命周期函数--监听页面显示
  1649. */
  1650. onShow() {
  1651. },
  1652. /**
  1653. * 生命周期函数--监听页面隐藏
  1654. */
  1655. onHide() {
  1656. },
  1657. /**
  1658. * 生命周期函数--监听页面卸载
  1659. */
  1660. onUnload() {
  1661. },
  1662. /**
  1663. * 页面相关事件处理函数--监听用户下拉动作
  1664. */
  1665. onPullDownRefresh() {
  1666. },
  1667. /**
  1668. * 页面上拉触底事件的处理函数
  1669. */
  1670. onReachBottom() {
  1671. },
  1672. /**
  1673. * 用户点击右上角分享
  1674. */
  1675. onShareAppMessage() {
  1676. }
  1677. })