(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c1258ce4"],{"3cc9":function(t,e,r){"use strict";r.r(e);var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"container"},[r("Empty",{attrs:{description:"正在进入,请稍候 ..."}})],1)},s=[],a=r("d282"),n=r("ea8e"),o="van-empty-network-",c={render:function(){var t=arguments[0],e=function(e,r,i){return t("stop",{attrs:{"stop-color":e,offset:r+"%","stop-opacity":i}})};return t("svg",{attrs:{viewBox:"0 0 160 160",xmlns:"http://www.w3.org/2000/svg"}},[t("defs",[t("linearGradient",{attrs:{id:o+"1",x1:"64.022%",y1:"100%",x2:"64.022%",y2:"0%"}},[e("#FFF",0,.5),e("#F2F3F5",100)]),t("linearGradient",{attrs:{id:o+"2",x1:"50%",y1:"0%",x2:"50%",y2:"84.459%"}},[e("#EBEDF0",0),e("#DCDEE0",100,0)]),t("linearGradient",{attrs:{id:o+"3",x1:"100%",y1:"0%",x2:"100%",y2:"100%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:o+"4",x1:"100%",y1:"100%",x2:"100%",y2:"0%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:o+"5",x1:"0%",y1:"43.982%",x2:"100%",y2:"54.703%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:o+"6",x1:"94.535%",y1:"43.837%",x2:"5.465%",y2:"54.948%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("radialGradient",{attrs:{id:o+"7",cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54835 0 .5 -.5)"}},[e("#EBEDF0",0),e("#FFF",100,0)])]),t("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[t("g",{attrs:{opacity:".8"}},[t("path",{attrs:{d:"M0 124V46h20v20h14v58H0z",fill:"url(#"+o+"1)",transform:"matrix(-1 0 0 1 36 7)"}}),t("path",{attrs:{d:"M121 8h22.231v14H152v77.37h-31V8z",fill:"url(#"+o+"1)",transform:"translate(2 7)"}})]),t("path",{attrs:{fill:"url(#"+o+"7)",d:"M0 139h160v21H0z"}}),t("path",{attrs:{d:"M37 18a7 7 0 013 13.326v26.742c0 1.23-.997 2.227-2.227 2.227h-1.546A2.227 2.227 0 0134 58.068V31.326A7 7 0 0137 18z",fill:"url(#"+o+"2)","fill-rule":"nonzero",transform:"translate(43 36)"}}),t("g",{attrs:{opacity:".6","stroke-linecap":"round","stroke-width":"7"}},[t("path",{attrs:{d:"M20.875 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+o+"3)",transform:"translate(43 36)"}}),t("path",{attrs:{d:"M9.849 0C3.756 6.225 0 14.747 0 24.146c0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+o+"3)",transform:"translate(43 36)"}}),t("path",{attrs:{d:"M57.625 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+o+"4)",transform:"rotate(-180 76.483 42.257)"}}),t("path",{attrs:{d:"M73.216 0c-6.093 6.225-9.849 14.747-9.849 24.146 0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+o+"4)",transform:"rotate(-180 89.791 42.146)"}})]),t("g",{attrs:{transform:"translate(31 105)","fill-rule":"nonzero"}},[t("rect",{attrs:{fill:"url(#"+o+"5)",width:"98",height:"34",rx:"2"}}),t("rect",{attrs:{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.114"}}),t("rect",{attrs:{fill:"url(#"+o+"6)",x:"15",y:"12",width:"18",height:"6",rx:"1.114"}})])])])}},h=Object(a["a"])("empty"),l=h[0],d=h[1],u=["error","search","default"],f=l({props:{imageSize:[Number,String],description:String,image:{type:String,default:"default"}},methods:{genImageContent:function(){var t=this.$createElement,e=this.slots("image");if(e)return e;if("network"===this.image)return t(c);var r=this.image;return-1!==u.indexOf(r)&&(r="https://img01.yzcdn.cn/vant/empty-image-"+r+".png"),t("img",{attrs:{src:r}})},genImage:function(){var t=this.$createElement,e={width:Object(n["a"])(this.imageSize),height:Object(n["a"])(this.imageSize)};return t("div",{class:d("image"),style:e},[this.genImageContent()])},genDescription:function(){var t=this.$createElement,e=this.slots("description")||this.description;if(e)return t("p",{class:d("description")},[e])},genBottom:function(){var t=this.$createElement,e=this.slots();if(e)return t("div",{class:d("bottom")},[e])}},render:function(){var t=arguments[0];return t("div",{class:d()},[this.genImage(),this.genDescription(),this.genBottom()])}}),g=r("a78e"),m=r.n(g);const p={maxWidth:"initial",left:0};var y={name:"TestStart",components:{Empty:f},data(){return{lbid:this.$route.params.lbid,ageRange:[0,100],user:this.$store("user"),key:this.$route.query.key,testtype:this.$route.query.testtype,from:this.$route.query.from,school:this.$route.query.school}},beforeRouteUpdate(t,e,r){this.lbid=t.params.lbid,this.key=t.query.key,this.testtype=t.query.testtype,this.from=t.query.from,this.school=t.query.school,this.checkParams(),r()},mounted(){this.checkParams()},methods:{checkParams(){m.a.remove("TestID"),m.a.remove("TestAct"),m.a.remove("TestDevice"),/^[1-9]\d*$/g.test(this.lbid)?("0"!==this.testtype&&"1"!==this.testtype&&(this.testtype=0),this.checkLogin()):this.$toast({message:"系统参数(lbid)缺失",onClose:()=>this.$router.back()})},checkLogin(){const t=this.key;t?this.$http.get("/member/"+t).then(t=>{0===t.code&&(m.a.set("PSYMEMBER",t.data.cookie),this.$store("user",t.data),this.user=t.data,this.getScaleInfo())}):this.user?this.getScaleInfo():this.school?this.$router.push("/school/"+this.school+"/student/login?redirect="+this.$route.fullPath):"school"===this.from?this.$router.push("/school/student/login?redirect="+this.$route.fullPath):this.$dialog.alert({title:"系统提示",message:"出了点小问题,请返回或关闭后重新进入。",overlayStyle:p})},getScaleInfo(){this.$http.get("/lb/"+this.lbid,{act:"age"}).then(t=>{0===t.code&&(this.ageRange[0]=t.data.min||0,this.ageRange[1]=t.data.max||100,this.checkAge())})},checkAge(){const t=this.user.age;tthis.ageRange[1]?0===t?window.location="/member/changebirthday.htm?id="+this.user.key+"&redirect="+encodeURIComponent("/m/vant/#/test-start/"+this.lbid):this.$dialog.alert({title:"系统提示",message:"你("+this.user.id+")的年龄("+this.user.age+")不在 "+this.ageRange[0]+" 岁到 "+this.ageRange[1]+" 之间,不适合进行该项测评("+this.lbid+")。",overlayStyle:p}):this.start()},start(){this.$http.post("/test/start",{lbid:this.lbid,testtype:this.testtype}).then(t=>{0===t.code?(m.a.set("TestID",t.data),m.a.set("TestAct","MemberTest"),m.a.set("TestDevice","Mobile"),window.location.replace("/lb/html/"+this.lbid+".htm")):1===t.code?this.$dialog.alert({title:"系统提示",message:t.message,overlayStyle:p}).then(()=>this.$router.replace("/school/student")):2===t.code&&this.$dialog.confirm({title:"系统提示",message:"对不起,系统繁忙,请重试,或者返回后待系统空闲时重试。",confirmButtonText:"重试",cancelButtonText:"返回",overlayStyle:p}).then(()=>{this.$dialog.close(),this.start()}).catch(()=>this.$router.replace("/school/student"))}).catch(()=>{this.$dialog.confirm({title:"系统提示",message:"对不起,系统繁忙,请重试,或者返回后待系统空闲时重试。",confirmButtonText:"重试",cancelButtonText:"返回",overlayStyle:p}).then(()=>{this.$dialog.close(),this.start()}).catch(()=>this.$router.replace("/school/student"))})}}},v=y,x=(r("7dea"),r("2877")),E=Object(x["a"])(v,i,s,!1,null,"e80b9764",null);e["default"]=E.exports},"7dea":function(t,e,r){"use strict";r("8798")},8798:function(t,e,r){},a78e:function(t,e,r){var i,s; /*! * JavaScript Cookie v2.2.1 * https://github.com/js-cookie/js-cookie * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license */(function(a){var n;if(i=a,s="function"===typeof i?i.call(e,r,e,t):i,void 0===s||(t.exports=s),n=!0,t.exports=a(),n=!0,!n){var o=window.Cookies,c=window.Cookies=a();c.noConflict=function(){return window.Cookies=o,c}}})((function(){function t(){for(var t=0,e={};t