stuNeed.js 47 KB

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