index-legacy-91e030da.js 8.8 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,l){try{var a=e[o](l),s=a.value}catch(c){return void n(c)}a.done?t(s):Promise.resolve(s).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var l=e.apply(t,n);function a(e){r(l,i,o,a,s,"next",e)}function s(e){r(l,i,o,a,s,"throw",e)}a(void 0)}))}}System.register(["./index-legacy-e1ea41b7.js","./index-legacy-820d5526.js","./api-legacy-ab9dabcf.js","./index-legacy-01b7024c.js","./index-legacy-c9b011be.js"],(function(e,n){"use strict";var r,o,l,a,s,c,u,g,d,p,v,m,f,y,h,b,w,j,N,_,x,A,k;return{setters:[e=>{r=e.d,o=e.x,l=e.r,a=e.y,s=e.a8,c=e.a,u=e.V,g=e.A,d=e.F,p=e.C,v=e.q,m=e.S,f=e.R,y=e.a6,h=e.h,b=e.D,w=e.E},e=>{j=e.M},e=>{N=e.g,_=e.s,x=e.a,A=e.b},e=>{k=e.I},null],execute:function(){var Y=document.createElement("style");Y.textContent="._woringBook_uv0qg_1{min-height:100vh;background:url("+new URL("woring-bg-f6d25b0e.png",n.meta.url).href+') no-repeat top center;background-size:contain}._woringHeader_uv0qg_6{display:flex;align-items:center;height:var(--van-nav-bar-height)}._woringHeader_uv0qg_6 ._leftArrow_uv0qg_11{padding:0 var(--k-padding-md)}._woringHeader_uv0qg_6 ._title_uv0qg_14{position:relative;z-index:1}._woringHeader_uv0qg_6 ._title_uv0qg_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_uv0qg_6 ._title_uv0qg_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_uv0qg_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_uv0qg_37 ._woringImg_uv0qg_44{margin-bottom:.42667rem;width:100%}\n',document.head.appendChild(Y);const S="_woringBook_uv0qg_1",O="_woringHeader_uv0qg_6",E="_leftArrow_uv0qg_11",R="_title_uv0qg_14",U="_woringSecgtion_uv0qg_37",C="_woringImg_uv0qg_44",q=""+new URL("ai-exam-ac155650.png",n.meta.url).href,z=""+new URL("woring-practice-5f4735ad.png",n.meta.url).href,B=""+new URL("woring-stat-fe2f9a06.png",n.meta.url).href,P=r({name:"woring",emits:["close"],setup(e,{emit:n}){const r=o({box:{height:""},show:!1,steps:[{ele:"",eleRect:{},img:N("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:N("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:N("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}),v=l(!1),m=l(!0),f=l({}),y=function(){var e=i((function*(){try{const t=yield x({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?v.value=!1:v.value=!0}catch(t){console.log(t)}}));return function(){return e.apply(this,arguments)}}(),h=()=>{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()};a((()=>{setTimeout((()=>{document.documentElement.clientWidth>750?(console.log("PAD"),m.value=!0):(m.value=!1,console.log("PHONE")),h(),y()}),500),window.addEventListener("resize",b)}));const b=()=>{h()};s((()=>{window.removeEventListener("resize",b)}));const w=()=>{r.step>=3?j():(r.step=r.step+1,h())},j=function(){var e=i((function*(){f.value?f.value.woring=!0:f.value={woring:!0};try{yield A({guideTag:"guideInfo",guideValue:JSON.stringify(f.value)})}catch(e){console.log(e)}v.value=!1}));return function(){return e.apply(this,arguments)}}();return()=>c(u,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",_.guidePopup],show:v.value,"onUpdate:show":e=>v.value=e},{default:()=>[c("div",{class:_.content,onClick:()=>w()},[r.step!=r.steps.length-1&&c("div",{class:[_.backBtn,_.right],onClick:e=>{e.stopPropagation(),j()}},[g("跳过")]),c("div",{class:[_.box,_.noscalc],style:t({},r.box),id:`modeType-${r.step}`},[r.steps.map(((e,t)=>{var n,i,o,l;return c("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===(l=e.eleRect)||void 0===l?void 0:l.top}px`}},[c("img",{class:_.img,style:e.imgStyle,src:e.img},null),c("img",{class:_.iconHead,style:e.handStyle,src:N("indexDot.png")},null),c("div",{class:_.btns,style:e.btnsStyle},[r.step+1==r.steps.length?c(d,null,[c(p,{class:[_.btn,_.sacleBtn],round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:()=>{r.step=0,h()}},{default:()=>[g("再看一遍")]}),c(p,{class:[_.btn,_.endBtn,_.sacleBtn],round:!0,type:"primary",onClick:()=>j()},{default:()=>[g("完成")]})]):c(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=v(),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()=>c("div",{class:S},[c(j,{position:"top"},{default:()=>[c(m,{border:!1,background:"transparent"},{content:()=>c("div",{class:O},[c("i",{onClick:()=>{f().isApp?y({api:"goBack"}):e.back()},class:["van-badge__wrapper van-icon van-icon-arrow-left van-nav-bar__arrow",E]},null),c("span",{class:R},[c("i",null,null)])])})]}),c("div",{class:U},[c(k,h({id:"woring-0"},{lazyLoad:!0,src:B,class:C,onClick:()=>e.push("wroing-stat")}),null),c(k,h({id:"woring-1"},{lazyLoad:!0,src:z,class:C,onClick:t}),null),c(k,h({id:"woring-2"},{lazyLoad:!0,src:q,class:C,onClick:()=>e.push("ai-exam")}),null)]),c(P,null,null)])}}))}}}))}();