| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-test-test"],{"0425":function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{time:{type:Number,default:0},autoStart:{type:Boolean,default:!1}},data:function(){return{timer:null,timeData:{remain:0,day:0,hour:0,minute:0,second:0}}},watch:{time:function(){this.reset()}},methods:{updateTimeData:function(){var t=this.timeData.remain;this.timeData.day=Math.floor(t/1e3/60/60/24),this.timeData.hour=Math.floor(t/1e3/60/60%24),this.timeData.minute=Math.floor(t/1e3/60%60),this.timeData.second=Math.floor(t/1e3%60)},startTimer:function(){var t=this;this.timer&&clearInterval(this.timer),this.timeData.remain<1e3||(this.timer=setInterval((function(){t.timeData.remain-=1e3,t.updateTimeData(),t.timeData.remain<1e3&&(t.pause(),t.$emit("finish"))}),1e3))},reset:function(){this.timeData.remain=this.time,this.updateTimeData(),this.autoStart&&this.start()},pause:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},start:function(){this.timer||this.startTimer()}},mounted:function(){this.reset()},beforeDestroy:function(){this.pause()}};e.default=n},1906:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAADrElEQVRYR82Y0WscVRSHvzOzsT4E3U1LyGPFCopNp0ERxRbuSsT2LQ8VFAUtWJqCpQiKf4A+BgxUaB5aDBhQkII+VbB1R7qiiCa7TaSKEX0Qmka7swUfWjeZI3fYWTfrJruzO4HM07Jz72++Oeeee353hIRXdfGZB1kPx9XhECH7VRgRGLEyCiuirOCwJCFFXOdydvTLX5M8QroZXCiYzMEhXlKYFHiymznxGFWKjsj0QkU/y+f9tU5zOwLdLuWfC9H3EfZ1EtvqvsJPDvJ61itc2WrcpkCrP5rBgRpnEV7tB6R1rioztwPeeCDv32mn2xZo9TszMnAPlxAOpgnT0FKKtX94fvgJf6VV/39AFiazi4LAw9sCUxe1KVy7S74VagNQPU1Xe4jMEsoIwp5EL6EUqwHPNqdvA1BQMh8kXTMCH2c9/8Uozbu4DmSTQAnMZD3/VDynARRVk+jnScTs2DDkxO4x/7z9HZTNVeBQUg1BxuPqi4CifSbH9Z5KO+R4bsyfjYCumQKKSQpk11O5wqjdpyKgoGxeASLRxFcKQPaZghzLeoWLEVClbL5JugM3wFMCAoo5zz8sqz+YfQMZfkkcmXhCekDU1nhIqiVzUoWZnQAkyqQE18yHKC/vBCCEOQnKZgH6aBEppgwoSaVsbsR+pqcopQv0h42Q9gTSZlHfmjfHXJd3tI8+2DeQwtSQ57/V/FLBgpnA5Uwvm6RUy+aG1i1oT5FS1hDeHXDcmcHRKzebNf6cN49nXN5GmUDIdNIXa4H7XtT/2Yk7AnMuMnWfV/i5JWJ7cTgDvAYMbgFW6r/s26krn+LIdO5A4asWsKy4nNSQN9taFVv2lZKZFOFcp3D2eP97UaYWAi42G/xbZXPEgUutmqqc6r91dEOq/I4wXctwYfhR/+/NmnnUOurdvicf0w3LhjFKVWEpauQti1zg26znPxV3+xcEPkr8gBQnrIcc3zPmzzYMmjfE4nYb+035leVSwCMNg2YH/jVvxl2XL1J86a6lQji62/Mj+7zB5FfL5pw9LnetlMJAgfNZzz8RS20A+q1g7s0ORVFKbNR7ZCvVMhy2ldcWyP65ow6KMWX9jPXJNkaqVLvL0a6O0jGUTV9uiPdSX1PKbG2A081pak53x88xtvocl7N9bwnKciicjqtpszXXEchOtAfJA/cz4ViPk3zBF9dDLixWmUvlg1XrmwQLZq8KR8ThaZT91v7Gfsr6GftZD2FJQ75eW+fy8GP+cpIK/BcUDIzmngs88AAAAABJRU5ErkJggg=="},4032:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[t._t("default",null,{time:t.time,remain:t.timeData.remain,day:t.timeData.day,hour:t.timeData.hour,minute:t.timeData.minute,second:t.timeData.second})],2)},s=[]},"482f":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-page-body[data-v-8b41f33c]{background-color:#f7f7f7}#top-box[data-v-8b41f33c]{padding:%?0?% %?30?%}#top-box .process-box[data-v-8b41f33c]{width:100%;overflow:hidden}#top-box .process-box .middle[data-v-8b41f33c]{width:63%}#top-box .process-box .process-out[data-v-8b41f33c]{width:100%;position:relative}#top-box .process-box .process-out uni-image[data-v-8b41f33c]{width:%?30?%;position:absolute;right:%?0?%;top:%?-8?%;height:%?30?%}#top-box .process-box .text[data-v-8b41f33c],\r\n#top-box .process-box .middle[data-v-8b41f33c],\r\n#top-box .process-box .last[data-v-8b41f33c]{float:left;height:%?46?%;line-height:%?46?%}#top-box .process-box .text[data-v-8b41f33c]{width:17%}#top-box .process-box .text span[data-v-8b41f33c]:nth-child(1){color:#efd140;font-size:%?40?%}#top-box .process-box .text span[data-v-8b41f33c]:nth-child(2){color:#faea9c;font-size:%?30?%}#top-box .process-box uni-view[data-v-8b41f33c]{display:inline-block}#top-box .process-box uni-view[data-v-8b41f33c]:nth-child(3){width:20%;text-align:right;color:#efd140;overflow:hidden}#top-box .process-box uni-view:nth-child(3) uni-view[data-v-8b41f33c]{float:right;height:%?46?%;line-height:%?46?%}#top-box .process-box uni-view:nth-child(3) uni-image[data-v-8b41f33c]{width:%?30?%;float:right;margin-top:%?8?%;margin-right:%?10?%;height:%?30?%}.header .process-box .process-out[data-v-8b41f33c]{position:relative;width:%?500?%;height:%?14?%;border-radius:%?14?%;background:#eee}.header .process-box .process-in[data-v-8b41f33c]{height:%?14?%;width:10%;background:#efd140;position:absolute;border-radius:10px}.header .process-box .text span[data-v-8b41f33c]:nth-child(1){font-size:%?40?%}.main-container[data-v-8b41f33c]{margin:0 auto}.main-top[data-v-8b41f33c]{padding:%?20?% %?30?%;font-size:%?32?%;border-radius:%?8?%;margin:%?20?% %?20?% 0 %?20?%}.main-top uni-image[data-v-8b41f33c]{max-width:100%;max-height:%?420?%}.main-top uni-view[data-v-8b41f33c]{margin-bottom:%?20?%;color:#3a3a3a;font-weight:600}.main-top uni-view[data-v-8b41f33c]:first-child{font-size:%?34?%}.main-top .text uni-view[data-v-8b41f33c]{font-weight:500!important}.choseIndex[data-v-8b41f33c]{background-color:#efd140}.cu-bar uni-image[data-v-8b41f33c]{max-height:%?200?%}.cu-bar .action[data-v-8b41f33c]:first-child{width:20%;text-align:center}.cu-bar .action[data-v-8b41f33c]:last-child{width:80%;text-align:center;margin:0}.cu-bar .action:last-child uni-view + uni-view[data-v-8b41f33c]{margin-left:5%}.cu-bar .action:last-child uni-view[data-v-8b41f33c]{margin-right:5%}.cu-form-group[data-v-8b41f33c]{-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;padding:%?0?%;border-radius:%?8?%;margin:%?20?% %?20?% %?0?% %?20?%}.cu-form-group .title[data-v-8b41f33c]{padding-left:%?60?%;padding-right:%?60?%}.cu-form-group .title a[data-v-8b41f33c]{margin-left:%?6?%}.cu-form-group .title-img[data-v-8b41f33c]{overflow:hidden;padding-left:%?60?%;padding-right:%?60?%}.cu-form-group .title-img span[data-v-8b41f33c]{display:inline-block;float:left;margin-left:%?6?%}.cu-form-group .title-img a[data-v-8b41f33c]{display:inline-block;float:left;height:%?60?%;line-height:%?60?%}.cu-form-group .title-img uni-image[data-v-8b41f33c]{max-width:%?60?%;max-height:%?60?%}.cu-form-group + .cu-form-group[data-v-8b41f33c]{border-top:none}.cu-bar-title[data-v-8b41f33c]{min-height:%?50?%}.cu-list.menu > .cu-item-error[data-v-8b41f33c]{-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}#foot-box[data-v-8b41f33c]{position:fixed;bottom:0;width:100%;height:%?120?%;background:#fff;box-shadow:%?0?% %?-2?% %?8?% rgba(0,0,0,.08)}#foot-box uni-image[data-v-8b41f33c]{width:%?54?%;height:%?54?%}#foot-box .text[data-v-8b41f33c]{text-align:center;font-size:%?20?%;font-weight:400;color:#efd140}#foot-box .btn[data-v-8b41f33c]{width:45%;height:%?80?%;line-height:%?80?%;text-align:center;color:#fff;background:#d8d8d8;border-radius:%?40?%}#foot-box .btns[data-v-8b41f33c]{width:45%;height:%?80?%;line-height:%?80?%;text-align:center;color:#292929;background:#efd140;border-radius:%?40?%}#foot-box .btn + .btns[data-v-8b41f33c]{margin-left:%?50?%}#foot-box .bt[data-v-8b41f33c]{width:90%;height:%?80?%;line-height:%?80?%;margin:%?20?% auto;text-align:center;color:#292929;background:#efd140;border-radius:%?40?%}#foot-box .actions[data-v-8b41f33c]{width:100%;margin:auto}.uni-pop[data-v-8b41f33c]{width:100vw;height:100vh;position:fixed;left:0;top:0;bottom:0;right:0;background-color:rgba(0,0,0,.3)}.uni-pop .uni-pops[data-v-8b41f33c]{position:absolute;width:%?500?%;overflow:hidden;height:%?200?%;background-color:#fff;-webkit-border-radius:%?20?%;border-radius:%?20?%;left:calc((100vw - %?500?%)/2);top:calc((100vh - %?200?%)/2);-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-flex-wrap:wrap;flex-wrap:wrap;color:#484848;z-index:100}.uni-pop .uni-pops uni-view[data-v-8b41f33c]{font-size:%?28?%;height:%?100?%;line-height:%?100?%;text-align:center}.uni-pop .uni-pops uni-view[data-v-8b41f33c]:nth-child(1){border-bottom:%?2?% solid #eee}.uni-pop .uni-pops uni-view[data-v-8b41f33c]:nth-child(2){color:#efd140}uni-swiper[data-v-8b41f33c]{min-height:100vh}uni-swiper-item[data-v-8b41f33c]{overflow:scroll}body.?%PAGE?%[data-v-8b41f33c]{background-color:#f7f7f7}',""]),t.exports=e},"5e99":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAA2CAYAAACMRWrdAAADzElEQVRoQ+2ZX4hUZRjGn/fMzKpbsnNmNYm2iyIwXNYz/gkp3Z1jXZSyCAaWN14JIoggXhooaHSXeFV5JRQYbt0siRSFnNnF9CLaOVMa4lWRwirOnNFVcXfmPHFEMXPd7zt/pik5c/s+7/s+v+/95vz5juAp/clTyoUU7P822XRi6cT+IyuQbsU4g+AIMo2lpUMEhkF8nbfKh0TAODVVuW2fGH9a1V3PLjwhguEHZkiOmLlr26T/wrTKYNR4W8Fuum8812TuJERee9wgx+HLJnOF40U1P1de28BuuGuXtpA9BcjLTzJA8oJ0ZTaay07/njRcW8BqE4NrJZMZBdGrYXgS9DeYxbEJDa22JHGw+i+lzfTluADzdV0QmCKwpddyvtXNUekSBatXSrshOAKIoWr8WJxoAtxhFsvHQufOkpAIGAnxqkOHAWNPPFNBJXxoLi/vj1cH8Z/ueemVeY07L3xBypa4Zh7m8/N8TbbLeqcZtWasiTV+fL3Q6u4aFZF1UQ08MY/8Pp+Td6XfmYpSOzKY5w695ENOCeTVKI31cjjRbDWHF688c0VP/1AVCcz72V7NDE4CWBK2YXg9//DZ3NhbPHM+TG5osFq1tAGUrwR4JkyjmFoPPjabKxxHt04oMM8d2k4YnwHI6jZITsdpMbgtPzA2olNTG6xRGXzbl0xiN1Adc7NomgYw2GM551T52mB11/4BwFuqgu2OB28GhWL5fVUfbbBapXRbRBaoCrY7TuJyoej0qfpogZEwvKrdUhX7N+IEbhUs51lVrxQsnZhqj8SMp1tRdwHrrh3pVEnASySPGjmOywy9li/P05B3RIydAPK6/f+mmzItZ6EqT/fiIV7V9lXFHo2TAjnck726b7bTqMlza5Z0LZh/HJA3w9VFh8HIA2axfHAu06Sd9ar8LiRcomBh72Pn88udAZ1D0eD1h5SLEMnpTK6jFw+CuwpW+RMdo4Gm7pZGAdmko08aLNR/jEbLKgyMV3WM3gOrlPZC5GNNfaJbMRSYD7zYazl/ahpFzbW3CvClpj5RsFD/sXk0+rqLpy9rGsX1ytB7hhgndPRJb8UULFj1dGL39166FYHga2Fy72PBwtZc+47uh4YW7/YtKp5ty8UD4FXTKiuP/bSeFQMwz7U/JRA8uCp+9I3s9OKe/rM1lfJBvFaxh0XwjY6e4EcFq/yBSqsNdu9G+us6CzNZc66iLd+fXLRq7DdV43/GG+76Nb7POc9UfJm5pntwGgosrNlO6lOwTq5+lN7pxKKsWidz0ol1cvWj9E4nFmXVOpnzFyA5q0bpLIgbAAAAAElFTkSuQmCC"},7147:function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getindexnav=r,e.gettextList=u,e.getquestionList=d,e.getquestionresult=h,e.getpublicread=p,e.gethotname=v,e.postorder=m,e.getorderResult=x,e.getorderList=y,i("96cf");var a=n(i("1da1")),s=n(i("5511"));function r(t){return o.apply(this,arguments)}function o(){return o=(0,a.default)(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,s.default.get("/test/index/nav",e);case 2:return i=t.sent,t.abrupt("return",i);case 4:case"end":return t.stop()}}),t)}))),o.apply(this,arguments)}function u(t){return c.apply(this,arguments)}function c(){return c=(0,a.default)(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,s.default.get("/test/index/name",e);case 2:return i=t.sent,t.abrupt("return",i);case 4:case"end":return t.stop()}}),t)}))),c.apply(this,arguments)}function d(t){return l.apply(this,arguments)}function l(){return l=(0,a.default)(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,s.default.get("/test/index/list",e);case 2:return i=t.sent,t.abrupt("return",i);case 4:case"end":return t.stop()}}),t)}))),l.apply(this,arguments)}function h(t){return f.apply(this,arguments)}function f(){return f=(0,a.default)(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,s.default.get("/test/index/result",e);case 2:return i=t.sent,t.abrupt("return",i);case 4:case"end":return t.stop()}}),t)}))),f.apply(this,arguments)}function p(t){return b.apply(this,arguments)}function b(){return b=(0,a.default)(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,s.default.get("/test/public/read",e);case 2:return i=t.sent,t.abrupt("return",i);case 4:case"end":return t.stop()}}),t)}))),b.apply(this,arguments)}function v(t){return g.apply(this,arguments)}function g(){return g=(0,a.default)(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,s.default.get("/test/index/hot_name",e);case 2:return i=t.sent,t.abrupt("return",i);case 4:case"end":return t.stop()}}),t)}))),g.apply(this,arguments)}function m(t){return w.apply(this,arguments)}function w(){return w=(0,a.default)(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,s.default.post("/test/order/add",e);case 2:return i=t.sent,t.abrupt("return",i);case 4:case"end":return t.stop()}}),t)}))),w.apply(this,arguments)}function x(t){return A.apply(this,arguments)}function A(){return A=(0,a.default)(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,s.default.get("/test/order/order_result",e);case 2:return i=t.sent,t.abrupt("return",i);case 4:case"end":return t.stop()}}),t)}))),A.apply(this,arguments)}function y(t){return j.apply(this,arguments)}function j(){return j=(0,a.default)(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,s.default.get("/test/order/order_list",e);case 2:return i=t.sent,t.abrupt("return",i);case 4:case"end":return t.stop()}}),t)}))),j.apply(this,arguments)}},a69a:function(t,e,i){"use strict";i("ac1f"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("7147"),a={data:function(){return{is_pop:!1,url:"",name_id:"",isLast:!1,up:!1,next:!1,time:27e5,finished:0,allscoreList:[],userFavor:!1,subjectIndex:0,autoRadioNext:!0,swiperHeight:"800px",subjectList:[],bookname:{},class_img:{width:"100%",height:"280upx"}}},created:function(){for(var t=0;t<this.subjectList.length;t++)this.allscoreList.push(0)},mounted:function(){this.getheight()},onLoad:function(t){var e=this;this.name_id=t.id,t.time&&t.time>0&&(this.time=60*t.time*1e3),(0,n.getquestionList)({name_id:t.id}).then((function(t){if(1==t.code){e.subjectList=t.data[1].list,e.bookname=t.data[0].test_name;for(var i=0;i<e.subjectList.length;i++)e.subjectList[i].userAnswer=""}}))},methods:{getheight:function(){var t=this;setTimeout((function(){var e=uni.createSelectorQuery().in(t);e.select(".qs-content").boundingClientRect((function(e){t.swiperHeight=e.height+200+"px",console.log("data.height",e)})).exec()}),1e3)},refer:function(){this.is_pop=!1,location.reload()},onFinish:function(){for(var t=0;t<this.subjectList.length;t++)this.subjectList.length-t!=1||(""==this.subjectList[t].userAnswer?(this.is_pop=!0,uni.setStorageSync("subjectList",this.subjectList)):this.submit())},toHome:function(){uni.navigateTo({url:"../index/index"})},submit:function(){for(var t=this,e=0,i=[],a=0;a<this.allscoreList.length;a++)e+=this.allscoreList[a];for(a=0;a<this.subjectList.length;a++)i.push(this.subjectList[a].userAnswer);var s=uni.getStorageSync("Ip"),r=uni.getStorageSync("source"),o=(JSON.stringify(i),{});o=""==r?{data:i,ip:s,name_id:this.name_id,total_score:e}:{data:i,ip:s,name_id:this.name_id,total_score:e,source:r},(0,n.postorder)(o).then((function(i){1==i.code&&(uni.setStorageSync("oid",i.data.oid),0==t.bookname.price?(t.$store.commit("user/SET_OID",i.data.oid),uni.navigateTo({url:"/pages/result/result"})):uni.navigateTo({url:"/pages/score/score?score="+e+"&name_id="+t.name_id+"&orderId="+i.data.oid+"&book_name="+i.data.name+"&price="+i.data.price}))}))},getImageInfo:function(){var t=this;uni.getImageInfo({src:this.subjectList[this.subjectIndex].img,success:function(e){t.class_img.width=e.width+"px",t.class_img.height=e.height+"px"}})},SwiperChange:function(t){var e=t.target.current;this.up=0!=e,void 0!=e&&(this.subjectIndex=e,""==this.subjectList[this.subjectIndex].userAnswer?this.next=!1:this.next=!0),this.getImageInfo(),this.getheight()},RadioboxChange:function(t){this.subjectList[this.subjectIndex].userAnswer=t.key,this.allscoreList[this.subjectIndex]=t.score,this.autoRadioNext&&this.subjectIndex<this.subjectList.length-1?(this.subjectIndex+=1,this.finished<this.subjectList.length-1&&this.finished++,0==this.subjectIndex?this.up=!1:this.up=!0):(this.finished<=this.subjectList.length-1&&this.finished++,""==this.subjectList[this.subjectIndex].userAnswer?this.next=!1:this.next=!0,this.isLast=!0,console.log("最后一页"))},CheckboxChange:function(t){var e=this.subjectList[this.subjectIndex].optionList,i=t.detail.value;this.subjectList[this.subjectIndex].userAnswer="";for(var n=0,a=e.length;n<a;++n)for(var s=0,r=i.length;s<r;++s)if(e[n].id==i[s]){this.subjectList[this.subjectIndex].userAnswer+=e[n].id;break}},textInput:function(t){this.subjectList[this.subjectIndex].userAnswer=t.detail.value},MoveSubject:function(t){-1===t&&0!=this.subjectIndex?(this.subjectIndex-=1,""==this.subjectList[this.subjectIndex].userAnswer?this.next=!1:this.next=!0):-1===t&&0==this.subjectIndex?console.log("已经是第一道题"):1===t&&this.subjectIndex<this.subjectList.length-1?""==this.subjectList[this.subjectIndex].userAnswer?console.log("本页题目还未完成"):(this.subjectIndex+=1,""==this.subjectList[this.subjectIndex].userAnswer?this.next=!1:this.next=!0):1===t&&this.subjectIndex==this.subjectList.length-1&&(""==this.subjectList[this.subjectIndex].userAnswer?console.log("本页题目还未完成"):console.log("提交答案")),this.getImageInfo(),this.getheight()}}};e.default=a},ab50:function(t,e,i){"use strict";i.r(e);var n=i("ed2d"),a=i("f86d");for(var s in a)"default"!==s&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("d430");var r,o=i("f0c5"),u=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"8b41f33c",null,!1,n["a"],r);e["default"]=u.exports},d430:function(t,e,i){"use strict";var n=i("d6e2"),a=i.n(n);a.a},d6e2:function(t,e,i){var n=i("482f");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("7b63bd82",n,!0,{sourceMap:!1,shadowMode:!1})},e6dd:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAADAklEQVRIS7WWS0wTYRDH/7NLWywKBZUQFYkPCD4p0Qgawi41GuEiidEDejKRxLMSiQlqPCga41kPcvBxFk88EktbSVSCoS0aFUEJBgMIbItBHqU7psXyKNtSxH63Zv4zv5nptzMfYZkz9E7eqRPVkyDhBIG3qqBNARcB/INBfSqrjaKYUG/aZ+2JFooiGZWOI2YSdLcYVLpcMgE7gRtYpaup+Tanln4JiBmC1y3fZKAagBgLZIHGD8ZtU5ftBp2Bf6HvItCIS94igJ8BVLxCQJicW3QJVLF2j20gZJgD8YfdesW30U5EhauDzHoT+M3P/n45u6x7avb33zPqlB4SUeX/gIRiMKsP0syOi3MgxVmcD6J2gATNPzIhDYYNp6BLPgxBvxmAH+r0AHzeVkyNPAfPKBHyYxXMB1PNjo5gRYpLegmQRUutSymBMbMKJKzRDMbqBH731cI35tC2A01pebYTNNwu54o6fIwEScq6FlM3x3uvR4T5fdhFHnfxFWahNjwaJaQhOfdpxErC9YHKxj6dA8+MLkmMSK0mxSm3gCCHWxMzLiAxvSKmakKiycEnmBys0/BhKykuqQeg7eHWdTl1EBO3rQjkn/yGX13ntUBfA6BxgIzh1pS9TSBBvyJQoH3e92VLfZjHSHFKXhAlxx/kkj4DlBPn1nWRxy01MdPxeF4GIm6mUZdURaC7cb3eQNUyH6wFSVk1MV2I8d4a+MZaNbXBDzY4gpySFUQl2tPBAmPm5egj6Psd+Lx2TQiBraY8+9EgaNhVVCBCfA2Q5sYNTAnD+nLoUoog6DOCAeeHar3mNJilMgusFqaYX7XNBVZc8j0Al2LqU6wi5vupZnsw5vzi49Oixz1kXf12DWXBDtN+u4VodqUvatVQm5yhN6CegYJYk9bSEfB2egrl6Yc0VvlcHl9KDZ6JiUdgnP03GD82GY2VlN0QXOGhE/G55emUjrEaeAlpL0SNgdZCzLUms6M5QpXR8/Z0Wnb4/TPlQoQHJFht9PmFF+kHbN3RIv0BhUNFXtekH4wAAAAASUVORK5CYII="},ed2d:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return n}));var n={countdownTimer:i("ff70").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"main-page"},[n("v-uni-view",{staticClass:"header cu-bar bg-white solid-bottom",attrs:{id:"top-box"}},[n("v-uni-view",{staticClass:"process-box"},[n("v-uni-view",{staticClass:"text"},[n("span",[t._v(t._s(t.subjectIndex+1)+"/")]),n("span",[t._v(t._s(t.subjectList.length))])]),n("v-uni-view",{staticClass:"middle"},[n("v-uni-view",{staticClass:"process-out"},[n("v-uni-view",{staticClass:"process-in",style:{width:t.finished/t.subjectList.length*100+"%"}},[n("v-uni-image",{attrs:{src:i("e6dd")}})],1)],1)],1),n("v-uni-view",{staticClass:"last"},[n("countdown-timer",{ref:"countdown",attrs:{time:t.time,autoStart:!0},on:{finish:function(e){arguments[0]=e=t.$handleEvent(e),t.onFinish.apply(void 0,arguments)}},scopedSlots:t._u([{key:"default",fn:function(e){e.day,e.hour;var i=e.minute,n=e.second;e.remain,e.time;return[t._v(t._s(i)+":"+t._s(n))]}}])}),n("v-uni-image",{attrs:{src:i("1906")}})],1)],1)],1),n("v-uni-form",[n("v-uni-view",{staticClass:"swiper-no-swiping"},[n("v-uni-swiper",{staticClass:"swiper-box",style:{height:t.swiperHeight},attrs:{current:t.subjectIndex,"disable-touch":!0},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.SwiperChange.apply(void 0,arguments)}}},t._l(t.subjectList,(function(e,i){return n("v-uni-swiper-item",[n("v-uni-scroll-view",{style:{height:t.swiperHeight},attrs:{"scroll-y":!0}},[i-t.subjectIndex>=-1&&i-t.subjectIndex<=1?n("v-uni-view",{staticClass:"qs-content"},[n("v-uni-view",{staticClass:"main-top bg-white solid-bottom"},[n("v-uni-view",{staticClass:"action text-black"},[t._v(t._s(t.subjectIndex+1)+"."),n("span",{domProps:{innerHTML:t._s(e.title)}})]),""!==e.img?n("v-uni-view",{staticClass:"action image"},[n("v-uni-image",{style:t.class_img,attrs:{src:e.img,mode:"aspectFit"}})],1):t._e()],1),n("v-uni-view",[1===e.type||2===e.type?n("v-uni-view",{staticClass:"block"},t._l(e.answer,(function(i){return n("v-uni-view",{staticClass:"cu-form-group",class:[e.userAnswer.indexOf(i.key)>-1?"choseIndex":""],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.RadioboxChange(i)}}},[""!==i.text?n("v-uni-view",{staticClass:"title"},[t._v(t._s(i.key)+"."),n("a",[t._v(t._s(i.text))])]):n("v-uni-view",{staticClass:"title-img"},[n("a",[t._v(t._s(i.key)+".")]),n("span",[n("v-uni-image",{attrs:{src:i.img,mode:"aspectFit"}})],1)])],1)})),1):3===e.type?n("v-uni-checkbox-group",{staticClass:"block",on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.CheckboxChange.apply(void 0,arguments)}}},t._l(e.optionList,(function(i){return n("v-uni-view",{staticClass:"cu-form-group"},[n("v-uni-checkbox",{class:e.userAnswer.indexOf(i.key)>-1?"checked":"",attrs:{value:i.key,checked:e.userAnswer.indexOf(i.key)>-1}}),n("v-uni-view",{staticClass:"title text-black"},[t._v(t._s(i.key)+"."+t._s(i.content))])],1)})),1):4===e.type?n("v-uni-view",[n("v-uni-view",{staticClass:"cu-form-group solid-bottom"},[n("v-uni-view",{staticClass:"title text-black"},[t._v("答:")]),n("v-uni-input",{attrs:{placeholder:"文本输入框",name:"input"},on:{blur:function(e){arguments[0]=e=t.$handleEvent(e),t.textInput.apply(void 0,arguments)}},model:{value:e.userAnswer,callback:function(i){t.$set(e,"userAnswer",i)},expression:"subject.userAnswer"}})],1)],1):5===e.type?n("v-uni-view",[n("v-uni-view",{staticClass:"cu-bar cu-bar-title bg-white margin-top"},[n("v-uni-view",{staticClass:"action text-black"},[t._v("答:")])],1),n("v-uni-view",{staticClass:"cu-form-group solid margin"},[n("v-uni-textarea",{attrs:{maxlength:"-1",placeholder:"多行文本输入框"},on:{blur:function(e){arguments[0]=e=t.$handleEvent(e),t.textInput.apply(void 0,arguments)}},model:{value:e.userAnswer,callback:function(i){t.$set(e,"userAnswer",i)},expression:"subject.userAnswer"}})],1)],1):t._e()],1),n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.showAnswer,expression:"subject.showAnswer"}],staticClass:"margin-top solid-top"},[n("v-uni-view",{staticClass:"cu-bar"},[n("v-uni-view",{staticClass:"action text-grey"},[n("v-uni-text",[t._v("正确答案:")]),n("v-uni-text",{staticClass:"solid-bottom padding-left text-green"},[t._v(t._s(e.answer))])],1)],1),n("v-uni-view",{staticClass:"cu-bar cu-bar-title"},[n("v-uni-view",{staticClass:"action text-grey"},[n("v-uni-text",[t._v("解析:")])],1)],1),n("v-uni-view",{staticClass:"text-content padding text-grey"},[t._v(t._s(e.explain))])],1)],1):t._e()],1)],1)})),1)],1)],1),t.isLast?n("v-uni-view",{staticClass:"cu-bar bg-white shadow",attrs:{id:"foot-box"}},[n("v-uni-view",{staticClass:"actions",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"bt"},[t._v("查看报告")])],1)],1):n("v-uni-view",{staticClass:"cu-bar bg-white shadow",attrs:{id:"foot-box"}},[n("v-uni-view",{staticClass:"action",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toHome.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"cuIcon-cu-image"},[n("v-uni-image",{attrs:{src:i("5e99")}}),n("v-uni-view",{staticClass:"text"},[t._v("首页")])],1)],1),n("v-uni-view",{staticClass:"action"},[n("v-uni-view",{class:t.up?"btns":"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.MoveSubject(-1)}}},[t._v("上一题")]),n("v-uni-view",{class:t.next?"btns":"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.MoveSubject(1)}}},[t._v("下一题")])],1)],1),t.is_pop?n("v-uni-view",{staticClass:"uni-pop"},[n("v-uni-view",{staticClass:"uni-pops"},[n("v-uni-view",[t._v("时间已截止,请重新做答!")]),n("v-uni-view",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.refer.apply(void 0,arguments)}}},[t._v("确认")])],1)],1):t._e()],1)},s=[]},f86d:function(t,e,i){"use strict";i.r(e);var n=i("a69a"),a=i.n(n);for(var s in n)"default"!==s&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},fb0b:function(t,e,i){"use strict";i.r(e);var n=i("0425"),a=i.n(n);for(var s in n)"default"!==s&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},ff70:function(t,e,i){"use strict";i.r(e);var n=i("4032"),a=i("fb0b");for(var s in a)"default"!==s&&function(t){i.d(e,t,(function(){return a[t]}))}(s);var r,o=i("f0c5"),u=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],r);e["default"]=u.exports}}]);
|