(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d1fd2760"],{"318f":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"title",rawName:"v-title",value:"心理普测",expression:"'心理普测'"}]},[i("NavBar",{attrs:{title:t.user.realname,"left-arrow":""},on:{"click-left":function(e){return t.$router.push(t.root)}}}),i("CellGroup",{staticClass:"list",attrs:{title:"待测问卷"}},t._l(t.list,(function(e){return i("Cell",{key:e.id,attrs:{clickable:""},on:{click:function(i){return t.start(e.id)}}},[i("div",[i("img",{attrs:{src:e.picture||"img/mht.png"}})]),i("div",{staticClass:"info"},[i("h2",[t._v(t._s(e.name_fr||e.name_ch))]),i("p",{staticClass:"van-multi-ellipsis--l2"},[t._v(t._s(e.intro2))])])])})),1),i("Popup",{attrs:{position:"bottom","close-on-click-overlay":!1},model:{value:t.license.show,callback:function(e){t.$set(t.license,"show",e)},expression:"license.show"}},[i("Divider",[t._v(t._s(t.user.realname)+"("+t._s(t.user.number)+")")]),i("div",{staticClass:"license-content",domProps:{innerHTML:t._s(t.license.content)}}),i("div",{staticClass:"gap"},[i("Button",{attrs:{type:"primary",block:""},on:{click:t.agreeLicense}},[t._v("我知道了,进入测评")]),i("Button",{staticStyle:{"margin-top":"5px"},attrs:{block:""},on:{click:function(e){return t.$router.push(t.root)}}},[t._v("我再想想")])],1)],1)],1)},s=[],r=i("6b41"),o=i("7744"),a=i("34e9"),c=i("e41f"),l=i("b650"),u=i("9ed2"),h=i("a78e"),d=i.n(h),f=i("5a0c"),p=i.n(f),g={name:"Puce",components:{NavBar:r["a"],Cell:o["a"],CellGroup:a["a"],Popup:c["a"],Button:l["a"],Divider:u["a"]},data(){return{user:this.$store("user"),root:"/school/student",school:{},list:[],license:{show:!1,content:""},id:0}},mounted(){this.getSchoolSetting()},methods:{getSchoolSetting(){const t=t=>{t.expiredate&&t.expiredate<=p()().format("YYYY-MM-DD")?this.$dialog.alert({title:"系统提示",message:"对不起,您的系统试用期限("+t.expiredate+")已过。",showConfirmButton:!1}):(this.school=Object.freeze(t),this.checkUserInfo())},e=this.$store("school");e&&e.id===this.user.member_type_top?t(e):(this.$loading.show(),this.$http.get("/school/"+this.$number.encrypt(this.user.member_type_top)+"/setting").then(e=>{0===e.code&&(this.$loading.hide(),this.$store("school",e.data),this.$i18n.locale=String(e.data.type),t(e.data))}))},checkUserInfo(){this.school.complete_info&&(this.user.realname+""===""||this.user.age<6||!this.$global.MobileValidateReg.test(this.user.mobile))?this.school.modinfo?this.$dialog.alert({title:"系统提示",message:"请你完整个人基本资料后再进行心理测试。"}).then(()=>window.location="/m/school/student/my_edit.asp?redirect=/m/vant/#/school/student/puce"):this.$dialog.alert({title:"系统提示",message:"你的个人基本资料不完整,但是当前系统不允许修改资料,请联系管理员处理。"}).then(()=>this.$router.push(this.root)):this.checkCrisisTest()},checkCrisisTest(){if(this.school.crisis&&this.school.crisislb){const t=[121,111,160];[1,2,16].includes(this.school.type)?t[0]=159:[4,5,6,10,11].includes(this.school.type)?(t[0]=190,t[1]=178,t[2]=191):[7,13].includes(this.school.type)&&(t[0]=164,t[1]=178,t[2]=179),this.$loading.show(),this.$http.get("/member/0/tested",{lb:t[0],valid:1,mini:1,top:2}).then(e=>{0===e.code&&(this.$loading.hide(),e.data.length?this.getList():(this.id=t[0],this.showLicense()))})}else this.getList()},getList(){this.$loading.show(),this.$http.get("/member/0/totestlist").then(t=>{0===t.code&&(this.$loading.hide(),t.data.length?(this.list=t.data,this.showLicense()):this.$toast({message:"当前没有待测问卷",onClose:()=>this.$router.push(this.root)}))})},showLicense(){1!==this.$store.session("agree-puce-license")&&this.school.testintro?(this.license.content="

"+this.school.testintro.replace(/\r\n/g,"

")+"

",this.license.show=!0):this.id&&this.start()},agreeLicense(){this.$store.session("agree-puce-license",1),this.license.show=!1,this.id&&this.start()},start(t){t?d.a.set("TestList",this.list.map(t=>t.id).join()):d.a.remove("TestList"),d.a.set("TestRedirect","/m/vant/#/school/student/puce"),this.$router.push("/test-start/"+(t||this.id))}}},v=g,$=(i("6392"),i("2877")),m=Object($["a"])(v,n,s,!1,null,"33033fc6",null);e["default"]=m.exports},"34e9":function(t,e,i){"use strict";var n=i("2638"),s=i.n(n),r=i("d282"),o=i("ba31"),a=i("b1d2"),c=Object(r["a"])("cell-group"),l=c[0],u=c[1];function h(t,e,i,n){var r,c=t("div",s()([{class:[u(),(r={},r[a["f"]]=e.border,r)]},Object(o["b"])(n,!0)]),[null==i.default?void 0:i.default()]);return e.title||i.title?t("div",{key:n.data.key},[t("div",{class:u("title")},[i.title?i.title():e.title]),c]):c}h.props={title:String,border:{type:Boolean,default:!0}},e["a"]=l(h)},"3f5a":function(t,e,i){},"5a0c":function(t,e,i){!function(e,i){t.exports=i()}(0,(function(){"use strict";var t=1e3,e=6e4,i=36e5,n="millisecond",s="second",r="minute",o="hour",a="day",c="week",l="month",u="quarter",h="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},$=function(t,e,i){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(i)+t},m={s:$,z:function(t){var e=-t.utcOffset(),i=Math.abs(e),n=Math.floor(i/60),s=i%60;return(e<=0?"+":"-")+$(n,2,"0")+":"+$(s,2,"0")},m:function t(e,i){if(e.date()