tu_xing_tui_li.js 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392
  1. // pages/tu_xing_tui_li/tu_xing_tui_li.js
  2. const { throttle } = require('../../utils/util.js')
  3. const app = getApp();
  4. Page({
  5. /**
  6. * 页面的初始数据
  7. */
  8. data: {
  9. isTxtl:true,
  10. statusBar: app.globalData.statusBar,
  11. testOne: false,
  12. testTwo: false,
  13. testThree: false,
  14. graphicReasoning:0,
  15. spaceImagination:0,
  16. executionFunctionality:0,
  17. visualSearch:0,
  18. workingMemory:0,
  19. mentalRotation:0,
  20. times: 0,
  21. level:0,
  22. isWhite:false,
  23. ageGroup:16,
  24. allList:[
  25. [
  26. {
  27. idx: 1,
  28. imgTitle: '../../image/lianxi_title_one.png',
  29. header: '正式测试前先练习一下吧:',
  30. title: '请从下面所给出的小图片中找出适合大图案的一张,可以使整个图案合理与完整.',
  31. answerList: [
  32. [
  33. {
  34. img: '../../image/lianxi_one_as_e.png',
  35. text: 'A',
  36. isAnswer:0,
  37. status: ''
  38. },
  39. {
  40. img: '../../image/lianxi_one_as_b.png',
  41. text: 'B',
  42. isAnswer: 0,
  43. status: ''
  44. },
  45. {
  46. img: '../../image/lianxi_one_as_c.png',
  47. text: 'C',
  48. isAnswer: 1,
  49. status: ''
  50. },
  51. {
  52. img: '../../image/lianxi_one_as_d.png',
  53. text: 'D',
  54. isAnswer: 0,
  55. status: ''
  56. },
  57. {
  58. img: '../../image/lianxi_one_as_a.png',
  59. text: 'E',
  60. isAnswer: 0,
  61. status: ''
  62. },
  63. {
  64. img: '../../image/lianxi_one_as_f.png',
  65. text: 'F',
  66. isAnswer: 0,
  67. status: ''
  68. }
  69. ],
  70. [
  71. {
  72. img: '../../image/lianxi_one_as_a.png',
  73. text: 'A',
  74. isAnswer:0,
  75. status: ''
  76. },
  77. {
  78. img: '../../image/lianxi_one_as_b.png',
  79. text: 'B',
  80. isAnswer: 0,
  81. status: ''
  82. },
  83. {
  84. img: '../../image/lianxi_one_as_f.png',
  85. text: 'C',
  86. isAnswer: 0,
  87. status: ''
  88. },
  89. {
  90. img: '../../image/lianxi_one_as_d.png',
  91. text: 'D',
  92. isAnswer: 0,
  93. status: ''
  94. },
  95. {
  96. img: '../../image/lianxi_one_as_e.png',
  97. text: 'E',
  98. isAnswer: 0,
  99. status: ''
  100. },
  101. {
  102. img: '../../image/lianxi_one_as_c.png',
  103. text: 'F',
  104. isAnswer: 1,
  105. status: ''
  106. }
  107. ]
  108. ]
  109. },
  110. ],
  111. [
  112. {
  113. id: 0,
  114. imgTitle: '../../image/the_first_pass_one_tittle.png',
  115. title: '请从下面所给出的小图片中找出适合大图案的一张,可以使整个图案合理与完整.',
  116. answerList: [
  117. [
  118. {
  119. img: '../../image/the_first_pass_one_as_f.png',
  120. text: 'A',
  121. isAnswer: 0,
  122. status: ''
  123. },
  124. {
  125. img: '../../image/the_first_pass_one_as_b.png',
  126. text: 'B',
  127. isAnswer: 0,
  128. status: ''
  129. },
  130. {
  131. img: '../../image/the_first_pass_one_as_c.png',
  132. text: 'C',
  133. isAnswer: 0,
  134. status: ''
  135. },
  136. {
  137. img: '../../image/the_first_pass_one_as_d.png',
  138. text: 'D',
  139. isAnswer: 0,
  140. status: ''
  141. },
  142. {
  143. img: '../../image/the_first_pass_one_as_e.png',
  144. text: 'E',
  145. isAnswer: 1,
  146. status: ''
  147. },
  148. {
  149. img: '../../image/the_first_pass_one_as_a.png',
  150. text: 'F',
  151. isAnswer: 0,
  152. status: ''
  153. }
  154. ],
  155. [
  156. {
  157. img: '../../image/the_first_pass_one_as_a.png',
  158. text: 'A',
  159. isAnswer: 0,
  160. status: ''
  161. },
  162. {
  163. img: '../../image/the_first_pass_one_as_b.png',
  164. text: 'B',
  165. isAnswer: 0,
  166. status: ''
  167. },
  168. {
  169. img: '../../image/the_first_pass_one_as_e.png',
  170. text: 'C',
  171. isAnswer: 1,
  172. status: ''
  173. },
  174. {
  175. img: '../../image/the_first_pass_one_as_d.png',
  176. text: 'D',
  177. isAnswer: 0,
  178. status: ''
  179. },
  180. {
  181. img: '../../image/the_first_pass_one_as_c.png',
  182. text: 'E',
  183. isAnswer: 0,
  184. status: ''
  185. },
  186. {
  187. img: '../../image/the_first_pass_one_as_f.png',
  188. text: 'F',
  189. isAnswer: 0,
  190. status: ''
  191. }
  192. ]
  193. ]
  194. },
  195. {
  196. id: 1,
  197. imgTitle: '../../image/the_first_pass_one_tittle1.png',
  198. title: '根据规律,空白处应该是什么图形?',
  199. answerList: [
  200. [
  201. {
  202. img: '../../image/the_first_pass_one1_as_a.png',
  203. text: 'A',
  204. isAnswer: 1,
  205. status: ''
  206. },
  207. {
  208. img: '../../image/the_first_pass_one1_as_b.png',
  209. text: 'B',
  210. isAnswer: 0,
  211. status: ''
  212. },
  213. {
  214. img: '../../image/the_first_pass_one1_as_c.png',
  215. text: 'C',
  216. isAnswer: 0,
  217. status: ''
  218. },
  219. {
  220. img: '../../image/the_first_pass_one1_as_d.png',
  221. text: 'D',
  222. isAnswer: 0,
  223. status: ''
  224. },
  225. {
  226. img: '../../image/the_first_pass_one1_as_e.png',
  227. text: 'E',
  228. isAnswer: 0,
  229. status: ''
  230. },
  231. {
  232. img: '../../image/the_first_pass_one1_as_f.png',
  233. text: 'F',
  234. isAnswer: 0,
  235. status: ''
  236. }
  237. ],
  238. [
  239. {
  240. img: '../../image/the_first_pass_one1_as_d.png',
  241. text: 'A',
  242. isAnswer: 0,
  243. status: ''
  244. },
  245. {
  246. img: '../../image/the_first_pass_one1_as_b.png',
  247. text: 'B',
  248. isAnswer: 0,
  249. status: ''
  250. },
  251. {
  252. img: '../../image/the_first_pass_one1_as_c.png',
  253. text: 'C',
  254. isAnswer: 0,
  255. status: ''
  256. },
  257. {
  258. img: '../../image/the_first_pass_one1_as_a.png',
  259. text: 'D',
  260. isAnswer: 1,
  261. status: ''
  262. },
  263. {
  264. img: '../../image/the_first_pass_one1_as_e.png',
  265. text: 'E',
  266. isAnswer: 0,
  267. status: ''
  268. },
  269. {
  270. img: '../../image/the_first_pass_one1_as_f.png',
  271. text: 'F',
  272. isAnswer: 0,
  273. status: ''
  274. }
  275. ],
  276. ]
  277. },
  278. ],
  279. [
  280. {
  281. id: 0,
  282. imgTitle: '../../image/the_second_pass_one_tittle.png',
  283. title: '请从下面所给出的小图片中找出适合大图案的一张,可以使整个图案合理与完整。',
  284. answerList: [
  285. [
  286. {
  287. img: '../../image/the_second_pass_one_as_c.png',
  288. text: 'A',
  289. isAnswer: 0,
  290. status: ''
  291. },
  292. {
  293. img: '../../image/the_second_pass_one_as_b.png',
  294. text: 'B',
  295. isAnswer: 1,
  296. status: ''
  297. },
  298. {
  299. img: '../../image/the_second_pass_one_as_a.png',
  300. text: 'C',
  301. isAnswer: 0,
  302. status: ''
  303. },
  304. {
  305. img: '../../image/the_second_pass_one_as_g.png',
  306. text: 'D',
  307. isAnswer: 0,
  308. status: ''
  309. },
  310. {
  311. img: '../../image/the_second_pass_one_as_e.png',
  312. text: 'E',
  313. isAnswer: 0,
  314. status: ''
  315. },
  316. {
  317. img: '../../image/the_second_pass_one_as_f.png',
  318. text: 'F',
  319. isAnswer: 0,
  320. status: ''
  321. },
  322. {
  323. img: '../../image/the_second_pass_one_as_d.png',
  324. text: 'G',
  325. isAnswer: 0,
  326. status: ''
  327. },
  328. {
  329. img: '../../image/the_second_pass_one_as_h.png',
  330. text: 'H',
  331. isAnswer: 0,
  332. status: ''
  333. },
  334. ],
  335. [
  336. {
  337. img: '../../image/the_second_pass_one_as_a.png',
  338. text: 'A',
  339. isAnswer: 0,
  340. status: ''
  341. },
  342. {
  343. img: '../../image/the_second_pass_one_as_f.png',
  344. text: 'B',
  345. isAnswer: 0,
  346. status: ''
  347. },
  348. {
  349. img: '../../image/the_second_pass_one_as_c.png',
  350. text: 'C',
  351. isAnswer: 0,
  352. status: ''
  353. },
  354. {
  355. img: '../../image/the_second_pass_one_as_d.png',
  356. text: 'D',
  357. isAnswer: 0,
  358. status: ''
  359. },
  360. {
  361. img: '../../image/the_second_pass_one_as_e.png',
  362. text: 'E',
  363. isAnswer: 0,
  364. status: ''
  365. },
  366. {
  367. img: '../../image/the_second_pass_one_as_b.png',
  368. text: 'F',
  369. isAnswer: 1,
  370. status: ''
  371. },
  372. {
  373. img: '../../image/the_second_pass_one_as_g.png',
  374. text: 'G',
  375. isAnswer: 0,
  376. status: ''
  377. },
  378. {
  379. img: '../../image/the_second_pass_one_as_h.png',
  380. text: 'H',
  381. isAnswer: 0,
  382. status: ''
  383. },
  384. ],
  385. ]
  386. },
  387. {
  388. id: 1,
  389. imgTitle: '../../image/the_second_pass_one_tittle1.png',
  390. title: '请从下面所给出的小图片中找出适合大图案的一张,可以使整个图案合理与完整。',
  391. answerList: [
  392. [
  393. {
  394. img: '../../image/the_second_pass_one1_as_a.png',
  395. text: 'A',
  396. isAnswer: 0,
  397. status: ''
  398. },
  399. {
  400. img: '../../image/the_second_pass_one1_as_b.png',
  401. text: 'B',
  402. isAnswer: 0,
  403. status: ''
  404. },
  405. {
  406. img: '../../image/the_second_pass_one1_as_c.png',
  407. text: 'C',
  408. isAnswer: 0,
  409. status: ''
  410. },
  411. {
  412. img: '../../image/the_second_pass_one1_as_d.png',
  413. text: 'D',
  414. isAnswer: 1,
  415. status: ''
  416. },
  417. {
  418. img: '../../image/the_second_pass_one1_as_e.png',
  419. text: 'E',
  420. isAnswer: 0,
  421. status: ''
  422. },
  423. {
  424. img: '../../image/the_second_pass_one1_as_f.png',
  425. text: 'F',
  426. isAnswer: 0,
  427. status: ''
  428. },
  429. {
  430. img: '../../image/the_second_pass_one1_as_g.png',
  431. text: 'G',
  432. isAnswer: 0,
  433. status: ''
  434. },
  435. {
  436. img: '../../image/the_second_pass_one1_as_h.png',
  437. text: 'H',
  438. isAnswer: 0,
  439. status: ''
  440. }
  441. ],
  442. [
  443. {
  444. img: '../../image/the_second_pass_one1_as_f.png',
  445. text: 'A',
  446. isAnswer: 0,
  447. status: ''
  448. },
  449. {
  450. img: '../../image/the_second_pass_one1_as_b.png',
  451. text: 'B',
  452. isAnswer: 0,
  453. status: ''
  454. },
  455. {
  456. img: '../../image/the_second_pass_one1_as_c.png',
  457. text: 'C',
  458. isAnswer: 0,
  459. status: ''
  460. },
  461. {
  462. img: '../../image/the_second_pass_one1_as_g.png',
  463. text: 'D',
  464. isAnswer: 0,
  465. status: ''
  466. },
  467. {
  468. img: '../../image/the_second_pass_one1_as_e.png',
  469. text: 'E',
  470. isAnswer: 0,
  471. status: ''
  472. },
  473. {
  474. img: '../../image/the_second_pass_one1_as_a.png',
  475. text: 'F',
  476. isAnswer: 0,
  477. status: ''
  478. },
  479. {
  480. img: '../../image/the_second_pass_one1_as_d.png',
  481. text: 'G',
  482. isAnswer: 1,
  483. status: ''
  484. },
  485. {
  486. img: '../../image/the_second_pass_one1_as_h.png',
  487. text: 'H',
  488. isAnswer: 0,
  489. status: ''
  490. }
  491. ],
  492. ]
  493. },
  494. ],
  495. [
  496. {
  497. id: 0,
  498. imgTitle: '../../image/the_third_pass_one_tittle.png',
  499. title: '请从下面所给出的小图片中找出适合大图案的一张,可以使整个图案合理与完整。',
  500. answerList: [
  501. [
  502. {
  503. img: '../../image/the_third_pass_one_as_a.png',
  504. text: 'A',
  505. isAnswer: 0,
  506. status: ''
  507. },
  508. {
  509. img: '../../image/the_third_pass_one_as_b.png',
  510. text: 'B',
  511. isAnswer: 0,
  512. status: ''
  513. },
  514. {
  515. img: '../../image/the_third_pass_one_as_c.png',
  516. text: 'C',
  517. isAnswer: 0,
  518. status: ''
  519. },
  520. {
  521. img: '../../image/the_third_pass_one_as_d.png',
  522. text: 'D',
  523. isAnswer: 0,
  524. status: ''
  525. },
  526. {
  527. img: '../../image/the_third_pass_one_as_e.png',
  528. text: 'E',
  529. isAnswer: 0,
  530. status: ''
  531. },
  532. {
  533. img: '../../image/the_third_pass_one_as_f.png',
  534. text: 'F',
  535. isAnswer: 0,
  536. status: ''
  537. },
  538. {
  539. img: '../../image/the_third_pass_one_as_g.png',
  540. text: 'G',
  541. isAnswer: 0,
  542. status: ''
  543. },
  544. {
  545. img: '../../image/the_third_pass_one_as_h.png',
  546. text: 'H',
  547. isAnswer: 1,
  548. status: ''
  549. },
  550. ],
  551. [
  552. {
  553. img: '../../image/the_third_pass_one_as_e.png',
  554. text: 'A',
  555. isAnswer: 0,
  556. status: ''
  557. },
  558. {
  559. img: '../../image/the_third_pass_one_as_g.png',
  560. text: 'B',
  561. isAnswer: 0,
  562. status: ''
  563. },
  564. {
  565. img: '../../image/the_third_pass_one_as_c.png',
  566. text: 'C',
  567. isAnswer: 0,
  568. status: ''
  569. },
  570. {
  571. img: '../../image/the_third_pass_one_as_h.png',
  572. text: 'D',
  573. isAnswer: 1,
  574. status: ''
  575. },
  576. {
  577. img: '../../image/the_third_pass_one_as_a.png',
  578. text: 'E',
  579. isAnswer: 0,
  580. status: ''
  581. },
  582. {
  583. img: '../../image/the_third_pass_one_as_f.png',
  584. text: 'F',
  585. isAnswer: 0,
  586. status: ''
  587. },
  588. {
  589. img: '../../image/the_third_pass_one_as_b.png',
  590. text: 'G',
  591. isAnswer: 0,
  592. status: ''
  593. },
  594. {
  595. img: '../../image/the_third_pass_one_as_d.png',
  596. text: 'H',
  597. isAnswer: 0,
  598. status: ''
  599. },
  600. ],
  601. ]
  602. },
  603. {
  604. id:1,
  605. imgTitle: '../../image/the_third_pass_one_tittle1.png',
  606. title: '请从下面所给出的小图片中找出适合大图案的一张,可以使整个图案合理与完整。',
  607. answerList: [
  608. [
  609. {
  610. img: '../../image/the_third_pass_one1_as_a.png',
  611. text: 'A',
  612. isAnswer: 1,
  613. status: ''
  614. },
  615. {
  616. img: '../../image/the_third_pass_one1_as_b.png',
  617. text: 'B',
  618. isAnswer: 0,
  619. status: ''
  620. },
  621. {
  622. img: '../../image/the_third_pass_one1_as_c.png',
  623. text: 'C',
  624. isAnswer: 0,
  625. status: ''
  626. },
  627. {
  628. img: '../../image/the_third_pass_one1_as_d.png',
  629. text: 'D',
  630. isAnswer: 0,
  631. status: ''
  632. },
  633. {
  634. img: '../../image/the_third_pass_one1_as_e.png',
  635. text: 'E',
  636. isAnswer: 0,
  637. status: ''
  638. },
  639. {
  640. img: '../../image/the_third_pass_one1_as_f.png',
  641. text: 'F',
  642. isAnswer: 0,
  643. status: ''
  644. },
  645. {
  646. img: '../../image/the_third_pass_one1_as_g.png',
  647. text: 'G',
  648. isAnswer: 0,
  649. status: ''
  650. },
  651. {
  652. img: '../../image/the_third_pass_one1_as_h.png',
  653. text: 'H',
  654. isAnswer: 0,
  655. status: ''
  656. },
  657. ],
  658. [
  659. {
  660. img: '../../image/the_third_pass_one1_as_g.png',
  661. text: 'A',
  662. isAnswer: 0,
  663. status: ''
  664. },
  665. {
  666. img: '../../image/the_third_pass_one1_as_b.png',
  667. text: 'B',
  668. isAnswer: 0,
  669. status: ''
  670. },
  671. {
  672. img: '../../image/the_third_pass_one1_as_c.png',
  673. text: 'C',
  674. isAnswer: 0,
  675. status: ''
  676. },
  677. {
  678. img: '../../image/the_third_pass_one1_as_f.png',
  679. text: 'D',
  680. isAnswer: 0,
  681. status: ''
  682. },
  683. {
  684. img: '../../image/the_third_pass_one1_as_e.png',
  685. text: 'E',
  686. isAnswer: 0,
  687. status: ''
  688. },
  689. {
  690. img: '../../image/the_third_pass_one1_as_d.png',
  691. text: 'F',
  692. isAnswer: 0,
  693. status: ''
  694. },
  695. {
  696. img: '../../image/the_third_pass_one1_as_a.png',
  697. text: 'G',
  698. isAnswer: 1,
  699. status: ''
  700. },
  701. {
  702. img: '../../image/the_third_pass_one1_as_h.png',
  703. text: 'H',
  704. isAnswer: 0,
  705. status: ''
  706. },
  707. ],
  708. ]
  709. },
  710. ],
  711. [
  712. {
  713. id: 0,
  714. imgTitle: '../../image/the_fourth_pass_one_tittle.png',
  715. title: '请从下面所给出的小图片中找出适合大图案的一张,可以使整个图案合理与完整。',
  716. answerList: [
  717. [
  718. {
  719. img: '../../image/the_fourth_pass_one_as_a.png',
  720. text: 'A',
  721. isAnswer: 0,
  722. status: ''
  723. },
  724. {
  725. img: '../../image/the_fourth_pass_one_as_b.png',
  726. text: 'B',
  727. isAnswer: 0,
  728. status: ''
  729. },
  730. {
  731. img: '../../image/the_fourth_pass_one_as_c.png',
  732. text: 'C',
  733. isAnswer: 0,
  734. status: ''
  735. },
  736. {
  737. img: '../../image/the_fourth_pass_one_as_d.png',
  738. text: 'D',
  739. isAnswer: 0,
  740. status: ''
  741. },
  742. {
  743. img: '../../image/the_fourth_pass_one_as_e.png',
  744. text: 'E',
  745. isAnswer: 0,
  746. status: ''
  747. },
  748. {
  749. img: '../../image/the_fourth_pass_one_as_f.png',
  750. text: 'F',
  751. isAnswer: 1,
  752. status: ''
  753. },
  754. {
  755. img: '../../image/the_fourth_pass_one_as_g.png',
  756. text: 'G',
  757. isAnswer: 0,
  758. status: ''
  759. },
  760. {
  761. img: '../../image/the_fourth_pass_one_as_h.png',
  762. text: 'H',
  763. isAnswer: 0,
  764. status: ''
  765. },
  766. ],
  767. [
  768. {
  769. img: '../../image/the_fourth_pass_one_as_e.png',
  770. text: 'A',
  771. isAnswer: 0,
  772. status: ''
  773. },
  774. {
  775. img: '../../image/the_fourth_pass_one_as_f.png',
  776. text: 'B',
  777. isAnswer: 1,
  778. status: ''
  779. },
  780. {
  781. img: '../../image/the_fourth_pass_one_as_c.png',
  782. text: 'C',
  783. isAnswer: 0,
  784. status: ''
  785. },
  786. {
  787. img: '../../image/the_fourth_pass_one_as_d.png',
  788. text: 'D',
  789. isAnswer: 0,
  790. status: ''
  791. },
  792. {
  793. img: '../../image/the_fourth_pass_one_as_a.png',
  794. text: 'E',
  795. isAnswer: 0,
  796. status: ''
  797. },
  798. {
  799. img: '../../image/the_fourth_pass_one_as_b.png',
  800. text: 'F',
  801. isAnswer: 0,
  802. status: ''
  803. },
  804. {
  805. img: '../../image/the_fourth_pass_one_as_g.png',
  806. text: 'G',
  807. isAnswer: 0,
  808. status: ''
  809. },
  810. {
  811. img: '../../image/the_fourth_pass_one_as_h.png',
  812. text: 'H',
  813. isAnswer: 0,
  814. status: ''
  815. },
  816. ],
  817. ]
  818. },
  819. {
  820. id: 1,
  821. imgTitle: '../../image/the_fourth_pass_one_tittle1.png',
  822. title: '请从下面所给出的小图片中找出适合大图案的一张,可以使整个图案合理与完整。',
  823. answerList: [
  824. [
  825. {
  826. img: '../../image/the_fourth_pass_one1_as_a.png',
  827. text: 'A',
  828. isAnswer: 0,
  829. status: ''
  830. },
  831. {
  832. img: '../../image/the_fourth_pass_one1_as_b.png',
  833. text: 'B',
  834. isAnswer: 0,
  835. status: ''
  836. },
  837. {
  838. img: '../../image/the_fourth_pass_one1_as_c.png',
  839. text: 'C',
  840. isAnswer: 0,
  841. status: ''
  842. },
  843. {
  844. img: '../../image/the_fourth_pass_one1_as_d.png',
  845. text: 'D',
  846. isAnswer: 0,
  847. status: ''
  848. },
  849. {
  850. img: '../../image/the_fourth_pass_one1_as_e.png',
  851. text: 'E',
  852. isAnswer: 1,
  853. status: ''
  854. },
  855. {
  856. img: '../../image/the_fourth_pass_one1_as_f.png',
  857. text: 'F',
  858. isAnswer: 0,
  859. status: ''
  860. },
  861. {
  862. img: '../../image/the_fourth_pass_one1_as_g.png',
  863. text: 'G',
  864. isAnswer: 0,
  865. status: ''
  866. },
  867. {
  868. img: '../../image/the_fourth_pass_one1_as_h.png',
  869. text: 'H',
  870. isAnswer: 0,
  871. status: ''
  872. },
  873. ],
  874. [
  875. {
  876. img: '../../image/the_fourth_pass_one1_as_g.png',
  877. text: 'A',
  878. isAnswer: 0,
  879. status: ''
  880. },
  881. {
  882. img: '../../image/the_fourth_pass_one1_as_e.png',
  883. text: 'B',
  884. isAnswer: 1,
  885. status: ''
  886. },
  887. {
  888. img: '../../image/the_fourth_pass_one1_as_c.png',
  889. text: 'C',
  890. isAnswer: 0,
  891. status: ''
  892. },
  893. {
  894. img: '../../image/the_fourth_pass_one1_as_d.png',
  895. text: 'D',
  896. isAnswer: 0,
  897. status: ''
  898. },
  899. {
  900. img: '../../image/the_fourth_pass_one1_as_b.png',
  901. text: 'E',
  902. isAnswer: 0,
  903. status: ''
  904. },
  905. {
  906. img: '../../image/the_fourth_pass_one1_as_f.png',
  907. text: 'F',
  908. isAnswer: 0,
  909. status: ''
  910. },
  911. {
  912. img: '../../image/the_fourth_pass_one1_as_a.png',
  913. text: 'G',
  914. isAnswer: 0,
  915. status: ''
  916. },
  917. {
  918. img: '../../image/the_fourth_pass_one1_as_h.png',
  919. text: 'H',
  920. isAnswer: 0,
  921. status: ''
  922. },
  923. ],
  924. ]
  925. },
  926. ],
  927. [
  928. {
  929. id: 0,
  930. imgTitle: '../../image/the_fifth_pass_one_tittle.png',
  931. title: '请从下面所给出的小图片中找出适合大图案的一张,可以使整个图案合理与完整。',
  932. answerList: [
  933. [
  934. {
  935. img: '../../image/the_fifth_pass_one_as_a.png',
  936. text: 'A',
  937. isAnswer: 0,
  938. status: ''
  939. },
  940. {
  941. img: '../../image/the_fifth_pass_one_as_b.png',
  942. text: 'B',
  943. isAnswer: 0,
  944. status: ''
  945. },
  946. {
  947. img: '../../image/the_fifth_pass_one_as_c.png',
  948. text: 'C',
  949. isAnswer: 0,
  950. status: ''
  951. },
  952. {
  953. img: '../../image/the_fifth_pass_one_as_d.png',
  954. text: 'D',
  955. isAnswer: 1,
  956. status: ''
  957. },
  958. {
  959. img: '../../image/the_fifth_pass_one_as_e.png',
  960. text: 'E',
  961. isAnswer: 0,
  962. status: ''
  963. },
  964. {
  965. img: '../../image/the_fifth_pass_one_as_f.png',
  966. text: 'F',
  967. isAnswer: 0,
  968. status: ''
  969. },
  970. {
  971. img: '../../image/the_fifth_pass_one_as_g.png',
  972. text: 'G',
  973. isAnswer: 0,
  974. status: ''
  975. },
  976. {
  977. img: '../../image/the_fifth_pass_one_as_h.png',
  978. text: 'H',
  979. isAnswer: 0,
  980. status: ''
  981. },
  982. ],
  983. [
  984. {
  985. img: '../../image/the_fifth_pass_one_as_h.png',
  986. text: 'A',
  987. isAnswer: 0,
  988. status: ''
  989. },
  990. {
  991. img: '../../image/the_fifth_pass_one_as_b.png',
  992. text: 'B',
  993. isAnswer: 0,
  994. status: ''
  995. },
  996. {
  997. img: '../../image/the_fifth_pass_one_as_c.png',
  998. text: 'C',
  999. isAnswer: 0,
  1000. status: ''
  1001. },
  1002. {
  1003. img: '../../image/the_fifth_pass_one_as_g.png',
  1004. text: 'D',
  1005. isAnswer: 0,
  1006. status: ''
  1007. },
  1008. {
  1009. img: '../../image/the_fifth_pass_one_as_e.png',
  1010. text: 'E',
  1011. isAnswer: 0,
  1012. status: ''
  1013. },
  1014. {
  1015. img: '../../image/the_fifth_pass_one_as_f.png',
  1016. text: 'F',
  1017. isAnswer: 0,
  1018. status: ''
  1019. },
  1020. {
  1021. img: '../../image/the_fifth_pass_one_as_d.png',
  1022. text: 'G',
  1023. isAnswer: 1,
  1024. status: ''
  1025. },
  1026. {
  1027. img: '../../image/the_fifth_pass_one_as_a.png',
  1028. text: 'H',
  1029. isAnswer: 0,
  1030. status: ''
  1031. },
  1032. ],
  1033. ]
  1034. },
  1035. {
  1036. id: 1,
  1037. imgTitle: '../../image/the_fifth_pass_one_tittle1.png',
  1038. title: '请从下面所给出的小图片中找出适合大图案的一张,可以使整个图案合理与完整。',
  1039. answerList: [
  1040. [
  1041. {
  1042. img: '../../image/the_fifth_pass_one1_as_a.png',
  1043. text: 'A',
  1044. isAnswer: 0,
  1045. status: ''
  1046. },
  1047. {
  1048. img: '../../image/the_fifth_pass_one1_as_b.png',
  1049. text: 'B',
  1050. isAnswer: 0,
  1051. status: ''
  1052. },
  1053. {
  1054. img: '../../image/the_fifth_pass_one1_as_c.png',
  1055. text: 'C',
  1056. isAnswer: 1,
  1057. status: ''
  1058. },
  1059. {
  1060. img: '../../image/the_fifth_pass_one1_as_d.png',
  1061. text: 'D',
  1062. isAnswer: 0,
  1063. status: ''
  1064. },
  1065. {
  1066. img: '../../image/the_fifth_pass_one1_as_e.png',
  1067. text: 'E',
  1068. isAnswer: 0,
  1069. status: ''
  1070. },
  1071. {
  1072. img: '../../image/the_fifth_pass_one1_as_f.png',
  1073. text: 'F',
  1074. isAnswer: 0,
  1075. status: ''
  1076. },
  1077. {
  1078. img: '../../image/the_fifth_pass_one1_as_g.png',
  1079. text: 'G',
  1080. isAnswer: 0,
  1081. status: ''
  1082. },
  1083. {
  1084. img: '../../image/the_fifth_pass_one1_as_h.png',
  1085. text: 'H',
  1086. isAnswer: 0,
  1087. status: ''
  1088. },
  1089. ],
  1090. [
  1091. {
  1092. img: '../../image/the_fifth_pass_one1_as_g.png',
  1093. text: 'A',
  1094. isAnswer: 0,
  1095. status: ''
  1096. },
  1097. {
  1098. img: '../../image/the_fifth_pass_one1_as_f.png',
  1099. text: 'B',
  1100. isAnswer: 0,
  1101. status: ''
  1102. },
  1103. {
  1104. img: '../../image/the_fifth_pass_one1_as_a.png',
  1105. text: 'C',
  1106. isAnswer: 0,
  1107. status: ''
  1108. },
  1109. {
  1110. img: '../../image/the_fifth_pass_one1_as_d.png',
  1111. text: 'D',
  1112. isAnswer: 0,
  1113. status: ''
  1114. },
  1115. {
  1116. img: '../../image/the_fifth_pass_one1_as_e.png',
  1117. text: 'E',
  1118. isAnswer: 0,
  1119. status: ''
  1120. },
  1121. {
  1122. img: '../../image/the_fifth_pass_one1_as_b.png',
  1123. text: 'F',
  1124. isAnswer: 0,
  1125. status: ''
  1126. },
  1127. {
  1128. img: '../../image/the_fifth_pass_one1_as_c.png',
  1129. text: 'G',
  1130. isAnswer: 1,
  1131. status: ''
  1132. },
  1133. {
  1134. img: '../../image/the_fifth_pass_one1_as_h.png',
  1135. text: 'H',
  1136. isAnswer: 0,
  1137. status: ''
  1138. },
  1139. ],
  1140. ]
  1141. },
  1142. ],
  1143. ]
  1144. },
  1145. /**
  1146. * 生命周期函数--监听页面加载
  1147. */
  1148. onLoad: function (options) {
  1149. this.setData(options)
  1150. console.log(options)
  1151. // this.saveExercise()
  1152. this.setData({
  1153. isOne: Math.round(Math.random()),
  1154. isRandom:Math.round(Math.random())
  1155. })
  1156. },
  1157. /**
  1158. * 生命周期函数--监听页面初次渲染完成
  1159. */
  1160. onReady: function () {
  1161. },
  1162. /**
  1163. * 生命周期函数--监听页面显示
  1164. */
  1165. onShow: function () {
  1166. },
  1167. /**
  1168. * 生命周期函数--监听页面隐藏
  1169. */
  1170. onHide: function () {
  1171. },
  1172. /**
  1173. * 生命周期函数--监听页面卸载
  1174. */
  1175. onUnload: function () {
  1176. },
  1177. /**
  1178. * 页面相关事件处理函数--监听用户下拉动作
  1179. */
  1180. onPullDownRefresh: function () {
  1181. },
  1182. /**
  1183. * 页面上拉触底事件的处理函数
  1184. */
  1185. onReachBottom: function () {
  1186. },
  1187. /**
  1188. * 用户点击右上角分享
  1189. */
  1190. onShareAppMessage: function () {
  1191. },
  1192. /**
  1193. * 保存练习结果
  1194. */
  1195. saveExercise:function(){
  1196. const postData = { fn: this.getPersonInfo, param: { ...arguments } }
  1197. const {gameRespondentId}=this.data
  1198. app.post('/api/game/v2/saveV2', {level:0,gameRespondentId}, 0, postData).then(res => {
  1199. })
  1200. },
  1201. /**
  1202. * 底部导航跳转
  1203. */
  1204. redirectCtl: app.redirectCtl,
  1205. /**
  1206. * 返回上一级页面
  1207. */
  1208. blockCtl: function () {
  1209. this.redirectCtl({ url: 'me', method: {} }, true)
  1210. this.endSetInter();
  1211. },
  1212. /**
  1213. * 开始答题
  1214. */
  1215. actionAnswer:function(){
  1216. const { isTxtl}=this.data;
  1217. this.startSetInter();
  1218. this.setData({ isTxtl:false})
  1219. },
  1220. /**
  1221. * 选择答案
  1222. */
  1223. selectItems:throttle(function(e){
  1224. const {lindex, mindex,sindex } = e.currentTarget.dataset;
  1225. const { allList, times, graphicReasoning, ageGroup,isRandom} = this.data;
  1226. // console.log(lindex, mindex,sindex,isRandom)
  1227. var that = this;
  1228. var temp = {};
  1229. for (var i in allList[lindex][mindex].answerList[isRandom]) {
  1230. temp[`allList[${lindex}][${mindex}].answerList[${isRandom}][${i}].status`] = '';
  1231. }
  1232. temp[`allList[${lindex}][${mindex}].answerList[${isRandom}][${sindex}].status`]='active';
  1233. this.setData(temp);
  1234. if (allList[lindex][mindex].answerList[isRandom][sindex].isAnswer == 1) {
  1235. that.setData({ isYes: true,isAnswer: true })
  1236. if(lindex!=0){
  1237. that.integraeRule(1)
  1238. }
  1239. that.endSetInter();
  1240. that.startSetInter()
  1241. } else {
  1242. that.setData({ isYes: false,isAnswer: true })
  1243. if(lindex!=0){
  1244. that.integraeRule(0)
  1245. }
  1246. that.endSetInter();
  1247. that.startSetInter()
  1248. }
  1249. setTimeout(
  1250. function () {
  1251. if(lindex+1==6){
  1252. that.endSetInter();
  1253. that.tenEndTimes()
  1254. }else{
  1255. that.setData({ level:lindex+1,isAnswer:false,times: 0,isOne: Math.round(Math.random()),isRandom: Math.round(Math.random()),isWhite:true})
  1256. that.hiddenShow()
  1257. }
  1258. },300)
  1259. },800),
  1260. /**
  1261. * 过渡页显示
  1262. */
  1263. hiddenShow:function(){
  1264. const {isWhite} = this.data;
  1265. var that = this;
  1266. setTimeout(function () {
  1267. that.setData({ isWhite:false})
  1268. }, 500)
  1269. },
  1270. /**
  1271. * 积分规则处理
  1272. */
  1273. integraeRule:function(str){
  1274. const { ageGroup, times,graphicReasoning}=this.data;
  1275. var that = this;
  1276. that.saveCase(str)
  1277. console.log(ageGroup, times,graphicReasoning)
  1278. if(str==1){
  1279. if(ageGroup <=5){
  1280. if(0 < times && times <= 900){
  1281. that.setData({ graphicReasoning: graphicReasoning+20 });
  1282. }else if (900 < times) {
  1283. that.setData({ graphicReasoning: graphicReasoning+18 });
  1284. }
  1285. }else if(6<=ageGroup&&ageGroup <= 8){
  1286. if (0 < times && times <= 720) {
  1287. that.setData({ graphicReasoning: graphicReasoning+20 });
  1288. }else if(720 < times){
  1289. that.setData({ graphicReasoning: graphicReasoning+18 });
  1290. }
  1291. }else if(9<=ageGroup&&ageGroup <= 12){
  1292. if (0 < times && times <= 600) {
  1293. that.setData({ graphicReasoning: graphicReasoning+20 });
  1294. }else if (600 < times) {
  1295. that.setData({ graphicReasoning: graphicReasoning+18 });
  1296. }
  1297. }else if(13<=ageGroup&&ageGroup <= 15){
  1298. if (0 < times && times <= 480) {
  1299. that.setData({ graphicReasoning: graphicReasoning+20 });
  1300. }else if (480 < times) {
  1301. that.setData({ graphicReasoning: graphicReasoning+18 });
  1302. }
  1303. }else if(16<=ageGroup&&ageGroup <= 35){
  1304. if (0 < times && times <= 300) {
  1305. that.setData({ graphicReasoning: graphicReasoning+20 });
  1306. }else if (300 < times) {
  1307. that.setData({ graphicReasoning: graphicReasoning+18 });
  1308. }
  1309. }else if(36<=ageGroup&&ageGroup <= 49){
  1310. if (0 < times && times <= 480) {
  1311. that.setData({ graphicReasoning: graphicReasoning+20 });
  1312. }else if (480 < times) {
  1313. that.setData({ graphicReasoning: graphicReasoning+18 });
  1314. }
  1315. }else if(50<=ageGroup&&ageGroup <= 60){
  1316. if (0 < times && times <= 720) {
  1317. that.setData({ graphicReasoning: graphicReasoning+20 });
  1318. }else if (720 < times) {
  1319. that.setData({ graphicReasoning: graphicReasoning+18 });
  1320. }
  1321. }else if(60<=ageGroup){
  1322. if (0 < times && times <= 900){
  1323. that.setData({ graphicReasoning: graphicReasoning+20 });
  1324. }else if (900 < times) {
  1325. that.setData({ graphicReasoning: graphicReasoning+18 });
  1326. }
  1327. }
  1328. }else{
  1329. that.setData({ graphicReasoning: graphicReasoning+0 });
  1330. }
  1331. },
  1332. /**
  1333. * 开始计时
  1334. */
  1335. startSetInter: function () {
  1336. var that = this;
  1337. const { graphicReasoning} = that.data;
  1338. //将计时器赋值给setInter
  1339. that.data.setInter = setInterval(
  1340. function () {
  1341. var numVal = that.data.times + 0.1;
  1342. that.setData({ times: numVal });
  1343. }
  1344. , 100);
  1345. },
  1346. /**
  1347. * 结束计时
  1348. */
  1349. endSetInter: function () {
  1350. var that = this;
  1351. clearInterval(that.data.setInter)
  1352. },
  1353. /**
  1354. * 页面跳转定时器
  1355. */
  1356. tenEndTimes: function () {
  1357. var that = this;
  1358. const { graphicReasoning, level, ageGroup,spaceImagination,executionFunctionality,visualSearch,workingMemory,mentalRotation,gameRespondentId} = that.data;
  1359. setTimeout(
  1360. function () {
  1361. that.redirectCtl({ url: 'xin_li_xuan_zhuan', method: { graphicReasoning,level:0, ageGroup,spaceImagination,executionFunctionality,visualSearch,workingMemory,mentalRotation,gameRespondentId} }, true)
  1362. }, 500
  1363. )
  1364. },
  1365. /**
  1366. * 答题情况保存
  1367. */
  1368. saveCase:function(str){
  1369. const postData = { fn: this.getPersonInfo, param: { ...arguments } }
  1370. const {level,times,gameRespondentId}=this.data
  1371. app.post('/api/game/v2/answerInfoSave', {gameRespondentId,moduleCode:3,questionCode:level,usedTime:Math.round(times*1000),answerResult:str+1}, 0, postData).then(res => {
  1372. })
  1373. },
  1374. })