uni-test-legacy.623170ab.js 4.8 KB

1
  1. !function(){function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e,t,r,n,i,o,a){try{var l=e[o](a),c=l.value}catch(u){return void r(u)}l.done?t(c):Promise.resolve(c).then(n,i)}function n(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function l(e){r(a,i,o,l,c,"next",e)}function c(e){r(a,i,o,l,c,"throw",e)}l(void 0)}))}}var i=document.createElement("style");i.innerHTML="._grid_14l1q_1 .van-grid-item .van-grid-item__content{padding:0;background:transparent}._grid_14l1q_1 .van-grid-item .van-grid-item__content:after{display:none}._grid_14l1q_1 ._gridItem_14l1q_8{position:relative;width:100%;height:2.85333rem;border-radius:.21333rem;overflow:hidden}._grid_14l1q_1 ._gridItem_14l1q_8 ._cover_14l1q_15{position:absolute;left:0;right:0;top:0;bottom:0;z-index:-1;display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}._grid_14l1q_1 ._gridItem_14l1q_8 ._title_14l1q_27{text-align:center;padding:.26667rem;color:#742c00}._grid_14l1q_1 ._gridItem_14l1q_8 ._title_14l1q_27 ._coreTitle_14l1q_32{font-size:.42667rem;font-weight:600;line-height:.58667rem;margin-bottom:.10667rem}._grid_14l1q_1 ._gridItem_14l1q_8 ._num_14l1q_38{position:absolute;left:50%;bottom:.32rem;transform:translate(-50%);justify-content:center;font-size:.32rem;width:70%;line-height:.53333rem;border-radius:.53333rem;background:linear-gradient(180deg,#ff9c7c 0%,#ff5757 100%);display:flex;flex-direction:row;align-items:center;color:#fff}._grid_14l1q_1 ._gridItem_14l1q_8 ._num_14l1q_38 ._playIcon_14l1q_54{font-size:.32rem;margin-left:.05333rem}._grid_14l1q_1 ._gridItem_14l1q_8 ._look_14l1q_58{position:absolute;left:0;right:0;top:0;bottom:0;background-color:rgba(0,0,0,.6);z-index:10;display:flex;align-items:center;justify-content:center;color:#fff}\n",document.head.appendChild(i),System.register(["./index-legacy.48c8d62c.js","./icon-course-legacy.12964838.js","./index-legacy.8429fc95.js"],(function(r){"use strict";var i,o,a,l,c,u,s,_,d,f,g,m,p,v,b,y,q;return{setters:[function(e){i=e.d,o=e.aV,a=e.ag,l=e.e,c=e.R,u=e.r,s=e.$,_=e.c,d=e.q,f=e.a5,g=e.ai,m=e.ak,p=e.m,v=e.f},function(e){b=e.i},function(e){y=e.G,q=e.a}],execute:function(){var h="_grid_14l1q_1",j="_gridItem_14l1q_8",O="_cover_14l1q_15",w="_title_14l1q_27",x="_coreTitle_14l1q_32",k="_look_14l1q_58";r("default",i({name:"uni-test",setup:function(){var r=o(),i=a();l();var I=c({}),P=u({loading:!0,list:[]}),S=function(){var e=n(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return P.loading=!0,e.prev=1,e.next=4,p.post(v.platformApi+"/courseSchedule/queryUnitExamination",{requestType:"form",data:{lessonCoursewareId:r.query.lessonCoursewareId,classGroupId:I.value.classGroupId}});case 4:t=e.sent,P.list=t.data||[],e.next=10;break;case 8:e.prev=8,e.t0=e.catch(1);case 10:P.loading=!1;case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return e.apply(this,arguments)}}();s((function(){I.value=function(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach((function(e){t(r,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))}))}return r}({},JSON.parse(sessionStorage.getItem("unit-create")||"{}")),S()}));var z=function(){var e=n(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("select"!==r.query.code){e.next=3;break}return console.log("选择课时"),e.abrupt("return");case 3:I.value.testName=t.name,I.value.testId=t.id,sessionStorage.setItem("unit-create",JSON.stringify(I.value)),i.push({path:"/uni-last"});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return function(){var e,t;return _("div",{style:{paddingTop:"14px"}},[P.list.length>0?_(y,{gutter:14,columnNum:3,class:h},(t=e=P.list.map((function(e){return _(q,null,{default:function(){return[_("div",{class:j,onClick:function(){return z(e)}},[_("img",{src:b,class:O},null),_("div",{class:w},[_("div",{class:x},[e.name]),_("div",null,[d("已使用 "),e.useNum,d(" 次")])]),!e.unLockFlag&&_("div",{class:k,onClick:function(e){return e.stopPropagation()}},[_(f,{name:"./assets/look.565abde8.svg"},null),d(" 未解锁")])])]}})})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!m(t)?e:{default:function(){return[e]}})):_(g,null,null)])}}}))}}}))}();