1 |
- !function(){var t=document.createElement("style");t.innerHTML="._unitTest_1rbsa_1 ._searchBand_1rbsa_1{display:inline-block;font-size:.37333rem;font-weight:500;color:#333}._unitTest_1rbsa_1 ._cellGroup_1rbsa_7{margin-bottom:.32rem}._unitTest_1rbsa_1 ._cellGroup_1rbsa_7 .van-cell{padding:.32rem;font-size:.42667rem;font-weight:500}._unitTest_1rbsa_1 ._cellGroup_1rbsa_7 .van-button--disabled{opacity:1;background-color:#f2f2f2;color:#aaa;border-color:#f2f2f2}._unitTest_1rbsa_1 ._cellGroup_1rbsa_7 ._img_1rbsa_21{width:.48rem;height:.48rem;margin-right:.16rem}._unitTest_1rbsa_1 ._cellGroup_1rbsa_7 ._unitTitle_1rbsa_26{color:#333;max-width:4.8rem;line-height:.58667rem}._unitTest_1rbsa_1 ._cellGroup_1rbsa_7 ._no-start_1rbsa_31{color:#f44541}._unitTest_1rbsa_1 ._cellGroup_1rbsa_7 ._pass_1rbsa_34{color:#4ab78e}._unitTest_1rbsa_1 ._cellGroup_1rbsa_7 ._no-pass_1rbsa_37{color:#aaa}._unitTest_1rbsa_1 ._unitSection_1rbsa_40{padding-top:.4rem!important;padding-bottom:.53333rem!important}._unitTest_1rbsa_1 ._unitSection_1rbsa_40 ._name_1rbsa_44{font-size:.4rem;font-weight:500;color:#333;padding-bottom:.16rem}._unitTest_1rbsa_1 ._unitSection_1rbsa_40 ._endTime_1rbsa_50{font-size:.34667rem;color:#777}._unitTest_1rbsa_1 ._unitSection_1rbsa_40 ._unitInformation_1rbsa_54{display:flex;align-items:center;justify-content:space-between}._unitTest_1rbsa_1 ._unitSection_1rbsa_40 ._unitInformation_1rbsa_54>span{flex:0 auto;flex-shrink:0;font-family:DINA;font-size:.69333rem;color:#f44541;line-height:.8rem}._unitTest_1rbsa_1 ._unitSection_1rbsa_40 ._unitInformation_1rbsa_54>span i{padding-left:.05333rem;font-style:normal;font-size:.37333rem;color:#333;line-height:.53333rem}._unitTest_1rbsa_1 ._unitBtnGroup_1rbsa_74{display:flex;align-items:center;justify-content:space-between;padding-top:.42667rem}._unitTest_1rbsa_1 ._unitBtnGroup_1rbsa_74 .van-button{line-height:1.06667rem;height:1.06667rem}._unitTest_1rbsa_1 ._unitBtnGroup_1rbsa_74 .van-button+.van-button{margin-left:.34667rem}._dialogTitle_a0l7r_1{display:flex;align-items:center;text-align:left;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem;padding:.53333rem .4rem .4rem}._dialogTitle_a0l7r_1 i{display:inline-block;width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._btns_a0l7r_19 .van-button{font-size:.48rem;font-weight:500}._btns_a0l7r_19 .van-dialog__cancel{color:#777}._noticeContainer_a0l7r_26{padding:0 .4rem .8rem}._unitContainer_a0l7r_29{background:#fff0e6;border-radius:.26667rem;margin-bottom:.8rem}._unitContainer_a0l7r_29 ._unitTitle_a0l7r_34{display:flex;align-items:center;padding:.26667rem .32rem;font-size:.42667rem;font-weight:500;line-height:.58667rem;color:#333}._unitContainer_a0l7r_29 ._unitTitle_a0l7r_34 .van-tag{margin-left:.21333rem;font-size:.34667rem;font-weight:500;color:#fff;padding:.05333rem .21333rem;flex-shrink:0}._unitContainer_a0l7r_29 ._gridScore_a0l7r_51 .van-grid-item__content{background-color:transparent}._unitContainer_a0l7r_29 ._gridScore_a0l7r_51 ._title_a0l7r_54{font-size:.69333rem;font-weight:700;color:#333;line-height:.8rem}._unitContainer_a0l7r_29 ._gridScore_a0l7r_51 ._name_a0l7r_60{padding-top:.10667rem;font-size:.37333rem;color:#333}._unitContainer_a0l7r_29 ._unitTimer_a0l7r_65{display:flex;align-items:center;padding:.32rem;font-size:.37333rem;color:#333;line-height:.53333rem}._unitContainer_a0l7r_29 ._unitTimer_a0l7r_65 .van-icon{font-size:.42667rem;margin-right:.10667rem}._unitContainer_a0l7r_29 ._unitTimer_a0l7r_65:after{border-color:#ff8057;opacity:.2}._reminder_a0l7r_81 ._iconBell_a0l7r_81{width:.4rem;height:.42667rem;margin-right:.16rem}._reminder_a0l7r_81 ._rTitle_a0l7r_86{display:flex;align-items:center;font-size:.42667rem;font-weight:500;color:#f67146;padding-bottom:.26667rem}._reminder_a0l7r_81 ._rContent_a0l7r_94{font-size:.37333rem;color:#333;line-height:.56rem;text-align:justify}\n",document.head.appendChild(t),System.register(["./index-legacy.eb062188.js","./index-legacy.a530d593.js","./index-legacy.ad813f4d.js","./icon-edit-legacy.4520ee5d.js","./index-legacy.4e015ad0.js","./index-legacy.11f1ea5f.js","./index-legacy.761bf286.js","./index-legacy.d64e5695.js","./index-legacy.e0860c0a.js","./index-legacy.d552a2f3.js","./index-legacy.fad72574.js","./index-legacy.148f784c.js","./index-legacy.918b8c74.js","./index-legacy.fecc738b.js","./index-legacy.3a3e070a.js","./index-legacy.8c254533.js","./use-tab-status-legacy.91417466.js"],(function(t){"use strict";var e,a,i,n,s,r,l,o,_,c,u,d,m,g,p,f,h,b,A,S,T,y,C,x,w,v,k,E,I,j,B;return{setters:[function(t){e=t.d,a=t.c,i=t.q,n=t.a5,s=t.B,r=t.ag,l=t.r,o=t.$,_=t.m,c=t.g,u=t.n,d=t.aj,m=t.ai,g=t.ak,p=t.P,f=t.al},function(t){h=t.O},function(t){b=t.O},function(t){A=t.i},function(t){S=t.c,T=t.u},function(t){y=t.T},function(t){C=t.G,x=t.a},function(t){w=t.O},function(t){v=t.O},function(t){k=t.O},function(t){E=t.L},function(t){I=t.C},function(t){j=t.C},function(t){B=t.I},function(){},function(){},function(){}],execute:function(){var L={unitTest:"_unitTest_1rbsa_1",searchBand:"_searchBand_1rbsa_1",cellGroup:"_cellGroup_1rbsa_7",img:"_img_1rbsa_21",unitTitle:"_unitTitle_1rbsa_26","no-start":"_no-start_1rbsa_31",pass:"_pass_1rbsa_34","no-pass":"_no-pass_1rbsa_37",unitSection:"_unitSection_1rbsa_40",name:"_name_1rbsa_44",endTime:"_endTime_1rbsa_50",unitInformation:"_unitInformation_1rbsa_54",unitBtnGroup:"_unitBtnGroup_1rbsa_74"};var G={dialogTitle:"_dialogTitle_a0l7r_1",btns:"_btns_a0l7r_19",noticeContainer:"_noticeContainer_a0l7r_26",unitContainer:"_unitContainer_a0l7r_29",unitTitle:"_unitTitle_a0l7r_34",gridScore:"_gridScore_a0l7r_51",title:"_title_a0l7r_54",name:"_name_a0l7r_60",unitTimer:"_unitTimer_a0l7r_65",reminder:"_reminder_a0l7r_81",iconBell:"_iconBell_a0l7r_81",rTitle:"_rTitle_a0l7r_86",rContent:"_rContent_a0l7r_94"},P=e({name:"notice-start",props:{data:{type:Object,default:()=>{}}},emits:["close","confirm"],setup:(t,{emit:e})=>()=>a("div",{class:G.noticeStart},[a("div",{class:G.dialogTitle},[a("i",null,null),i("测验须知")]),a("div",{class:G.noticeContainer},[a("div",{class:G.unitContainer},[a("div",{class:G.unitTitle},[a("span",{class:[G.name,"van-ellipsis"]},[t.data.name]),a(y,{type:"primary"},{default:()=>[S[t.data.courseTypeCode]]})]),a(C,{border:!1,columnNum:3,class:G.gridScore},{default:()=>[a(x,null,{default:()=>[a("p",{class:G.title},[t.data.totalScore]),a("p",{class:G.name},[i("总分")])]}),a(x,null,{default:()=>[a("p",{class:[G.title],style:{color:"#F67146"}},[t.data.passScore]),a("p",{class:G.name},[i("合格分")])]}),a(x,null,{default:()=>[a("p",{class:G.title},[t.data.questionNum]),a("p",{class:G.name},[i("题目数量")])]})]}),a("div",{class:[G.unitTimer,"van-hairline--top"]},[a(n,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA0hJREFUWEfFl01IFGEYx//P7CrFHpQiDCIykgiiIg8SHsp70MdBZzbpElRe+pDSMNR918TCNaII+oIuoTvDHqKgY1CXCA9Flh3C0IpAiMIgqfx4n9h3Zt0PZ3Z3FmznNvM+zzu/9/l+CWV+yM//WUCDZuwCcwOALQBV2/o8A+AjiEYhzTckIIvdtygA7jc2Yp7PgNAKYH2BzafBGEYFXadu80shkLwAHDsawuy8APg0gEqXzRadbwGXtTmAbiBUIajjwawXiCcAC6MW4EcAdmYoT4C0hyA8gVx4SyLxQzlANK+BFtwBxn6wPAygLkNnDKCDJMwpNwhXABb6HgCPAaxTSoRJEHWjx4wTgfOZlRmES0YYzP1gbHZkvwE4QMJ6mau7DMA5+ejSzwETP+Uxupb4navMQmgkhGvAcXvzalRp9wEYaQhqyLVEFoDt87kXabPTZRLmRbcTs9DrAX4K0HuMy72USKTiIUuco8YAmLucj2MIVTZmxkQ2gDBiAJ93hE0SVtjL3Bw1LoD5ip2FchNFE589ZYUeT1uChkiYHSnZJQCVags8oaI96fMZud3N7ClFjrZ0gWlAvQcDtdQ98skTIOmOam3ciYk5BKkulaJpgIg+BMI5tYlGrdRrjuQNNh8Aykh9xhFIHrYthqsUtZSlFYCqcNC/OkVmAhFra8Fo9wuQzI6o/sFJ0WnA2pCsmDZAn7Ebkl/ZKafFKBLvzHd6peMTwNYJD4Kl7X+N6qnXfG0DRPWTYNy2F7Qm6o0/XxGAvvA+SPnMPijaKGLdSQEMguFEplybqnBFx0CgYhtCf7OzoD3xJ9eNqmJC++4AxChidToAxl0wHwewSMIKFjr9Mhe4K0wjIBupJzGZucxCXwAQANE9ipgnSgcQLW0A3coLK3GI+qxkP1l6PAB0/y4QTavANWdBqHGFIEzhnbyZWSHzuMB/EBbjplwZ9gzCEtKwJADPNCyhEPkFUG3aqxCpqPZZin0D5CvFCsBnM/IDoGaDQs1IQfhox74AimnHCsDHQFIsgK+BxLFCchgtaiTLW6pLGclSG5Z1KE1DlHEsX4JIxsSvuSgIp/77xSSrgZTraraslmdeTpnrQFqVLbPCl9NiU64UuX/AP+8wJTMKfgAAAABJRU5ErkJggg=="},null),a("span",null,[i("测验时长:"),t.data.timeMinutes,i("分钟")])])]),a("div",{class:G.reminder},[a("div",{class:G.rTitle},[a(n,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAgCAYAAAAFQMh/AAAAAXNSR0IArs4c6QAAAn1JREFUWEftl0toE1EUhr9zK4Viq1sRXKggCEo3bpT6ApXqQkVIJ7pw66pK8VEqmtykaI1d+AQRXAnSToMuXIlV8VF1XaSKG4V241aqFMTMkZkkJpmmaaJpK9i7HM75v3P+c+YOI9R41O5YAiv6wDuaTTV34UuP2Oc/a5GSWoL9WLVOCjgTyusX64afVZSuGqy9zno8DgHdKC0lqsIkkMLwQM67H6ppZlawJiObyZgLCDurEQR5hsmck1j6baX4GcFqI43Q0I9oJ8qsBYYcUFRuQOa02PSPcgWUFdTU/hammh4BW2as2mgbno6CWQmyCTgAehBoLMp5Q9NUu3Q/9EcRqi30QLsiTSw3PnRbRWuNtkls6HVxjPY6a8lwGYJdyJ+XfPXa5Up6qjh2Wsdqo9dAj1c3z2CpxoFhjLkjsYGxYPOT0VOoXkJpyOrIdbGDJ2YEa/xwG+K98F/OKsHFYRngFngn/bkGcE/7cwEearZLYmAkn1DSsSaij1Hd/QfQ4pSn4O0L4Na5/9t2kWGJD+6ZBtZkZCNqRmve4PJV3hTrduZm/j5YOPGVvVaJpd8F5ufzNNHRg8rFv+w2n57BmFZ/5mqjLmhHdtR6VuJDfaVg6wwDu+oE9mWuinW71EaPgN7L6T4R6wajLHRsnU/A6jqCx8S6G9Q664CPOd3PYt01peC48w1haR3Bk2LdZWojzWCyF4jyXRJuc7hjrSM0K+Xfbv7xpPAaWTdwudjq+oPLdCKLYLXOotV1X/Jgm//f5dKEsxe4jbJqTrwNiwoTwDHRhDM+b9DCx3hiQcELY/W8zLXcnf3PgtVGX0Hu81Z1lTIidnBrpfBZf03mCvwLiLj60yyHsNAAAAAASUVORK5CYII=",class:G.iconBell},null),a("span",null,[i("温馨提示:")])]),a("p",{class:G.rContent},[i("1、阶段自测仅可进行一次,请通过练习模式充分练习后再进行测试,以保障测验分数准确;"),a("br",null,null),i("2、点击开始测验后开始测验计时,到达测验时长后自动完成;"),a("br",null,null),i("3、开始测验后若中途退出,时长依然计算; "),a("br",null,null),i(" 4、准备好后开始测验吧!")])])]),a("div",{class:["van-hairline--top van-dialog__footer",G.btns]},[a(s,{onClick:()=>e("close"),class:["van-dialog__cancel"]},{default:()=>[i("再等等")]}),a(s,{onClick:()=>e("confirm"),class:["van-dialog__confirm van-hairline--left"]},{default:()=>[i("开始测验")]})])])});t("default",e({name:"unit-test",setup(){const t=r(),e=l({oPopover:!1,searchList:[],list:[],listState:{dataShow:!0,loading:!1,finished:!1,refreshing:!1,height:0},statusText:"全部测验",params:{keyword:null,status:null,page:1,rows:20},isClick:!1,visiableNotice:!1,unitExam:{},selectUnitExam:{},dialogMessage:"",dialogStatus:!1}),n=async(t=!1)=>{try{if(e.isClick)return;e.isClick=!0;const t=await _.post("/api-student/studentUnitExamination/queryPageByStudent",{data:{...e.params}});e.listState.loading=!1,e.listState.refreshing=!1;const a=t.data||{};if(e.list.length>0&&1===a.current)return;e.list=e.list.concat(a.rows||[]),e.listState.finished=a.current>=a.pages,e.params.page=a.current+1,e.listState.dataShow=e.list.length>0,e.isClick=!1}catch{e.listState.dataShow=!1,e.listState.finished=!0,e.listState.refreshing=!1,e.isClick=!1}},S=(t=!1)=>{e.params.page=1,e.list=[],e.listState.dataShow=!0,e.listState.loading=!1,e.listState.finished=!1,n(t)},y=async()=>{try{await _.post("/api-student/studentUnitExamination/startExamination",{requestType:"form",hideLoading:!1,data:{studentUnitExaminationId:e.selectUnitExam.id}}),t.push({path:"/examination-mode",query:{id:e.selectUnitExam.id}})}catch{}};return o((async()=>{const t=sessionStorage.getItem("unit-test-search-type"),a=[{name:"全部测验",id:"ALL",selected:!0}];let i={};for(const e in T)a.push({name:T[e],id:e}),e===t&&(i={name:T[e],id:e});e.searchList=a,i.id&&"ALL"!==i.id&&(e.statusText=i.name,e.params.status=i.id);try{const t=await _.get(c.platformApi+"/user/getUserInfo");u(t.data)}catch{}await n()})),()=>{let r;return a("div",{class:[L.unitTest,!e.listState.dataShow&&"emptyRootContainer"]},[a(b,{position:"top",onGetHeight:t=>{e.listState.height=t}},{default:()=>[a(d,{border:!1},null),a(h,{placeholder:"请输入测验名称",onSearch:t=>{e.params.keyword=t,S()}},{left:()=>a("div",{class:["searchItem-left",e.oPopover?"searchItem-active":""],onClick:()=>e.oPopover=!0},[a("span",null,[e.statusText])])})]}),e.listState.dataShow?a(w,{modelValue:e.listState.refreshing,"onUpdate:modelValue":t=>e.listState.refreshing=t,onRefresh:()=>S(!0),style:{minHeight:`calc(100vh - ${e.listState.height}px)`}},{default:()=>{return[a(E,{finished:e.listState.finished,finishedText:" ",class:[L.liveList],style:{paddingTop:"12px"},onLoad:n,immediateCheck:!1},(l=r=e.list.map((n=>a(I,{inset:!0,class:L.cellGroup,border:!1},{default:()=>[a(j,{center:!0,clickable:!1,titleStyle:{flex:"1 auto"},valueClass:[L["no-start"],"A_PASS"===n.status&&L.pass,"B_NO_PASS"===n.status&&L["no-pass"]]},{icon:()=>a(B,{src:A,class:L.img},null),title:()=>a("div",{class:[L.unitTitle,"van-ellipsis"]},[n.name]),value:()=>T[n.status]}),a(j,{center:!0,class:L.unitSection},{title:()=>a("div",{class:L.unitInformation},[a("div",null,[a("div",{class:L.name},[n.orchestraName]),a("div",{class:L.endTime},[i("截止时间:"),m(n.expiryDate||new Date).format("YYYY-MM-DD")])]),"A_PASS"===n.status||"B_NO_PASS"===n.status?a("span",null,[n.score||0,a("i",null,[i("分")])]):""]),label:()=>a("div",{class:L.unitBtnGroup},[a(s,{color:"#FFF0E6",round:!0,block:!0,style:{color:"#F67146"},onClick:()=>{t.push({path:"/test-exercise",query:{id:n.unitExaminationId}})}},{default:()=>[i("练习模式")]}),"A_PASS"===n.status||"B_NO_PASS"===n.status?a(s,{type:"primary",round:!0,block:!0,onClick:()=>(e=>{t.push({path:"/unit-detail",query:{id:e.id}})})(n)},{default:()=>[i("查看测验")]}):a(s,{type:"primary",round:!0,block:!0,disabled:m(m().format("YYYY-MM-DD")).isAfter(m(n.expiryDate)),onClick:()=>(async t=>{try{if(!c.user.data.vipMember)return e.dialogStatus=!0,void(e.dialogMessage="您暂未开通团练宝,请开通后使用");if(e.selectUnitExam=t||{},"C_ING"===t.status&&y(),"D_NO_SUBMIT"===t.status){const{data:a}=await _.post("/api-student/studentUnitExamination/getExaminationDetail",{requestType:"form",hideLoading:!1,data:{studentUnitExaminationId:t.id}});e.unitExam=a||{},e.visiableNotice=!0}}catch{}})(n)},{default:()=>["C_ING"===n.status?"继续测验":"开始测验"]})])})]}))),"function"==typeof l||"[object Object]"===Object.prototype.toString.call(l)&&!f(l)?r:{default:()=>[r]}))];var l}}):a(g,{tips:"暂无阶段自测"},null),a(p,{show:e.visiableNotice,"onUpdate:show":t=>e.visiableNotice=t,round:!0,style:{width:"90%"},closeOnClickOverlay:!1},{default:()=>[a(P,{data:e.unitExam,onClose:()=>{e.visiableNotice=!1},onConfirm:y},null)]}),a(v,{message:e.dialogMessage,show:e.dialogStatus,"onUpdate:show":t=>e.dialogStatus=t,showCancelButton:!0,cancelButtonText:"取消",confirmButtonText:"立即开通",onConfirm:()=>{t.push("/memberCenter")}},null),a(k,{show:e.oPopover,"onUpdate:show":t=>e.oPopover=t,actions:e.searchList,onSelect:t=>{e.searchList.forEach((t=>{t.selected=!1})),t.selected=!0,e.statusText=t.name,e.params.status="ALL"===t.id?null:t.id,sessionStorage.setItem("unit-test-search-type",t.id),e.oPopover=!1,S()}},null)])}}}))}}}))}();
|