1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
(self["webpackChunktuzhi"]=self["webpackChunktuzhi"]||[]).push([[7956],{77634:function(t,e,a){var o=a(44907);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.id,o,""]]),o.locals&&(t.exports=o.locals);var i=a(56).Z;i("90bbbea0",o,!0,{sourceMap:!1,shadowMode:!1})},32330:function(t,e,a){var o=a(46515);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.id,o,""]]),o.locals&&(t.exports=o.locals);var i=a(56).Z;i("68195f01",o,!0,{sourceMap:!1,shadowMode:!1})},86520:function(t,e,a){var o=a(73993);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.id,o,""]]),o.locals&&(t.exports=o.locals);var i=a(56).Z;i("2d78b9be",o,!0,{sourceMap:!1,shadowMode:!1})},74698:function(t,e,a){"use strict";a.d(e,{Z:function(){return c}});var o,i={uLoadingIcon:a(193).Z},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.loading?a("div",{class:["loading-page",{"loading-absolute":t.absolute}]},[a("div",[a("u-loading-icon"),a("div",{staticClass:"loading-tip"},[t._v(t._s(t.tip))])],1)]):t._e()},r=[],s={components:{},data:function(){return{show:!1}},props:{loading:{type:[Boolean],default:!1},tip:{type:[String],default:"加载中…"},absolute:{type:[Boolean],default:!1}},methods:{},watch:{}},d=s,l=(a(77634),a(69453)),u=(0,l.Z)(d,n,r,!1,null,"1bfd1361",null,!1,i,o),c=u.exports},193:function(t,e,a){"use strict";var o;a.d(e,{Z:function(){return p}});var i,n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.show?a("v-uni-view",{staticClass:"u-loading-icon",class:[t.vertical&&"u-loading-icon--vertical"],style:[t.$u.addStyle(t.customStyle)]},[t.webviewHide?t._e():a("v-uni-view",{ref:"ani",staticClass:"u-loading-icon__spinner",class:["u-loading-icon__spinner--"+t.mode],style:{color:t.color,width:t.$u.addUnit(t.size),height:t.$u.addUnit(t.size),borderTopColor:t.color,borderBottomColor:t.otherBorderColor,borderLeftColor:t.otherBorderColor,borderRightColor:t.otherBorderColor,"animation-duration":t.duration+"ms","animation-timing-function":"semicircle"===t.mode||"circle"===t.mode?t.timingFunction:""}},["spinner"===t.mode?t._l(t.array12,(function(t,e){return a("v-uni-view",{key:e,staticClass:"u-loading-icon__dot"})})):t._e()],2),t.text?a("v-uni-text",{staticClass:"u-loading-icon__text",style:{fontSize:t.$u.addUnit(t.textSize),color:t.textColor}},[t._v(t._s(t.text))]):t._e()],1):t._e()},r=[],s=(a(91038),a(78783),a(9653),{props:{show:{type:Boolean,default:uni.$u.props.loadingIcon.show},color:{type:String,default:uni.$u.props.loadingIcon.color},textColor:{type:String,default:uni.$u.props.loadingIcon.textColor},vertical:{type:Boolean,default:uni.$u.props.loadingIcon.vertical},mode:{type:String,default:uni.$u.props.loadingIcon.mode},size:{type:[String,Number],default:uni.$u.props.loadingIcon.size},textSize:{type:[String,Number],default:uni.$u.props.loadingIcon.textSize},text:{type:[String,Number],default:uni.$u.props.loadingIcon.text},timingFunction:{type:String,default:uni.$u.props.loadingIcon.timingFunction},duration:{type:[String,Number],default:uni.$u.props.loadingIcon.duration},inactiveColor:{type:String,default:uni.$u.props.loadingIcon.inactiveColor}}}),d={name:"u-loading-icon",mixins:[uni.$u.mpMixin,uni.$u.mixin,s],data:function(){return{array12:Array.from({length:12}),aniAngel:360,webviewHide:!1,loading:!1}},computed:{otherBorderColor:function(){var t=uni.$u.colorGradient(this.color,"#ffffff",100)[80];return"circle"===this.mode?this.inactiveColor?this.inactiveColor:t:"transparent"}},watch:{show:function(t){}},mounted:function(){this.init()},methods:{init:function(){setTimeout((function(){}),20)},addEventListenerToWebview:function(){var t=this,e=getCurrentPages(),a=e[e.length-1],o=a.$getAppWebview();o.addEventListener("hide",(function(){t.webviewHide=!0})),o.addEventListener("show",(function(){t.webviewHide=!1}))}}},l=d,u=(a(32330),a(69453)),c=(0,u.Z)(l,n,r,!1,null,"ed811d64",null,!1,o,i),p=c.exports},10674:function(t,e,a){"use strict";a.r(e),a.d(e,{default:function(){return g}});var o,i,n={tzLoadingPage:a(74698).Z,tzBox:a(26720).Z,tzDivider:a(20089).Z,tzButton:a(93780).Z,tzTitle:a(57592).Z,tzTabBar:a(25022).Z,tzFooter:a(93135).Z},r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("tz-loading-page",{attrs:{tip:"正在加载",loading:t.loading}}),a("tz-box",[1==t.data.test.result_show_type?a("div",{staticClass:"result-box"},[a("div",{staticClass:"result-val"},[a("div",{staticClass:"result-name"},[t._v(t._s(0==t.data.grade_status?"考试结果":0==t.data.test.pass_score_type?"你的分数":"考试结果"))]),a("div",{staticClass:"result-val-num"},[0==t.data.grade_status?[t._v("正在批改中")]:0==t.data.test.pass_score_type?[t._v(t._s(t.data.user_score)),a("span",{staticClass:"result-val-unit"},[t._v("分")])]:[t._v(t._s(t.data.user_score>t.data.test.pass_score_val?"通过":"未通过"))]],2)])]):t._e(),a("div",{staticClass:"test-property-box"},[a("div",{staticClass:"test-property-item"},[a("div",{staticClass:"test-property-item-name"},[t._v("总分数")]),a("div",{}),a("div",{staticClass:"test-property-item-value"},[a("span",[t._v(t._s(t.data.test_score))])])]),a("div",{staticClass:"test-property-item"},[a("div",{staticClass:"test-property-item-name"},[t._v("题目数")]),a("div",{}),a("div",{staticClass:"test-property-item-value"},[a("span",[t._v(t._s(t.data.question_count))]),a("span",{staticClass:"test-property-item-unit"},[t._v("题")])])]),t.data.test.pass_score_type?a("div",{staticClass:"test-property-item"},[a("div",{staticClass:"test-property-item-name"},[t._v("通过分数")]),a("div",{}),a("div",{staticClass:"test-property-item-value"},[a("span",[t._v(t._s(t.data.test.pass_score_val))]),a("span",{staticClass:"test-property-item-unit"},[t._v("分")])])]):t._e(),a("div",{staticClass:"test-property-item"},[a("div",{staticClass:"test-property-item-name"},[t._v("答题用时")]),a("div",{}),a("div",{staticClass:"test-property-item-value"},[a("span",[t._v(t._s(t.data.submittime-t.data.createtime>0?t.$tools.formatMediaTime(t.data.submittime-t.data.createtime):0))]),a("span",{staticClass:"test-property-item-unit"})])])]),a("div",{staticClass:"test-time"},[a("div",[t._v("本次考试开始时间:"+t._s(t.$tools.formatDate(t.data.createtime)))]),a("div",[t._v("本次考试提交时间:"+t._s(t.$tools.formatDate(t.data.submittime)))]),t.data.test.test_time_limit?a("div",[t._v("本场考试结束时间:"+t._s(t.$tools.formatDate(t.data.test.test_time_end)))]):t._e()])]),a("tz-divider"),a("div",{staticClass:"btn-groups"},[a("div",{staticClass:"btn"},[a("tz-button",{staticClass:"custom-style",attrs:{customStyle:{width:"100%"},long:!0,text:t.data.button.text,disabled:!t.data.button.status},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.buildWork.apply(void 0,arguments)}}})],1),a("div",{staticClass:"btn"},[a("tz-button",{attrs:{long:!0,type:"primary",shape:"circle",text:"回首页逛逛"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.gohome.apply(void 0,arguments)}}})],1)]),0!=t.data.grade_status&&t.data.question_list&&t.data.question_list.length>0?[a("tz-divider"),a("tz-title",{attrs:{title:"答卷",size:"small",more:!1}}),a("tz-box",{attrs:{padding:"0 15px 15px"}},[t._l(t.data.question_list,(function(e,o){return[a("question-box",{key:e.id,attrs:{edit:!1,score:e.score,option:e.option,type:e.type,analysis:e.analysis,question:e.question,user_answer:t.data.user_answer?t.data.user_answer[e.id]:"",answer:e.answer,grade_status_text:e.grade_status_text,grade_comment:e.grade_comment,user_score:e.user_score,is_correct:e.is_correct},on:{changeoption:function(e){arguments[0]=e=t.$handleEvent(e),t.changeOption.apply(void 0,arguments)}}}),o<t.data.question_list.length-1?a("tz-divider"):t._e()]}))],2)]:t._e(),a("tz-tab-bar"),a("tz-footer")],2)},s=[],d=a(93815),l={components:{questionBox:d.Z},data:function(){return{data:{test:{},button:{}},pageParams:{},loading:!1}},watch:{},methods:{getData:function(){o.loading=!0,uni.showLoading({title:"请稍后"}),o.$api("app.test.result",{id:o.pageParams.id}).then((function(t){o.loading=!1,1===t.code&&(o.data=t.data),uni.hideLoading(),uni.stopPullDownRefresh()})).catch((function(t){o.loading=!1,uni.hideLoading(),uni.stopPullDownRefresh()}))},analysis:function(){o.$nav.to("/pages/app/exam/work/work?id="+o.pageParams.id+"&jobtype=test","local","redirectTo")},buildWork:function(){uni.showLoading({title:"请稍后"}),o.$api("app.test.buildLog",{id:o.data.test_id}).then((function(t){uni.hideLoading(),1===t.code&&o.$nav.to("/pages/app/exam/work/work?id="+t.data+"&jobtype=test","local","redirectTo")})).catch((function(t){uni.hideLoading()}))},gohome:function(){o.$nav.to("/pages/index/index","local")}},onLoad:function(t){o=this,o.pageParams=o.$nav.parsePageParams(t),o.getData()},onPullDownRefresh:function(){o.getData()},onShareAppMessage:function(){return this.$nav.share()},onShareTimeline:function(){return this.$nav.share()}},u=l,c=(a(86520),a(69453)),p=(0,c.Z)(u,r,s,!1,null,"75debee0",null,!1,n,i),g=p.exports},44907:function(t,e,a){"use strict";a.r(e);var o=a(43481),i=a.n(o),n=a(2400),r=a.n(n),s=r()(i());s.push([t.id,".loading-page[data-v-1bfd1361]{width:100%;height:100%;z-index:100;background-color:#f7f8fa;position:fixed;left:0;top:0;text-align:center;box-sizing:border-box;font-size:14px;color:#86909c;padding-top:200px}.loading-absolute[data-v-1bfd1361]{position:absolute;left:0;top:0}.loading-tip[data-v-1bfd1361]{margin-top:20px}",""]),e["default"]=s},46515:function(t,e,a){"use strict";a.r(e);var o=a(43481),i=a.n(o),n=a(2400),r=a.n(n),s=r()(i());s.push([t.id,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n *@import \'/static/themes/css/arco.css\';\n*/uni-button[data-v-ed811d64]::after{content:none!important}\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-view[data-v-ed811d64], uni-scroll-view[data-v-ed811d64], uni-swiper-item[data-v-ed811d64]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-loading-icon[data-v-ed811d64]{flex-direction:row;align-items:center;justify-content:center;color:#c8c9cc}.u-loading-icon__text[data-v-ed811d64]{margin-left:4px;color:#606266;font-size:14px;line-height:20px}.u-loading-icon__spinner[data-v-ed811d64]{width:30px;height:30px;position:relative;box-sizing:border-box;max-width:100%;max-height:100%;-webkit-animation:u-rotate-data-v-ed811d64 1s linear infinite;animation:u-rotate-data-v-ed811d64 1s linear infinite}.u-loading-icon__spinner--semicircle[data-v-ed811d64]{border-width:2px;border-color:transparent;border-top-right-radius:100px;border-top-left-radius:100px;border-bottom-left-radius:100px;border-bottom-right-radius:100px;border-style:solid}.u-loading-icon__spinner--circle[data-v-ed811d64]{border-top-right-radius:100px;border-top-left-radius:100px;border-bottom-left-radius:100px;border-bottom-right-radius:100px;border-width:2px;border-top-color:#e5e5e5;border-right-color:#e5e5e5;border-bottom-color:#e5e5e5;border-left-color:#e5e5e5;border-style:solid}.u-loading-icon--vertical[data-v-ed811d64]{flex-direction:column}[data-v-ed811d64]:host{font-size:0;line-height:1}.u-loading-icon__spinner--spinner[data-v-ed811d64]{-webkit-animation-timing-function:steps(12);animation-timing-function:steps(12)}.u-loading-icon__text[data-v-ed811d64]:empty{display:none}.u-loading-icon--vertical .u-loading-icon__text[data-v-ed811d64]{margin:6px 0 0;color:#606266}.u-loading-icon__dot[data-v-ed811d64]{position:absolute;top:0;left:0;width:100%;height:100%}.u-loading-icon__dot[data-v-ed811d64]:before{display:block;width:2px;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:" "}.u-loading-icon__dot[data-v-ed811d64]:nth-of-type(1){-webkit-transform:rotate(30deg);transform:rotate(30deg);opacity:1}.u-loading-icon__dot[data-v-ed811d64]:nth-of-type(2){-webkit-transform:rotate(60deg);transform:rotate(60deg);opacity:.9375}.u-loading-icon__dot[data-v-ed811d64]:nth-of-type(3){-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:.875}.u-loading-icon__dot[data-v-ed811d64]:nth-of-type(4){-webkit-transform:rotate(120deg);transform:rotate(120deg);opacity:.8125}.u-loading-icon__dot[data-v-ed811d64]:nth-of-type(5){-webkit-transform:rotate(150deg);transform:rotate(150deg);opacity:.75}.u-loading-icon__dot[data-v-ed811d64]:nth-of-type(6){-webkit-transform:rotate(180deg);transform:rotate(180deg);opacity:.6875}.u-loading-icon__dot[data-v-ed811d64]:nth-of-type(7){-webkit-transform:rotate(210deg);transform:rotate(210deg);opacity:.625}.u-loading-icon__dot[data-v-ed811d64]:nth-of-type(8){-webkit-transform:rotate(240deg);transform:rotate(240deg);opacity:.5625}.u-loading-icon__dot[data-v-ed811d64]:nth-of-type(9){-webkit-transform:rotate(270deg);transform:rotate(270deg);opacity:.5}.u-loading-icon__dot[data-v-ed811d64]:nth-of-type(10){-webkit-transform:rotate(300deg);transform:rotate(300deg);opacity:.4375}.u-loading-icon__dot[data-v-ed811d64]:nth-of-type(11){-webkit-transform:rotate(330deg);transform:rotate(330deg);opacity:.375}.u-loading-icon__dot[data-v-ed811d64]:nth-of-type(12){-webkit-transform:rotate(1turn);transform:rotate(1turn);opacity:.3125}@-webkit-keyframes u-rotate-data-v-ed811d64{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes u-rotate-data-v-ed811d64{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}',""]),e["default"]=s},73993:function(t,e,a){"use strict";a.r(e);var o=a(43481),i=a.n(o),n=a(2400),r=a.n(n),s=r()(i());s.push([t.id,"@charset \"UTF-8\";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n *@import '/static/themes/css/arco.css';\n*/uni-page-body[data-v-75debee0]{\n /* background-color: #fff; */}.test-info-degree[data-v-75debee0]{display:flex;\n /* align-items: center; */font-size:12px;color:#fff;margin-top:10px}.test-info-degree .test-info-rate[data-v-75debee0]{margin-left:5px}.test-property-box[data-v-75debee0]{display:flex;justify-content:space-between;width:270px;margin:30px auto 0}.test-property-box .test-property-item[data-v-75debee0]{text-align:center}.test-property-item-name[data-v-75debee0]{font-size:12px;color:#86909c}.test-property-item-value[data-v-75debee0]{color:#1d2129;margin-top:5px;font-weight:600}.test-property-item-unit[data-v-75debee0]{color:#4e5969;font-size:12px;font-weight:400;margin-left:2px}.btn-groups[data-v-75debee0]{display:flex;align-content:center}.btn[data-v-75debee0]{width:100%;margin:0 5px;flex:1}.result-box[data-v-75debee0]{text-align:center;width:200px;margin:50px auto}.result-box .result-name[data-v-75debee0]{font-size:12px;color:#86909c;margin-bottom:10px}.result-box .result-val[data-v-75debee0]{font-size:14px;margin-bottom:10px}.result-val-num[data-v-75debee0]{font-size:30px;font-weight:600}.result-val-unit[data-v-75debee0]{font-size:14px;margin-left:4px}.test-time[data-v-75debee0]{font-size:12px;text-align:center;margin-top:40px;color:#86909c;line-height:22px}.grade-status-tips[data-v-75debee0]{text-align:center;font-size:13px;color:#ff7d00;background-color:#fff7e8;padding:8px 15px;margin:-10px 15px 0;border-radius:5px}uni-button[data-v-75debee0]::after{content:none!important}\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */",""]),e["default"]=s}}]); |