// pages/shi_jue_suo_sou/shi_jue_suo_sou.js const { throttle } = require('../../utils/util.js') const app = getApp(); Page({ /** * 页面的初始数据 */ data: { isSjss:true, statusBar: app.globalData.statusBar, mentalRotation:0, graphicReasoning:0, spaceImagination:0, executionFunctionality:0, visualSearch:0, workingMemory:0, isAnswer:false, remainTime:0, isWay:20, times:0, level:0, nIndex:0, oneSelectL:'../../image/sjss_two1_title1.png', oneSelectT: '../../image/sjss_two1_title2.png', yesImg: '../../image/zheng_que.png', noImg: '../../image/cuo_wu.png', fourT: '../../image/the_first_pass_four_tittle1.png', fourL: '../../image/the_first_pass_four_tittle.png', isWhite:false, isOneImgShow: false, isTime:false, countDownNum:0, exerciseList:[ { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle.png', isAnswer: 1, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' } ], oneList: [ [ { img: '../../image/the_first_pass_four_tittle.png', isAnswer: 1, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle.png', isAnswer:1, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle.png', isAnswer: 1, status: '' }, ], [ { img: '../../image/the_first_pass_four_tittle.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 1, status: '' }, { img: '../../image/the_first_pass_four_tittle.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_first_pass_four_tittle.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle1.png', isAnswer: 1, status: '' }, { img: '../../image/the_first_pass_four_tittle.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle.png', isAnswer: 0, status: '' }, { img: '../../image/the_first_pass_four_tittle.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer:0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer:0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer:0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 1, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer:1, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, ] ], twoList:[ [ { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 1, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer:1, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer:1, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, ] ], threeList: [ [ { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_3.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 1, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_4.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_2.png', isAnswer: 0, status: '' }, { img: '../../image/the_second_pass_four_as_green_1.png', isAnswer: 1, status: '' }, ], ], fourList: [ [ { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer:1, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer:1, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, ], ], fiveList: [ [ { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 1, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_P.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer:1, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, ], [ { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_S.png', isAnswer:1, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, { img: '../../image/the_fourth_pass_four_as_E.png', isAnswer: 0, status: '' }, ] ], sjssList:[ { score:0 }, { score: 0 }, { score: 0 }, { score: 0 }, { score: 0 }, { score: 0 }, { score: 0 }, { score: 0 }, { score: 0 }, { score: 0 } ] }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { console.log(options) this.setData(options) this.randomNumber() }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生命周期函数--监听页面显示 */ onShow: function () { }, /** * 生命周期函数--监听页面隐藏 */ onHide: function () { }, /** * 生命周期函数--监听页面卸载 */ onUnload: function () { }, /** * 页面相关事件处理函数--监听用户下拉动作 */ onPullDownRefresh: function () { }, /** * 页面上拉触底事件的处理函数 */ onReachBottom: function () { }, /** * 用户点击右上角分享 */ onShareAppMessage: function () { }, /** * 底部导航跳转 */ redirectCtl: app.redirectCtl, /** * 返回上一级页面 */ blockCtl: function () { this.redirectCtl({ url: 'me', method: {} }, true) this.endSetInter(); }, /** * 开始答题 */ actionAnswer: function () { const { isSjss } = this.data; var that=this; // this.setCountDown() this.setData({ isSjss: false }) setTimeout(function () { that.setData({ isOneImgShow:true}) }, 500) }, /** * 随机数 */ randomNumber:function(){ this.setData({ role0: Math.floor(Math.random() * 360), role1: Math.floor(Math.random() * 360), role2: Math.floor(Math.random() * 360), role3: Math.floor(Math.random() * 360), role4: Math.floor(Math.random() * 360), role5: Math.floor(Math.random() * 360), role6: Math.floor(Math.random() * 360), role7: Math.floor(Math.random() * 360) }) }, /** * 积分规则处理 */ integraeRule: function (bindex,ts) { const { ageGroup, times} = this.data; var that = this; var temp={}; that.saveCase(ts) // console.log(bindex) if (ts==1){ if(bindex<=10){ if (01.7){ temp[`sjssList[${bindex}].score`] = 3; } }else if (9<=ageGroup&&ageGroup <= 12) { if(01.5){ temp[`sjssList[${bindex}].score`] = 3; } }else if (13<=ageGroup&&ageGroup <= 15) { if(01.2){ temp[`sjssList[${bindex}].score`] = 3; } }else if (16<=ageGroup&&ageGroup <= 35) { if(01.1){ temp[`sjssList[${bindex}].score`] =3; } }else if (36<=ageGroup&&ageGroup <= 49) { if(01.2){ temp[`sjssList[${bindex}].score`] = 3; } }else if (50<=ageGroup&&ageGroup <= 60) { if(01.5){ temp[`sjssList[${bindex}].score`] = 3; } }else if (ageGroup>60) { if(01.7){ temp[`sjssList[${bindex}].score`] = 3; } } }else{ if (01.8){ temp[`sjssList[${bindex}].score`] = 3; } }else if (9<=ageGroup&&ageGroup <= 12) { if(01.6){ temp[`sjssList[${bindex}].score`] = 3; } }else if (13<=ageGroup&&ageGroup <= 15) { if(01.4){ temp[`sjssList[${bindex}].score`] = 3; } }else if (16<=ageGroup&&ageGroup <= 35) { if(01.3){ temp[`sjssList[${bindex}].score`] =3; } }else if (36<=ageGroup&&ageGroup <= 49) { if(01.4){ temp[`sjssList[${bindex}].score`] = 3; } }else if (50<=ageGroup&&ageGroup <= 60) { if(01.6){ temp[`sjssList[${bindex}].score`] = 3; } }else if (ageGroup>60) { if(01.8){ temp[`sjssList[${bindex}].score`] = 3; } } } setTimeout( function () { that.endSetInter(); if (bindex == 19) { that.tenEndTimes() } // that.startSetInter() }, 150) }else{ temp[`sjssList[${bindex}].score`] = 0 } that.setData(temp) // console.log(temp) }, /** * 开始计时 */ startSetInter: function () { let time =10; var that = this; let { times, nIndex,isTime } = this.data; var setTime = this.data.times + 0.01 that.setData({ times: setTime }) // console.log(setTime) that.data.setInter = setTimeout(this.startSetInter, time); if (setTime>2) { var getTime=Math.round(setTime) that.endSetInter(); if (nIndex+1 == 20) { that.tenEndTimes() }else{ that.randomNumber() that.setData({ nIndex: nIndex + 1, times: 0,isWhite:true,isOneImgShow:false}) if(getTime==2){ that.hiddenShow() } } } }, /** * 结束计时 */ endSetInter: function () { var that = this; clearTimeout(that.data.setInter) that.setData({ times:0}) }, /** * 页面跳转定时器 */ tenEndTimes: function () { var that = this; const { graphicReasoning, level, ageGroup,spaceImagination,executionFunctionality,visualSearch,workingMemory,mentalRotation,sjssList,gameRespondentId} = that.data; var allScore = 0 for (var i in sjssList) { allScore += sjssList[i].score } console.log(sjssList) setTimeout( function () { that.redirectCtl({ url: 'gong_zuo_ji_yi', method: { graphicReasoning, level:0, ageGroup,spaceImagination,executionFunctionality,visualSearch:(Number(visualSearch)+allScore),workingMemory,mentalRotation,gameRespondentId} }, true) }, 500) }, /** * 练习关选择答案 */ exerciseSelectItems:throttle(function(e){ const {mindex} = e.currentTarget.dataset; const { exerciseList, times} = this.data; var that = this; var temp = {}; for (var i in exerciseList) { temp[`exerciseList[${i}].status`] = ''; } if (exerciseList[mindex].isAnswer == 1) { that.setData({ isYes: true }) } else { that.setData({ isYes: false }) } temp[`exerciseList[${mindex}].status`] = exerciseList[mindex].status == '' ? 'active' : '' that.setData(temp); that.setData({ isAnswer: true}) setTimeout( function () { that.randomNumber() that.setData({ isWhite:true,isOneImgShow:false,level:1,isAnswer:false,times: 0}) that.hiddenShow() }, 500) },1200), /** * 选择答案 */ selectItems:throttle(function(e){ const {lindex, mindex} = e.currentTarget.dataset; const { oneList, times} = this.data; var that = this; var temp = {}; // console.log('xiao') for (var i in oneList[lindex]) { temp[`oneList[${lindex}][${i}].status`] = ''; } temp[`oneList[${lindex}][${mindex}].status`]='active'; this.setData(temp); if (oneList[lindex][mindex].isAnswer == 1) { that.setData({ isYes: true,isAnswer: true }) that.integraeRule(lindex, 1) that.endSetInter(); } else { that.setData({ isYes: false,isAnswer: true }) that.integraeRule(lindex, 0) that.endSetInter(); } setTimeout( function () { that.endSetInter(); if(lindex+1==20){ that.tenEndTimes() }else{ that.randomNumber() that.setData({ isWhite:true,isOneImgShow:false,nIndex:lindex+1,isAnswer:false,times: 0,isTime:true}) that.hiddenShow() // that.startSetInter() } }, 300) },1200), /** * 过渡页显示 */ hiddenShow:function(){ const {isWhite} = this.data; var that = this; setTimeout(function () { that.setData({ isWhite:false}) setTimeout(function () { that.setData({ isOneImgShow:true}) that.startSetInter() }, 500) }, 500) }, /** * 答题情况保存 */ saveCase:function(str){ const postData = { fn: this.saveCase, param: { ...arguments } } const {nIndex,times,gameRespondentId}=this.data // console.log(times) app.post('/api/game/v2/answerInfoSave', {gameRespondentId,moduleCode:2,questionCode:nIndex+1,usedTime:Math.round(times*1000),answerResult:str+1}, 0, postData).then(res => { }) }, })