Files
amb_wechatapp/public/assets/h5/js/pages-app-test-detail-detail.dd799e11.js
T

1 line
19 KiB
JavaScript

(self["webpackChunktuzhi"]=self["webpackChunktuzhi"]||[]).push([[8975],{77634:function(t,e,o){var a=o(44907);a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.id,a,""]]),a.locals&&(t.exports=a.locals);var n=o(56).Z;n("90bbbea0",a,!0,{sourceMap:!1,shadowMode:!1})},38717:function(t,e,o){var a=o(91720);a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.id,a,""]]),a.locals&&(t.exports=a.locals);var n=o(56).Z;n("292bda40",a,!0,{sourceMap:!1,shadowMode:!1})},32330:function(t,e,o){var a=o(46515);a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.id,a,""]]),a.locals&&(t.exports=a.locals);var n=o(56).Z;n("68195f01",a,!0,{sourceMap:!1,shadowMode:!1})},62829:function(t,e,o){var a=o(30337);a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.id,a,""]]),a.locals&&(t.exports=a.locals);var n=o(56).Z;n("2dbe9941",a,!0,{sourceMap:!1,shadowMode:!1})},74698:function(t,e,o){"use strict";o.d(e,{Z:function(){return p}});var a,n={uLoadingIcon:o(193).Z},i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.loading?o("div",{class:["loading-page",{"loading-absolute":t.absolute}]},[o("div",[o("u-loading-icon"),o("div",{staticClass:"loading-tip"},[t._v(t._s(t.tip))])],1)]):t._e()},r=[],d={components:{},data:function(){return{show:!1}},props:{loading:{type:[Boolean],default:!1},tip:{type:[String],default:"加载中…"},absolute:{type:[Boolean],default:!1}},methods:{},watch:{}},s=d,c=(o(77634),o(69453)),l=(0,c.Z)(s,i,r,!1,null,"1bfd1361",null,!1,n,a),p=l.exports},84085:function(t,e,o){"use strict";o.d(e,{Z:function(){return p}});var a,n={uParse:o(86615).Z},i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{style:{"background-color":t.bgColor}},[o("u-parse",{attrs:{content:t.content,selectable:!t.limitCopy,previewImg:!t.limitCopy}})],1)},r=[],d=(o(9653),{components:{},data:function(){return{}},computed:{},props:{content:{type:[String,Number],default:""},bgColor:{type:String,default:"none"},limitCopy:{type:Boolean,default:!1}},methods:{}}),s=d,c=(o(38717),o(69453)),l=(0,c.Z)(s,i,r,!1,null,"2195fc88",null,!1,n,a),p=l.exports},193:function(t,e,o){"use strict";var a;o.d(e,{Z:function(){return u}});var n,i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.show?o("v-uni-view",{staticClass:"u-loading-icon",class:[t.vertical&&"u-loading-icon--vertical"],style:[t.$u.addStyle(t.customStyle)]},[t.webviewHide?t._e():o("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 o("v-uni-view",{key:e,staticClass:"u-loading-icon__dot"})})):t._e()],2),t.text?o("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=[],d=(o(91038),o(78783),o(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}}}),s={name:"u-loading-icon",mixins:[uni.$u.mpMixin,uni.$u.mixin,d],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(),o=e[e.length-1],a=o.$getAppWebview();a.addEventListener("hide",(function(){t.webviewHide=!0})),a.addEventListener("show",(function(){t.webviewHide=!1}))}}},c=s,l=(o(32330),o(69453)),p=(0,l.Z)(c,i,r,!1,null,"ed811d64",null,!1,a,n),u=p.exports},24010:function(t,e,o){"use strict";o.r(e),o.d(e,{default:function(){return f}});var a,n,i={tzLoadingPage:o(74698).Z,tzBox:o(26720).Z,tzDivider:o(20089).Z,tzTitle:o(57592).Z,tzParse:o(84085).Z,tzIcon:o(88274)["default"],tzButton:o(93780).Z,uSafeBottom:o(36618).Z,tzFooter:o(93135).Z},r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"container"},[o("tz-loading-page",{attrs:{tip:"正在加载",loading:t.loading}}),o("div",{staticClass:"test-header-box"},[o("img",{staticClass:"test-cover",attrs:{src:t.data.cover}}),o("tz-box",{attrs:{padding:"10px 15px 15px"}},[o("div",{staticClass:"test-info-box"},[o("div",{staticClass:"test-info-title one-line-hidden"},[t._v(t._s(t.data&&t.data.name?t.data.name:"-"))]),o("div",{staticClass:"test-info-time one-line-hidden"},[t._v("考试时间:"),t.data.test_time_limit?[t._v(t._s(t.data.test_time_start_text)+" 至 "+t._s(t.data.test_time_end_text))]:[t._v("不限")]],2)])])],1),o("tz-divider"),o("tz-title",{attrs:{title:"考试信息",size:"small",more:!1}}),o("tz-box",{attrs:{padding:"0 15px 15px"}},[o("div",{staticClass:"test-property-box"},[o("div",{staticClass:"test-property-item"},[o("div",{staticClass:"test-property-item-value"},[0==t.data.test_duration_limit?o("span",[t._v("不限")]):[o("span",[t._v(t._s(t.data.test_duration_val))]),o("span",{staticClass:"test-property-item-unit"},[t._v("分")])]],2),o("div",{staticClass:"test-property-item-name"},[t._v("时长")])]),o("div",{staticClass:"test-property-item"},[o("div",{staticClass:"test-property-item-value"},[o("span",[t._v(t._s(t.data.testpaper.question_amount))]),o("span",{staticClass:"test-property-item-unit"})]),o("div",{staticClass:"test-property-item-name"},[t._v("题目量")])]),1==t.data.pass_score_type?o("div",{staticClass:"test-property-item"},[o("div",{staticClass:"test-property-item-value"},[o("span",[t._v(t._s(t.data.pass_score_val))]),o("span",{staticClass:"test-property-item-unit"})]),o("div",{staticClass:"test-property-item-name"},[t._v("通过分数")])]):t._e(),o("div",{staticClass:"test-property-item"},[o("div",{staticClass:"test-property-item-value"},[o("span",{staticStyle:{"font-size":"16px"}},[t._v(t._s(t.data.testpaper.score_amount))]),o("span",{staticClass:"test-property-item-unit"})]),o("div",{staticClass:"test-property-item-name"},[t._v("考试总分")])])])]),t.data.bind_course&&t.data.bind_course.length>0?[o("tz-divider"),o("tz-title",{attrs:{title:"该考试关联课程",size:"small",more:!1}}),o("tz-box",{attrs:{padding:"0 15px 15px"}},[o("bind-course-list",{attrs:{data:t.data.bind_course}})],1)]:t._e(),t.data.detail&&"<p><br></p>"!=t.data.detail?[o("tz-divider"),o("tz-title",{attrs:{title:"考试详情",size:"small",more:!1}}),o("tz-box",{attrs:{padding:"0 15px 15px"}},[o("tz-parse",{attrs:{content:t.data.detail}})],1)]:t._e(),o("v-uni-view",{staticClass:"btn-box"},[[t.data.last_worklog?o("div",{staticClass:"control-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.result.apply(void 0,arguments)}}},[o("div",[o("tz-icon",{attrs:{name:"dynamic",size:26,color:"#1D2129"}})],1),o("div",[t._v("成绩")])]):t._e(),o("tz-button",{staticClass:"custom-style",attrs:{customStyle:{width:"100%"},type:"primary",long:!0,text:t.data.button.text,disabled:!t.data.button.status},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handle.apply(void 0,arguments)}}})]],2),o("u-safe-bottom"),o("tz-footer"),o("bind-mobile-modal")],2)},d=[],s=o(37700),c={components:{bindCourseList:s.Z},data:function(){return{data:{testpaper:{},button:{}},modal:{exercisesControl:!1},pageParams:{},loading:!1}},watch:{},methods:{getData:function(){a.loading=!0,a.$api("app.test.detail",{id:a.pageParams.id}).then((function(t){uni.hideLoading(),a.loading=!1,1===t.code&&(a.data=t.data)})).catch((function(t){a.loading=!1,uni.hideLoading(),a.$u.toast(t.msg)})),uni.stopPullDownRefresh()},subscribe:function(){a.$api("app.exam.exercises.subscribe",{id:a.pageParams.id}).then((function(t){1===t.code&&a.getData(),a.$u.toast(t.msg)})).catch((function(t){uni.hideLoading()}))},result:function(){a.$nav.to("/pages/app/test/result/result?id="+a.data.last_worklog)},handle:function(){var t=this;uni.showLoading({title:"请稍后"}),a.$api("app.test.buildLog",{id:a.pageParams.id}).then((function(e){uni.hideLoading(),1===e.code&&t.$nav.to("/pages/app/exam/work/work?id="+e.data+"&jobtype=test","local")})).catch((function(t){uni.hideLoading()}))}},onLoad:function(t){a=this,a.pageParams=a.$nav.parsePageParams(t),a.getData()},onPullDownRefresh:function(){a.getData()},onShareAppMessage:function(){return this.$nav.share()},onShareTimeline:function(){return this.$nav.share()}},l=c,p=(o(62829),o(69453)),u=(0,p.Z)(l,r,d,!1,null,"0bc62182",null,!1,i,n),f=u.exports},44907:function(t,e,o){"use strict";o.r(e);var a=o(43481),n=o.n(a),i=o(2400),r=o.n(i),d=r()(n());d.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"]=d},91720:function(t,e,o){"use strict";o.r(e);var a=o(43481),n=o.n(a),i=o(2400),r=o.n(i),d=r()(n());d.push([t.id,"[alt][data-v-2195fc88]{max-width:100%}",""]),e["default"]=d},46515:function(t,e,o){"use strict";o.r(e);var a=o(43481),n=o.n(a),i=o(2400),r=o.n(i),d=r()(n());d.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"]=d},30337:function(t,e,o){"use strict";o.r(e);var a=o(43481),n=o.n(a),i=o(2400),r=o.n(i),d=r()(n());d.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*/.test-header-box[data-v-0bc62182],.test-cover[data-v-0bc62182]{width:100%;background-color:#fff}.test-info-box[data-v-0bc62182]{width:100%;box-sizing:border-box;background-color:#fff}.test-info-title[data-v-0bc62182]{font-size:18px;color:#1d2129}.test-info-time[data-v-0bc62182]{font-size:12px;color:#86909c;margin-top:5px}.test-info-degree[data-v-0bc62182]{display:flex;\n /* align-items: center; */position:-webkit-sticky;position:sticky;font-size:12px;color:#fff;margin-top:8px}.test-info-degree div[data-v-0bc62182],.test-info-title[data-v-0bc62182]{\n /* z-index: 10000; */}.test-info-degree .test-info-rate[data-v-0bc62182]{margin-left:5px}.test-property-box[data-v-0bc62182]{display:flex;justify-content:space-between;width:300px;margin:0 auto}.test-property-box .test-property-item[data-v-0bc62182]{text-align:center;padding:0 0 10px}.test-property-item-name[data-v-0bc62182]{font-size:12px;color:#86909c;margin-top:4px}.test-property-item-value[data-v-0bc62182]{color:#1d2129;font-weight:600;font-size:18px}.test-property-item-unit[data-v-0bc62182]{color:#4e5969;font-size:12px;font-weight:400}.test-property-item.price .test-property-item-value[data-v-0bc62182],.test-property-item.price .test-property-item-unit[data-v-0bc62182]{color:#f53f3f!important}.test-property-item.price .test-property-item-value[data-v-0bc62182]{font-size:18px}.btn-box[data-v-0bc62182]{position:fixed;bottom:0;left:0;width:100%;\n /* height: 50px; */\n /* width: 100%; */padding:10px 10px 10px;background-color:#fff;box-shadow:0 0 8px 0 rgb(0 0 0/8%);display:flex;justify-content:space-between;align-items:center;z-index:10\n}.btn-box>div[data-v-0bc62182]{margin:0 5px}.btn-box .u-button[data-v-0bc62182],.btn-box .tz-button[data-v-0bc62182]{margin:0 5px}.btn-box>div[data-v-0bc62182]:last-child,\n.btn-box>div[data-v-0bc62182]:first-child{\n /* margin: 0; */}.btn-box>div[data-v-0bc62182]:first-child{margin-left:0}.btn-box .filler-box[data-v-0bc62182]{width:100%;height:60px;background:none}.btn-box .price[data-v-0bc62182]{font-weight:600;font-size:22px;color:#f53f3f;line-height:40px;width:400px}.btn-box .price .total-text[data-v-0bc62182]{font-weight:400;font-size:14px;color:#1d2129}.btn-box .price .unit[data-v-0bc62182]{font-weight:400;font-size:16px;margin-right:2px;margin-left:4px}.btn-box .dir-btn[data-v-0bc62182]{width:100%;text-align:center;font-size:12px;padding-bottom:10px}.btn-box .control-box[data-v-0bc62182]{justify-content:center}.btn-box .control-btn[data-v-0bc62182]{width:60px;text-align:center;font-size:10px;color:#888}.btn-box .custom-style[data-v-0bc62182]{width:100%}uni-button[data-v-0bc62182]::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"]=d},27852:function(t,e,o){"use strict";var a=o(82109),n=o(21470),i=o(31236).f,r=o(17466),d=o(41340),s=o(3929),c=o(84488),l=o(84964),p=o(31913),u=n("".endsWith),f=n("".slice),g=Math.min,b=l("endsWith"),m=!p&&!b&&!!function(){var t=i(String.prototype,"endsWith");return t&&!t.writable}();a({target:"String",proto:!0,forced:!m&&!b},{endsWith:function(t){var e=d(c(this));s(t);var o=arguments.length>1?arguments[1]:void 0,a=e.length,n=void 0===o?a:g(r(o),a),i=d(t);return u?u(e,i,n):f(e,n-i.length,n)===i}})},18334:function(t,e,o){"use strict";o.d(e,{Z:function(){return s}});var a=o(97346);function n(t){if(Array.isArray(t))return(0,a.Z)(t)}var i=o(72224),r=o(99837);o(21703),o(96647);function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t){return n(t)||(0,i.Z)(t)||(0,r.Z)(t)||d()}}}]);