index-legacy-e7397c73.js 9.3 KB

1
  1. !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?e(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t,n,r,i,o,a){try{var l=e[o](a),c=l.value}catch(s){return void n(s)}l.done?t(c):Promise.resolve(c).then(r,i)}function i(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)}))}}System.register(["./index-legacy-e6be1dcb.js","./index-legacy-3fae0ac6.js","./api-legacy-b6116bbf.js","./index-legacy-d3534fc9.js","./index-legacy-cdd7affc.js"],(function(e,n){"use strict";var r,o,a,l,c,s,u,g,d,p,m,v,f,h,y,b,w,N,j,_,k,x,A;return{setters:[e=>{r=e.d,o=e.x,a=e.r,l=e.y,c=e.Q,s=e.a,u=e.R,g=e.A,d=e.F,p=e.C,m=e.q,v=e.V,f=e.S,h=e.U,y=e.h,b=e.D,w=e.N},e=>{N=e.M},e=>{j=e.g,_=e.s,k=e.a,x=e.b},e=>{A=e.I},null],execute:function(){var Y=document.createElement("style");Y.textContent="._woringBook_c1785_1{min-height:100vh;background:url("+new URL("woring-bg-f6d25b0e.png",n.meta.url).href+') no-repeat top center;background-size:contain}._woringHeader_c1785_6{display:flex;align-items:center;height:var(--van-nav-bar-height)}._woringHeader_c1785_6 ._leftArrow_c1785_11{padding:0 var(--k-padding-md)}._woringHeader_c1785_6 ._title_c1785_14{position:relative;z-index:1}._woringHeader_c1785_6 ._title_c1785_14 i{width:1.6rem;height:.53333rem;display:inline-block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAAoCAMAAAACNM4XAAAAkFBMVEUAAAA4NjY4NjY4NjY6MzM4NjY2NjY4NjY4Nzc4NjY3Nzc4Nzc5NTU4NjY4NjY4NjY4NjY3NTU3NjY4NjY2NDQ4NjY4NTU3NzcrKys4NjY3Nzc0NDQ4NjY3NjY4NjY3NTU4NTU4NjY4NjY4NjY3MzM3NjY4NjY4NjY3NjY4NjY3NTU2NjY4NjY4NjY4NjY4NjbZy1a/AAAAL3RSTlMAjuGEHsI9Ua3MZqOY1vZ6RlwztxTs+igHYRIN8vCo59Pas20YnHZ0WEs4LsiBQHq7RwoAAANQSURBVFjD5ZfbeqIwFEYDAVQ8IaKCqGit5yrv/3aT/KmEJIiTma83M+uibCJxUbL3JpJ/l2vIuJJGtiXjozrt8tMOC8Y8GFfjJ0fhRE59HY8YOCXDaRavSsbgrbhXKvTItNSJrcRLzDkivlBKh/y0ywKfBz4L4p8RX+XECS4zCG3EaUfhA+uojqUEhDbicMLI2sRJ+ZaEgIGNGHNSIY4jDkWGRCC3En/ZiF0gxMTjYEqGMCc24nzO4/mIc/aCIPCRzCw48ODAgs/mNfZKDWolviDek7ZyshEvXbDmAyPXRa2uXHfEj2sXLGW+l7d2sZlczWJJ/7uMnPqxT2rscGsTThR1GQUf+GIBOtqWDy305HovdnH7UtxBhhBJXEr8sGwm0JNLindT4GviBeZ9SvEnBhakglqJzTUek4iReJo4w00RKRZPNqvdWjz8SzFPm44u7qO66+KBsci9nxBjNc518VlfZLKnMxQspWHuNZOSJkyxtsRJXZyoiwyGos+2Q3WiFvERBaG+nVAkx1dixzcRzaXUoS1iv9I5auQ3ijHDxGkXz03xEm04UsURWvOyynvWokvOiEH/QIy/h4UinuALU1WcwjMh34SKokU8+wb/zJoFYyHe45pCEW/kLk6KCfYEmzax23tSmBuXbvUU85ARuCWY3UhFukZb18VQrdMW8USmck3cGTIuUgxSfgoKWSkd0S91seiaHWtxiGlCfGc7J4/XK66fr/BeIU824lQXiy3HpiWr/f6TbW0aFvMCMQjj/XSOaHwr6jWaj8Q7GKz0eJRblJNsClFNPMUBtRlz1yyvcpqxLhXk0MRWTLFhMMVd7jvVNg0Y94elwRDfPrUV95ExungkbGlRvQKSOT5tEofIiOSl+IM+8WtixIEQh4vFYsnEK5qQ2ib5yqOT6FBNYtHRTqo422+KoC2rRcF+bKtyovQhX1u3MQPiHZ4/iQOwQSaLOBZ3vVPEoEWs7rDu0SMwwT74gQsu5m8nuaV9vBLP3CdrOe1cvidEEWO1TbF8bBtT3JJcg98Ti2W8vxLfRQLYiAteiNO34szleK/EHj7OFPHukOWvxZHYq92cXpvY5vcxxNvB2UNIuya4v0PV4JfX8/HuDJoILMWPhPw3/ALfNqFjdLNr1QAAAABJRU5ErkJggg==) no-repeat center;background-size:contain}._woringHeader_c1785_6 ._title_c1785_14:after{content:" ";display:inline-block;position:absolute;left:0;bottom:-.05333rem;width:1.28rem;height:.16rem;background:linear-gradient(270deg,rgba(119,255,239,.59) 0%,#42CDFF 100%);opacity:.5;z-index:-1}._woringSecgtion_c1785_37{min-height:calc(100vh - var(--header-height) - 2.93333rem);margin-top:2.93333rem;background:#FFFFFF;border-radius:.42667rem .42667rem 0 0;padding:.53333rem .37333rem}._woringSecgtion_c1785_37 ._woringImg_c1785_44{margin-bottom:.42667rem;width:100%}._woringBookTablet_c1785_48{background:url('+new URL("woring-bg-tablet-69a251fe.png",n.meta.url).href+") no-repeat top center;background-size:contain}\n",document.head.appendChild(Y);const R="_woringBook_c1785_1",S="_woringHeader_c1785_6",O="_leftArrow_c1785_11",U="_title_c1785_14",E="_woringSecgtion_c1785_37",C="_woringImg_c1785_44",T="_woringBookTablet_c1785_48",z=""+new URL("ai-exam-ac155650.png",n.meta.url).href,B=""+new URL("woring-practice-5f4735ad.png",n.meta.url).href,L=""+new URL("woring-stat-fe2f9a06.png",n.meta.url).href,P=""+new URL("ai-exam-tablet-59317842.png",n.meta.url).href,H=""+new URL("woring-practice-tablet-e52c153b.png",n.meta.url).href,J=""+new URL("woring-stat-tablet-45571c53.png",n.meta.url).href,M=r({name:"woring",emits:["close"],setup(e,{emit:n}){const r=o({box:{height:""},show:!1,steps:[{ele:"",eleRect:{},img:j("woring1.png"),handStyle:{left:"4.5rem"},imgStyle:{width:"8.19rem",height:"3.9rem",top:"0.6rem",left:"0.8rem"},btnsStyle:{top:"5.2rem",left:"3.5rem"},type:"bottom"},{ele:"",eleRect:{},img:j("woring2.png"),handStyle:{left:"4.5rem"},imgStyle:{width:"8.19rem",height:"3.9rem",top:"0.6rem",left:"0.8rem"},btnsStyle:{top:"5.2rem",left:"3.5rem"},type:"bottom"},{ele:"",img:j("woring3.png"),handStyle:{top:"-1.39rem",left:"4.5rem",transform:"rotate(180deg)"},imgStyle:{width:"8.19rem",height:"3.9rem",top:"-7.4rem",left:"0.8rem"},btnsStyle:{top:"-2.6rem",left:"2.11rem"}}],step:0}),m=a(!1),v=a(!0),f=a({}),h=function(){var e=i((function*(){try{const t=yield k({guideTag:"guideInfo"});var e;if(t.data)f.value=JSON.parse(null===(e=t.data)||void 0===e?void 0:e.guideValue)||null;else f.value={};f.value&&f.value.woring?m.value=!1:m.value=!0}catch(t){console.log(t)}}));return function(){return e.apply(this,arguments)}}(),y=()=>{const e=document.getElementById(`woring-${r.step}`);if(e){var t;const n=e.getBoundingClientRect();r.box={left:n.x+"px",top:n.y+"px",width:n.width+"px",height:n.height+"px"},console.log(null===(t=r.box)||void 0===t?void 0:t.height)}else w()};l((()=>{setTimeout((()=>{document.documentElement.clientWidth>750?(console.log("PAD"),v.value=!0):(v.value=!1,console.log("PHONE")),y(),h()}),500),window.addEventListener("resize",b)}));const b=()=>{y()};c((()=>{window.removeEventListener("resize",b)}));const w=()=>{r.step>=3?N():(r.step=r.step+1,y())},N=function(){var e=i((function*(){f.value?f.value.woring=!0:f.value={woring:!0};try{yield x({guideTag:"guideInfo",guideValue:JSON.stringify(f.value)})}catch(e){console.log(e)}m.value=!1}));return function(){return e.apply(this,arguments)}}();return()=>s(u,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",_.guidePopup],show:m.value,"onUpdate:show":e=>m.value=e},{default:()=>[s("div",{class:_.content,onClick:()=>w()},[r.step!=r.steps.length-1&&s("div",{class:[_.backBtn,_.right],onClick:e=>{e.stopPropagation(),N()}},[g("跳过")]),s("div",{class:[_.box,_.noscalc],style:t({},r.box),id:`modeType-${r.step}`},[r.steps.map(((e,t)=>{var n,i,o,a;return s("div",{onClick:e=>e.stopPropagation(),class:_.item,style:"bottom"==e.type?{display:t===r.step?"":"none",left:`${null===(n=e.eleRect)||void 0===n?void 0:n.left}px`,top:`${null===(i=r.box)||void 0===i?void 0:i.height}`}:{display:t===r.step?"":"none",left:`${null===(o=e.eleRect)||void 0===o?void 0:o.left}px`,top:`${null===(a=e.eleRect)||void 0===a?void 0:a.top}px`}},[s("img",{class:_.img,style:e.imgStyle,src:e.img},null),s("img",{class:_.iconHead,style:e.handStyle,src:j("indexDot.png")},null),s("div",{class:_.btns,style:e.btnsStyle},[r.step+1==r.steps.length?s(d,null,[s(p,{class:[_.btn,_.sacleBtn],round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:()=>{r.step=0,y()}},{default:()=>[g("再看一遍")]}),s(p,{class:[_.btn,_.endBtn,_.sacleBtn],round:!0,type:"primary",onClick:()=>N()},{default:()=>[g("完成")]})]):s(p,{class:[_.btn,_.sacleBtn],round:!0,type:"primary",onClick:()=>w()},{default:()=>[g("下一步 ("),r.step+1,g("/"),r.steps.length,g(")")]})])])}))])])]})}});e("default",r({name:"wroing-book",setup(){const e=m(),t=function(){var t=i((function*(){try{const{data:t}=yield b.post("/edu-app/studentUnitExamination/errorEdition",{hideLoading:!1,data:{page:1,rows:50}});(t||{}).total>0?e.push({path:"/error-question-mode"}):setTimeout((()=>{w("暂无错题")}),100)}catch(t){}}));return function(){return t.apply(this,arguments)}}();return()=>s("div",{class:[R,f().isTablet?T:""]},[s(N,{position:"top"},{default:()=>[s(v,{border:!1,background:"transparent"},{content:()=>s("div",{class:S},[s("i",{onClick:()=>{f().isApp?h({api:"goBack"}):e.back()},class:["van-badge__wrapper van-icon van-icon-arrow-left van-nav-bar__arrow",O]},null),s("span",{class:U},[s("i",null,null)])])})]}),s("div",{class:E},[s(A,y({id:"woring-0"},{lazyLoad:!0,src:f().isTablet?J:L,class:C,onClick:()=>e.push("wroing-stat")}),null),s(A,y({id:"woring-1"},{lazyLoad:!0,src:f().isTablet?H:B,class:C,onClick:t}),null),s(A,y({id:"woring-2"},{lazyLoad:!0,src:f().isTablet?P:z,class:C,onClick:()=>e.push("ai-exam")}),null)]),s(M,null,null)])}}))}}}))}();