|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["home"],{"066f":function(e,t,i){},"0b53":function(e,t,i){},"1c81":function(e,t,i){},2017:function(e,t,i){"use strict";i("3b76")},2943:function(e,t,i){"use strict";i("6b56")},"3b76":function(e,t,i){},"4e8f":function(e,t,i){"use strict";i("0b53")},"5bc0":function(e,t,i){"use strict";i("76af")},"6b56":function(e,t,i){},"70f5":function(e,t,i){},"76af":function(e,t,i){},"7a6e":function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"error401"},[i("div",{staticClass:"error401-body-con"},[e._m(0),i("p",{staticClass:"error401-body-con-message"},[e._v("You don't have permission")]),i("div",{staticClass:"error401-btn-con"},[i("a",{staticClass:"error401-home-button",attrs:{href:"/"}},[e._v("返回首页")]),i("div",{staticClass:"error401-block-button",on:{click:e.backPage}},[e._v("返回上一页")])])])])},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"error401-body-con-title"},[e._v("4"),i("span",{staticClass:"error401-0-span"},[e._v("0")]),i("span",{staticClass:"error401-key-span"},[e._v("3")])])}],s={name:"Error401",methods:{backPage:function(){this.$router.go(-1)}}},o=s,a=(i("2943"),i("2877")),l=Object(a["a"])(o,r,n,!1,null,null,null);t["default"]=l.exports},"7c8c":function(e,t,i){"use strict";i("066f")},"97cd":function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"ms-doc"})])}],s={data:function(){return{}}},o=s,a=(i("7c8c"),i("2877")),l=Object(a["a"])(o,r,n,!1,null,"53300195",null);t["default"]=l.exports},"9ed6":function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"login-container"},[r("el-form",{ref:"ruleForm",staticClass:"card-box login-form",attrs:{autocomplete:"on",model:e.ruleForm,rules:e.rules,"label-position":"left"}},[r("el-card",{staticClass:"box-card"},[r("div",{staticStyle:{"text-align":"center","margin-top":"10px"}},[r("img",{attrs:{alt:"element-logo",src:i("cf05")}})]),r("h3",{staticClass:"title"},[e._v("用户登录")]),r("el-form-item",{staticClass:"item",staticStyle:{"margin-top":"-20px"},attrs:{prop:"username"}},[r("el-input",{attrs:{placeholder:"账号",name:"userName",autocomplete:"on"},model:{value:e.ruleForm.userName,callback:function(t){e.$set(e.ruleForm,"userName",t)},expression:"ruleForm.userName"}},[r("i",{staticClass:"el-input__icon",attrs:{slot:"prefix"},slot:"prefix"},[r("icon-svg",{attrs:{"icon-class":"user"}})],1)])],1),r("el-form-item",{staticClass:"item",attrs:{prop:"password"}},[r("el-input",{attrs:{placeholder:"密码",name:"pwd",type:e.isShowPwd?"text":"password",autocomplete:"on"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin.apply(null,arguments)}},model:{value:e.ruleForm.pwd,callback:function(t){e.$set(e.ruleForm,"pwd",t)},expression:"ruleForm.pwd"}},[r("i",{staticClass:"el-input__icon",attrs:{slot:"prefix"},slot:"prefix"},[r("icon-svg",{attrs:{"icon-class":"pwd"}})],1),r("i",{staticClass:"el-input__icon",attrs:{slot:"suffix"},on:{click:function(t){e.isShowPwd=!e.isShowPwd}},slot:"suffix"},[r("icon-svg",{attrs:{"icon-class":"eye"}})],1)])],1),r("el-form-item",{staticClass:"item",staticStyle:{"background-color":"white"},attrs:{prop:"verificationCode"}},[r("Verify",{ref:"checkV",attrs:{showButton:!1,barSize:{width:"305px",height:"37px"},vOffset:5,type:3},on:{success:function(t){return e.verifyAlert("success")},error:function(t){return e.verifyAlert("error")}}})],1),r("div",{staticStyle:{"text-align":"center","margin-top":"15px"}},[r("el-button",{staticStyle:{width:"60%","margin-bottom":"30px"},attrs:{type:"primary",loading:e.loading},nativeOn:{click:function(t){return e.handleLogin()}}},[e._v("登录\n ")])],1),r("div",{staticStyle:{"margin-top":"-15px"}},[r("a",{staticStyle:{"margin-left":"50%","font-size":"12px"},attrs:{href:"#/register"}},[e._v("立即注册")]),r("a",{staticStyle:{"margin-left":"5%","font-size":"12px"},attrs:{href:"#/forgetPasswd"}},[e._v("忘记密码")])])],1)],1),e._m(0)],1)},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{position:"absolute",bottom:"0",left:"50%",transform:"translate(-50%, -50%)"}},[i("a",{staticStyle:{color:"white","font-size":"12px"},attrs:{href:"http://www.beian.gov.cn/portal/registerSystemInfo"}},[e._v("\n 厦门高立新鹏软件科技有限公司 闽公网安备35020302034269号 \n ")]),i("a",{staticStyle:{color:"white","font-size":"10px"},attrs:{href:"http://beian.miit.gov.cn"}},[e._v("闽ICP备17019234号")])])}],s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.componentType?i(e.componentType,{ref:"instance",tag:"components",attrs:{type:e.verifyType,figure:e.figure,arith:e.arith,width:e.width,height:e.height,fontSize:e.fontSize,codeLength:e.codeLength,mode:e.mode,vOffset:e.vOffset,vSpace:e.vSpace,explain:e.explain,imgUrl:e.imgUrl,imgName:e.imgName,showButton:e.showButton,imgSize:e.imgSize,blockSize:e.blockSize,barSize:e.barSize,defaultNum:e.defaultNum,checkNum:e.checkNum}}):e._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:e.showButton,expression:"showButton"}],staticStyle:{width:"0",height:"0"},on:{click:e.checkCode}},[e._t("check",(function(){return[i("button",{staticClass:"verify-btn"},[e._v(e._s(e.i18n("ok")))])]}))],2)],1)},o=[],a=(i("6b54"),i("c5f6"),function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"cerify-code-panel"},[i("div",{staticClass:"verify-code",style:{width:e.width,height:e.height,"line-height":e.height,"font-size":e.fontSize,"background-color":e.containerBackgroundColor,color:e.containerColor},on:{click:e.setCode}},e._l(e.codeShow,(function(t){return i("span",{style:t.style},[e._v("\n "+e._s(t.char||t)+"\n ")])})),0),i("div",{staticClass:"verify-code-area",style:{width:e.width}},[i("div",{staticClass:"verify-input-area"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],staticClass:"varify-input-code",attrs:{type:"text"},domProps:{value:e.inputValue},on:{input:function(t){t.target.composing||(e.inputValue=t.target.value)}}})]),i("div",{staticClass:"verify-change-area",on:{click:e.setCode}},[i("a",{staticClass:"verify-change-code"},[e._v("换一张")])])])])}),l=[];i("28a5");function c(e){var t,i,r,n,s=e.$el.parentNode.offsetWidth||window.offsetWidth,o=e.$el.parentNode.offsetHeight||window.offsetHeight;return t=-1!=e.imgSize.width.indexOf("%")?parseInt(this.imgSize.width)/100*s+"px":this.imgSize.width,i=-1!=e.imgSize.height.indexOf("%")?parseInt(this.imgSize.height)/100*o+"px":this.imgSize.height,r=-1!=e.barSize.width.indexOf("%")?parseInt(this.barSize.width)/100*s+"px":this.barSize.width,n=-1!=e.barSize.height.indexOf("%")?parseInt(this.barSize.height)/100*o+"px":this.barSize.height,{imgWidth:t,imgHeight:i,barWidth:r,barHeight:n}}const u=[1,2,3,4,5,6,7,8,9,"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],p=["#fffff0","#f0ffff","#f0fff0","#fff0f0"],h=["#FF0033","#006699","#993366","#FF9900","#66CC66","#FF33CC"];var d={name:"VerifyCode",props:{type:{type:String,default:"1"},figure:{type:Number,default:100},arith:{type:Number,default:0},width:{type:String,default:"200px"},height:{type:String,default:"60px"},fontSize:{type:String,default:"30px"},codeLength:{type:Number,default:6}},data:function(){return{isEnd:!1,inputValue:"",containerBackgroundColor:"#fff",containerColor:"#fff",codeChose:"",codeShow:[]}},methods:{init:function(){this.setCode(),this.$parent.$emit("ready",this)},setCode:function(){if(0==this.isEnd)if(this.containerBackgroundColor=p[Math.floor(3*Math.random())],this.containerColor=h[Math.floor(5*Math.random())],this.inputValue="",this.codeShow=[],this.codeChose="","1"===this.type)for(var e=0;e<this.codeLength;e++){var t=Math.floor(52*Math.random()),i=t%2==0?"font-style:italic;margin-right: 10px":"font-weight:bolder";i+=1==Math.floor(2*Math.random())?"font-weight:bolder":"",this.codeChose+=u[t],this.codeShow.push({style:i,char:u[t]})}else if("2"===this.type){var r=Math.floor(Math.random()*this.figure),n=Math.floor(Math.random()*this.figure),s="";if(0==this.arith)var o=Math.floor(3*Math.random());switch(o){case 1:this.codeChose=parseInt(r)+parseInt(n),s=r+" + "+n+" = ?";break;case 2:if(parseInt(r)<parseInt(n)){var a=r;r=n,n=a}this.codeChose=parseInt(r)-parseInt(n),s=r+" - "+n+" = ?";break;default:this.codeChose=parseInt(r)*parseInt(n),s=r+" × "+n+" = ?";break}this.codeShow=s.split("")}},checkCode:function(){var e,t;"1"===this.type?(e=this.inputValue.toUpperCase(),t=this.codeChose.toUpperCase()):(e=this.inputValue,t=this.codeChose),console.log(e),console.log(t),console.log(e==t),e==t?(this.isEnd=!0,this.$parent.$emit("success",this)):(this.$parent.$emit("error",this),this.setCode())},refresh:function(){this.isEnd=!1,this.inputValue="",this.setCode()}},watch:{type:{immediate:!0,handler:function(){this.init()}}},mounted:function(){this.$el.onselectstart=function(){return!1}},i18n:{messages:{"en-US":{},"zh-CN":{}}}},f=d,m=i("2877"),g=Object(m["a"])(f,a,l,!1,null,null,null),y=g.exports,v=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{position:"relative"},on:{mouseover:function(t){e.showImage=!0},mouseout:function(t){e.showImage=!0}}},["2"===e.type?i("div",{directives:[{name:"show",rawName:"v-show",value:e.showImage,expression:"showImage"}],staticClass:"verify-img-out",style:{display:"pop"===e.mode?"none":void 0,position:"pop"===e.mode?"absolute":"relative",height:parseInt(e.setSize.imgHeight)+e.vSpace+"px",bottom:"pop"===e.mode?"42px":void 0},on:{mouseover:function(t){e.showImage=!0},mouseout:function(t){e.showImage=!0}}},[i("div",{staticClass:"verify-img-panel",style:{width:e.setSize.imgWidth,height:e.setSize.imgHeight,background:"url("+e.imgUrl+e.imgName[e.imgRand]+")","background-size":e.setSize.imgWidth+" "+e.setSize.imgHeight}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.showRefresh,expression:"showRefresh"}],staticClass:"verify-refresh",on:{click:e.refresh}},[i("i",{staticClass:"iconfont icon-refresh"})]),i("div",{staticClass:"verify-gap",style:{width:e.blockSize.width,height:e.blockSize.height,top:e.top+"px",left:e.left+"px"}})])]):e._e(),i("div",{staticClass:"verify-bar-area",style:{width:e.setSize.barWidth,height:e.barSize.height,"line-height":e.barSize.height}},[i("span",{staticClass:"verify-msg",domProps:{textContent:e._s(e.text)}}),i("div",{staticClass:"verify-left-bar",style:{width:void 0!==e.leftBarWidth?e.leftBarWidth:e.barSize.height,height:e.barSize.height,"border-color":e.leftBarBorderColor,transaction:e.transitionWidth}},[i("span",{staticClass:"verify-msg",domProps:{textContent:e._s(e.finishText)}}),i("div",{staticClass:"verify-move-block",style:{width:e.barSize.height,height:e.barSize.height,"background-color":e.moveBlockBackgroundColor,left:e.moveBlockLeft,transition:e.transitionLeft},on:{touchstart:e.start,mousedown:e.start}},[i("i",{class:["verify-icon iconfont",e.iconClass],style:{color:e.iconColor}}),"2"===e.type?i("div",{directives:[{name:"show",rawName:"v-show",value:"pop"!==e.mode&&e.showImage,expression:"mode !== 'pop' && showImage"}],staticClass:"verify-sub-block",style:{width:e.blockSize.width,height:e.blockSize.height,top:"-"+(parseInt(e.setSize.imgHeight)-e.top+e.vSpace)+"px","background-image":"url("+e.imgUrl+e.imgName[this.imgRand]+")","background-size":e.setSize.imgWidth+" "+e.setSize.imgHeight,"background-position-y":"-"+e.top+"px","background-position-x":"-"+e.left+"px"}}):e._e()])])])])},b=[],w=(i("a481"),{name:"VerifySlide",props:{type:{type:String,default:"1"},mode:{type:String,default:"fixed"},vOffset:{type:Number,default:5},vSpace:{type:Number,default:5},explain:{type:String,default:"向右滑动完成验证"},imgUrl:{type:String,default:"http://via.placeholder.com/"},imgName:{type:Array,default:function(){return["350x150","350x450"]}},imgSize:{type:Object,default:function(){return{width:"400px",height:"200px"}}},blockSize:{type:Object,default:function(){return{width:"50px",height:"50px"}}},barSize:{type:Object,default:function(){return{width:"400px",height:"40px"}}}},data:function(){return{imgRand:0,text:"",finishText:"",setSize:{imgHeight:0,imgWidth:0,barHeight:0,barWidth:0},top:0,left:0,showImage:!0,moveBlockLeft:void 0,leftBarWidth:void 0,moveBlockBackgroundColor:void 0,leftBarBorderColor:"#ddd",iconColor:void 0,iconClass:"icon-right",status:!1,isEnd:!1,showRefresh:!0,transitionLeft:"",transitionWidth:""}},computed:{barArea:function(){return this.$el.querySelector(".verify-bar-area")},resetSize:function(){return c}},methods:{init:function(){var e=this;this.text=this.explain,this.imgRand=Math.floor(Math.random()*this.imgName.length),this.$nextTick((function(){var t=e.resetSize(e);for(var i in t)e.$set(e.setSize,i,t[i]);e.randSet(),e.$parent.$emit("ready",e)}));var t=this;window.removeEventListener("touchmove",(function(e){t.move(e)})),window.removeEventListener("mousemove",(function(e){t.move(e)})),window.removeEventListener("touchend",(function(){t.end()})),window.removeEventListener("mouseup",(function(){t.end()})),window.addEventListener("touchmove",(function(e){t.move(e)})),window.addEventListener("mousemove",(function(e){t.move(e)})),window.addEventListener("touchend",(function(){t.end()})),window.addEventListener("mouseup",(function(){t.end()}))},start:function(e){0==this.isEnd&&(this.text="",this.moveBlockBackgroundColor="#337ab7",this.leftBarBorderColor="#337AB7",this.iconColor="#fff",e.stopPropagation(),this.status=!0)},move:function(e){if(this.status&&0==this.isEnd){if(e.touches)t=e.touches[0].pageX;else var t=e.clientX;var i=this.getLeft(this.barArea),r=t-i;"1"!==this.type?r>=this.barArea.offsetWidth-parseInt(parseInt(this.blockSize.width)/2)-2&&(r=this.barArea.offsetWidth-parseInt(parseInt(this.blockSize.width)/2)-2):r>=this.barArea.offsetWidth-parseInt(parseInt(this.barSize.height)/2)+3?(this.finishText="松开验证",r=this.barArea.offsetWidth-parseInt(parseInt(this.barSize.height)/2)+3):this.finishText="",r<=0&&(r=parseInt(parseInt(this.blockSize.width)/2)),this.moveBlockLeft=r-parseInt(parseInt(this.blockSize.width)/2)+"px",this.leftBarWidth=r-parseInt(parseInt(this.blockSize.width)/2)+"px"}},end:function(){var e=this;if(this.status&&0==this.isEnd){if("1"!==this.type){var t=parseInt(this.vOffset);parseInt(this.left)>=parseInt((this.moveBlockLeft||"").replace("px",""))-t&&parseInt(this.left)<=parseInt((this.moveBlockLeft||"").replace("px",""))+t?(this.moveBlockBackgroundColor="#5cb85c",this.leftBarBorderColor="#5cb85c",this.iconColor="#fff",this.iconClass="icon-check",this.showRefresh=!1,this.isEnd=!0,this.$parent.$emit("success",this)):(this.moveBlockBackgroundColor="#d9534f",this.leftBarBorderColor="#d9534f",this.iconColor="#fff",this.iconClass="icon-close",setTimeout((function(){e.refresh()}),400),this.$parent.$emit("error",this))}else parseInt((this.moveBlockLeft||"").replace("px",""))>=parseInt(this.setSize.barWidth)-parseInt(this.barSize.height)-parseInt(this.vOffset)?(this.moveBlockBackgroundColor="#5cb85c",this.leftBarBorderColor="#5cb85c",this.iconColor="#fff",this.iconClass="icon-check",this.showRefresh=!1,this.finishText="验证成功",this.isEnd=!0,this.$parent.$emit("success",this)):(this.finishText="",this.moveBlockBackgroundColor="#d9534f",this.leftBarBorderColor="#d9534f",this.iconColor="#fff",this.iconClass="icon-close",this.isEnd=!0,setTimeout((function(){e.finishText="",e.refresh(),e.isEnd=!1}),400),this.$parent.$emit("error",this));this.status=!1}},randSet:function(){var e=Math.floor(9*Math.random()+1),t=Math.floor(9*Math.random()+1),i=e*parseInt(this.setSize.imgHeight)/15+.1*parseInt(this.setSize.imgHeight),r=t*parseInt(this.setSize.imgWidth)/15+.1*parseInt(this.setSize.imgWidth);this.top=i,this.left=r},refresh:function(){var e=this;this.showRefresh=!0,this.finishText="",this.transitionLeft="left .3s",this.moveBlockLeft=0,this.leftBarWidth=void 0,this.transitionWidth="width .3s",this.leftBarBorderColor="#ddd",this.moveBlockBackgroundColor="#fff",this.iconColor="#000",this.iconClass="icon-right",this.randSet(),this.imgRand=Math.floor(Math.random()*this.imgName.length),this.isEnd=!1,setTimeout((function(){e.transitionWidth="",e.transitionLeft="",e.text=e.explain}),300)},getLeft:function(e){var t=0;while(e)t+=e.offsetLeft,e=e.offsetParent;var i=t;return i}},watch:{type:{immediate:!0,handler:function(){this.init()}}},mounted:function(){this.$el.onselectstart=function(){return!1}},i18n:{messages:{"en-US":{},"zh-CN":{}}}}),k=w,x=Object(m["a"])(k,v,b,!1,null,null,null),S=x.exports,C=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{position:"relative"},on:{mouseover:function(t){"pop"===e.mode&&(e.showImage=!0)},mouseout:function(t){"pop"===e.mode&&(e.showImage=!1)}}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.showImage,expression:"showImage"}],staticClass:"verify-img-out",style:"pop"===e.mode?{display:"none",position:"absolute",bottom:"42px",height:parseInt(e.setSize.imgHeight)+e.vSpace+"px"}:{position:"relative",height:parseInt(e.setSize.imgHeight)+e.vSpace+"px"},on:{mouseover:function(t){"pop"===e.mode&&(e.showImage=!0)},mouseout:function(t){"pop"===e.mode&&(e.showImage=!1)}}},[i("div",{staticClass:"verify-img-panel",style:{width:e.setSize.imgWidth,height:e.setSize.imgHeight,"background-size":e.setSize.imgWidth+" "+e.setSize.imgHeight,"margin-bottom":e.vSpace+"px"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.showRefresh,expression:"showRefresh"}],staticClass:"verify-refresh",staticStyle:{"z-index":"3"},on:{click:e.refresh}},[i("i",{staticClass:"iconfont icon-refresh"})]),i("canvas",{ref:"canvas",attrs:{width:e.setSize.imgWidth,height:e.setSize.imgHeight},on:{click:function(t){e.bindingClick&&e.canvasClick(t)}}}),e._l(e.tempPoints,(function(t,r){return i("div",{key:r,staticClass:"point-area",style:{"background-color":"#1abd6c",color:"#fff","z-index":9999,width:"30px",height:"30px","text-align":"center","line-height":"30px","border-radius":"50%",position:"absolute",top:parseInt(t.y-10)+"px",left:parseInt(t.x-10)+"px"}},[e._v("\n "+e._s(r+1)+"\n ")])}))],2)]),i("div",{staticClass:"verify-bar-area",style:{width:this.barSize.width,height:this.barSize.height,color:this.barAreaColor,"border-color":this.barAreaBorderColor,"line-height":this.barSize.height}},[i("span",{staticClass:"verify-msg"},[e._v(e._s(e.text))])])])},z=[];var _={name:"VerifyPoints",props:{mode:{type:String,default:"fixed"},defaultNum:{type:Number,default:4},checkNum:{type:Number,default:3},vSpace:{type:Number,default:5},imgUrl:{type:String,default:"http://via.placeholder.com/"},imgName:{type:Array,default:function(){return["350x150","350x450"]}},imgSize:{type:Object,default:function(){return{width:"400px",height:"200px"}}},barSize:{type:Object,default:function(){return{width:"400px",height:"40px"}}}},data:function(){return{fontPos:[],checkPosArr:[],num:1,imgRand:0,setSize:{imgHeight:0,imgWidth:0,barHeight:0,barWidth:0},showImage:!0,tempPoints:[],text:"",barAreaColor:void 0,barAreaBorderColor:void 0,showRefresh:!0,bindingClick:!0}},computed:{resetSize:function(){return c}},methods:{init:function(){var e=this;this.fontPos.splice(0,this.fontPos.length),this.checkPosArr.splice(0,this.checkPosArr.length),this.num=1,this.imgRand=Math.floor(Math.random()*this.imgName.length),this.$nextTick((function(){e.setSize=e.resetSize(e),e.refresh(),e.$parent.$emit("ready",e)}))},canvasClick:function(e){var t=this;this.checkPosArr.push(this.getMousePos(this.$refs.canvas,e)),this.num==this.checkNum&&(this.num=this.createPoint(this.getMousePos(this.$refs.canvas,e)),setTimeout((function(){var e=t.comparePos(t.fontPos,t.checkPosArr);0==e?(t.$parent.$emit("error",t),t.barAreaColor="#d9534f",t.barAreaBorderColor="#d9534f",t.text="验证失败",setTimeout((function(){t.refresh()}),400)):(t.barAreaColor="#4cae4c",t.barAreaBorderColor="#5cb85c",t.text="验证成功",t.showRefresh=!1,t.bindingClick=!1,t.$parent.$emit("success",t))}),400)),this.num<this.checkNum&&(this.num=this.createPoint(this.getMousePos(this.$refs.canvas,e)))},drawImg:function(e,t){var i=this.$refs.canvas,r=i.getContext("2d");r.drawImage(t,0,0,parseInt(this.setSize.imgWidth),parseInt(this.setSize.imgHeight));for(var n=["italic small-caps bold 20px microsoft yahei","small-caps normal 25px arial","34px microsoft yahei"],s="天地玄黄宇宙洪荒日月盈昃辰宿列张寒来暑往秋收冬藏闰余成岁律吕调阳云腾致雨露结为霜金生丽水玉出昆冈剑号巨阙珠称夜光果珍李柰菜重芥姜海咸河淡鳞潜羽翔龙师火帝鸟官人皇始制文字乃服衣裳推位让国有虞陶唐吊民伐罪周发殷汤坐朝问道垂拱平章爱育黎首臣伏戎羌遐迩体率宾归王",o=[],a=Math.floor(parseInt(this.setSize.imgWidth)/(parseInt(this.defaultNum)+1)),l="",c=Math.floor(5*Math.random()),u=1;u<=this.defaultNum;u++){if(o[u-1]=this.getChars(s,o),l=Math.floor(3*Math.random()),r.font=n[l],r.fillStyle=h[c],1==Math.floor(2*Math.random()))var p=Math.floor(parseInt(this.setSize.imgHeight)/2)+20*l+20;else p=Math.floor(parseInt(this.setSize.imgHeight)/2)-20*l;r.fillText(o[u-1],a*u,p),this.fontPos[u-1]={char:o[u-1],x:a*u,y:p}}for(u=0;u<this.defaultNum-this.checkNum;u++)this.shuffle(this.fontPos).pop();var d="";for(u=0;u<this.fontPos.length;u++)d+=this.fontPos[u].char+",";return this.text="请顺序点击【"+d.substring(0,d.length-1)+"】",this.fontPos},getMousePos:function(e,t){var i=t.offsetX-5,r=t.offsetY-5;return{x:i,y:r}},getChars:function(e,t){var i=parseInt(Math.floor(Math.random()*e.length));i>0&&(i-=1);var r=e.charAt(i);return-1==t.indexOf(r)?r:this.getChars(e,t)},shuffle:function(e){var t,i,r=e.length;while(r)t=Math.random()*r-->>>0,i=e[r],e[r]=e[t],e[t]=i;return e},createPoint:function(e){return this.tempPoints.push(Object.assign({},e)),++this.num},comparePos:function(e,t){for(var i=!0,r=0;r<e.length;r++)if(!(parseInt(t[r].x)+40>e[r].x&&parseInt(t[r].x)-40<e[r].x&&parseInt(t[r].y)+40>e[r].y&&parseInt(t[r].y)-40<e[r].y)){i=!1;break}return i},refresh:function(){this.tempPoints.splice(0,this.tempPoints.length),this.barAreaColor="#000",this.barAreaBorderColor="#ddd",this.bindingClick=!0,this.fontPos.splice(0,this.fontPos.length),this.checkPosArr.splice(0,this.checkPosArr.length),this.num=1,this.imgRand=Math.floor(Math.random()*this.imgName.length);var e=new Image;e.src=this.imgUrl+this.imgName[this.imgRand];var t=this;e.onload=function(e){var i=this;t.$nextTick((function(){t.fontPos=t.drawImg(t.$el,i)}))},this.text="验证失败",this.showRefresh=!0}},watch:{type:{immediate:!0,handler:function(){this.init()}}},mounted:function(){this.$el.onselectstart=function(){return!1}},i18n:{messages:{"en-US":{},"zh-CN":{}}}},N=_,Q=Object(m["a"])(N,C,z,!1,null,null,null),T=Q.exports,$={name:"Vue2Verify",props:{locale:{require:!1,type:String,default:function(){if(navigator.language)var e=navigator.language;else e=navigator.browserLanguage;return e}},type:{type:String|Number,require:!1,default:"picture"},figure:{type:Number},arith:{type:Number},width:{type:String},height:{type:String},fontSize:{type:String},codeLength:{type:Number},mode:{type:String},vOffset:{type:Number},vSpace:{type:Number},explain:{type:String},imgUrl:{type:String},imgName:{type:Array},imgSize:{type:Object},blockSize:{type:Object},barSize:{type:Object},defaultNum:{type:Number},checkNum:{type:Number},showButton:{type:Boolean,default:!0}},data:function(){return{verifyType:void 0,componentType:void 0}},methods:{i18n:function(e){if(this.$t)return this.$t(e);var t=this.$options.i18n.messages[this.locale]||this.$options.i18n.messages["en-US"];return t[e]},checkCode:function(){this.instance.checkCode&&this.instance.checkCode()},refresh:function(){this.instance.refresh&&this.instance.refresh()}},computed:{instance:function(){return this.$refs.instance||{}}},watch:{type:{immediate:!0,handler:function(e){switch(e.toString()){case"picture":this.verifyType="1",this.componentType="VerifyCode";break;case"1":this.verifyType="1",this.componentType="VerifyCode";break;case"compute":this.verifyType="2",this.componentType="VerifyCode";break;case"2":this.verifyType="2",this.componentType="VerifyCode";break;case"slide":this.verifyType="1",this.componentType="VerifySlide";break;case"3":this.verifyType="1",this.componentType="VerifySlide";break;case"puzzle":this.verifyType="2",this.componentType="VerifySlide";break;case"4":this.verifyType="2",this.componentType="VerifySlide";break;case"pick":this.verifyType="",this.componentType="VerifyPoints";break;case"5":this.verifyType="",this.componentType="VerifyPoints";break;default:this.verifyType=void 0,this.componentType=void 0,console.error("Unsupported Type:"+e)}}}},components:{VerifyCode:y,VerifySlide:S,VerifyPoints:T},i18n:{messages:{"en-US":{ok:"ok"},"zh-CN":{ok:"确定"}}}},E=$,I=(i("4e8f"),Object(m["a"])(E,s,o,!1,null,null,null)),O=I.exports,P={data:function(){var e=function(e,t,i){""===t?i(new Error("请输入密码")):i()};return{ruleForm:{userName:"",pwd:"",checked:!0,verificationCode:!1},rules:{userName:[{required:!0,message:"请输入登录名",trigger:"blur"}],pwd:[{validator:e,trigger:"blur"}]},isShowPwd:!1,loading:!1,showDialog:!1,redirect:null}},methods:{verifyAlert:function(e){"success"===e&&(this.ruleForm.verificationCode=!0)},handleLogin:function(){var e=this;this.ruleForm.verificationCode?this.$refs["ruleForm"].validate((function(t){if(!t)return!1;e.loading=!0,e.$store.dispatch("loginName",e.ruleForm).then((function(t){if(e.loading=!1,2e4!==t.code)return console.log("--code = "+t.code),e.ruleForm.verificationCode=!1,e.$refs.checkV.refresh(),void e.$message.error(t.message);var i="/";e.redirect&&(i=e.redirect),console.log("path = "+i),e.$router.push({path:"../main"})})).catch((function(){e.ruleForm.verificationCode=!1,e.$refs.checkV.refresh(),e.loading=!1}))})):this.$message({message:"请进行验证",center:!0,type:"warning"})}},components:{Verify:O},created:function(){var e=this.$route.query;e.redirect&&(this.redirect=decodeURIComponent(e.redirect))}},B=P,A=(i("2017"),Object(m["a"])(B,r,n,!1,null,null,null));t["default"]=A.exports},a09c:function(e,t,i){},a574:function(e,t,i){"use strict";i("70f5")},aae1:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"error404"},[i("div",{staticClass:"error404-body-con"},[e._m(0),i("p",{staticClass:"error404-body-con-message"},[e._v("YOU LOOK LOST")]),i("div",{staticClass:"error404-btn-con"},[i("a",{staticClass:"error404-home-button",attrs:{href:"/"}},[e._v("返回首页")]),i("div",{staticClass:"error404-block-button",on:{click:e.backPage}},[e._v("返回上一页")])])])])},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"error404-body-con-title"},[e._v("4"),i("span",[e._v("0")]),e._v("4")])}],s={name:"Error404",methods:{backPage:function(){this.$router.go(-1)}}},o=s,a=(i("e0e1"),i("2877")),l=Object(a["a"])(o,r,n,!1,null,null,null);t["default"]=l.exports},b311:function(e,t,i){
|
|
|
(function(t,i){e.exports=i()})(0,(function(){return function(){var e={134:function(e,t,i){"use strict";i.d(t,{default:function(){return Q}});var r=i(279),n=i.n(r),s=i(370),o=i.n(s),a=i(817),l=i.n(a);function c(e){return c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,i){return t&&p(e.prototype,t),i&&p(e,i),e}var d=function(){function e(t){u(this,e),this.resolveOptions(t),this.initSelection()}return h(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var e="rtl"===document.documentElement.getAttribute("dir");this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var t=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(t,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var e=this,t=this.createFakeElement();this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(t),this.selectedText=l()(t),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=l()(this.target),this.copyText()}},{key:"copyText",value:function(){var e;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==c(e)||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}(),f=d;function m(e){return m="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t,i){return t&&y(e.prototype,t),i&&y(e,i),e}function b(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function k(e){var t=C();return function(){var i,r=z(e);if(t){var n=z(this).constructor;i=Reflect.construct(r,arguments,n)}else i=r.apply(this,arguments);return x(this,i)}}function x(e,t){return!t||"object"!==m(t)&&"function"!==typeof t?S(e):t}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},z(e)}function _(e,t){var i="data-clipboard-".concat(e);if(t.hasAttribute(i))return t.getAttribute(i)}var N=function(e){b(i,e);var t=k(i);function i(e,r){var n;return g(this,i),n=t.call(this),n.resolveOptions(r),n.listenClick(e),n}return v(i,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof e.action?e.action:this.defaultAction,this.target="function"===typeof e.target?e.target:this.defaultTarget,this.text="function"===typeof e.text?e.text:this.defaultText,this.container="object"===m(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=o()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new f({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return _("action",e)}},{key:"defaultTarget",value:function(e){var t=_("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return _("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"===typeof e?[e]:e,i=!!document.queryCommandSupported;return t.forEach((function(e){i=i&&!!document.queryCommandSupported(e)})),i}}]),i}(n()),Q=N},828:function(e){var t=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function r(e,i){while(e&&e.nodeType!==t){if("function"===typeof e.matches&&e.matches(i))return e;e=e.parentNode}}e.exports=r},438:function(e,t,i){var r=i(828);function n(e,t,i,r,n){var s=o.apply(this,arguments);return e.addEventListener(i,s,n),{destroy:function(){e.removeEventListener(i,s,n)}}}function s(e,t,i,r,s){return"function"===typeof e.addEventListener?n.apply(null,arguments):"function"===typeof i?n.bind(null,document).apply(null,arguments):("string"===typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return n(e,t,i,r,s)})))}function o(e,t,i,n){return function(i){i.delegateTarget=r(i.target,t),i.delegateTarget&&n.call(e,i)}}e.exports=s},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var i=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===i||"[object HTMLCollection]"===i)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"===typeof e||e instanceof String},t.fn=function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t}},370:function(e,t,i){var r=i(879),n=i(438);function s(e,t,i){if(!e&&!t&&!i)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(i))throw new TypeError("Third argument must be a Function");if(r.node(e))return o(e,t,i);if(r.nodeList(e))return a(e,t,i);if(r.string(e))return l(e,t,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function o(e,t,i){return e.addEventListener(t,i),{destroy:function(){e.removeEventListener(t,i)}}}function a(e,t,i){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,i)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,i)}))}}}function l(e,t,i){return n(document.body,e,t,i)}e.exports=s},817:function(e){function t(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var i=e.hasAttribute("readonly");i||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),i||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),n=document.createRange();n.selectNodeContents(e),r.removeAllRanges(),r.addRange(n),t=r.toString()}return t}e.exports=t},279:function(e){function t(){}t.prototype={on:function(e,t,i){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:i}),this},once:function(e,t,i){var r=this;function n(){r.off(e,n),t.apply(i,arguments)}return n._=t,this.on(e,n,i)},emit:function(e){var t=[].slice.call(arguments,1),i=((this.e||(this.e={}))[e]||[]).slice(),r=0,n=i.length;for(r;r<n;r++)i[r].fn.apply(i[r].ctx,t);return this},off:function(e,t){var i=this.e||(this.e={}),r=i[e],n=[];if(r&&t)for(var s=0,o=r.length;s<o;s++)r[s].fn!==t&&r[s].fn._!==t&&n.push(r[s]);return n.length?i[e]=n:delete i[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function i(r){if(t[r])return t[r].exports;var n=t[r]={exports:{}};return e[r](n,n.exports,i),n.exports}return function(){i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,{a:t}),t}}(),function(){i.d=function(e,t){for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),i(134)}().default}))},b5fd:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{overflow:"auto",height:"100%",margin:"0 auto"}},[i("el-card",{staticClass:"el-card",staticStyle:{width:"60%","margin-top":"35px","margin-left":"20%","text-align":"center"}},[i("div",{staticStyle:{"font-weight":"bold"},attrs:{slot:"header"},slot:"header"},[i("span",[e._v("忘记密码")])]),i("el-form",{ref:"inputQuery",staticStyle:{"margin-left":"20%"},attrs:{model:e.inputQuery,rules:e.rules}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("div",{staticClass:"register-text"},[i("span",[e._v("用户账号: ")])])]),i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{prop:"nickName"}},[i("el-input",{attrs:{size:"small",placeholder:"请输入登录用户账号"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.userName,callback:function(t){e.$set(e.inputQuery,"userName",t)},expression:"inputQuery.userName"}})],1)],1)],1),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("div",{staticClass:"register-text"},[i("span",[e._v("新密码: ")])])]),i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{prop:"password"}},[i("el-input",{attrs:{size:"small",placeholder:"请输入密码",type:"password"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.password,callback:function(t){e.$set(e.inputQuery,"password",t)},expression:"inputQuery.password"}})],1)],1)],1),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("div",{staticClass:"register-text"},[i("span",[e._v("确认密码: ")])])]),i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{prop:"confirmPassword"}},[i("el-input",{attrs:{size:"small",type:"password",placeholder:"请确认密码"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.confirmPassword,callback:function(t){e.$set(e.inputQuery,"confirmPassword",t)},expression:"inputQuery.confirmPassword"}})],1)],1)],1),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("div",{staticClass:"register-text"},[i("span",[e._v("手机号: ")])])]),i("el-col",{attrs:{span:7}},[i("el-form-item",{attrs:{prop:"mobile"}},[i("el-input",{attrs:{size:"small",placeholder:"请输入手机号"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.mobile,callback:function(t){e.$set(e.inputQuery,"mobile",t)},expression:"inputQuery.mobile"}})],1)],1),i("el-col",{attrs:{span:3}},[i("el-button",{staticStyle:{"margin-top":"3.5px"},attrs:{type:"primary",size:"small",icon:"search",disabled:e.isTimer},on:{click:e.getCheckCode}},[i("span",[e._v(e._s(e.btnTitle))])])],1)],1),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("div",{staticClass:"register-text"},[i("span",[e._v("手机验证码: ")])])]),i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{prop:"checkCode"}},[i("el-input",{attrs:{size:"small",placeholder:"请输入手机验证码"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.checkCode,callback:function(t){e.$set(e.inputQuery,"checkCode",t)},expression:"inputQuery.checkCode"}})],1)],1)],1),i("div",{staticStyle:{width:"100%"}},[i("el-form-item",[i("el-button",{staticStyle:{"margin-top":"20px"},attrs:{type:"primary",size:"small",icon:"search"},on:{click:function(t){return e.onSubmit("inputQuery")}}},[e._v("重置密码\n ")]),i("el-button",{staticStyle:{"margin-right":"130px"},attrs:{type:"primary",icon:"search"},on:{click:e.intentBack}},[e._v("返回\n ")])],1)],1)],1)],1)],1)},n=[],s=i("485b"),o=i("ef6c"),a={data:function(){var e=this,t=function(t,i,r){""===i?r(new Error("请再次输入密码")):i!==e.inputQuery.password?r(new Error("两次输入密码不一致!")):r()};return{inputQuery:{password:"",mobile:"",confirmPassword:"",checkCode:"",userName:""},isTimer:!1,btnTitle:"获取验证码",options:o["regionDataPlus"],selectedOptions:[],rules:{password:[{required:!0,message:"请输入密码",trigger:"blur"}],mobile:[{required:!0,message:"请输入手机号",trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认密码",trigger:"blur"},{validator:t,trigger:"blur"}],checkCode:[{required:!0,message:"请输入手机验证码",trigger:"blur"}]}}},created:function(){this.getData()},methods:{onSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0,Object(s["f"])(t.inputQuery).then((function(e){2e4===e.code?(t.loading=!1,t.$alert("密码重置成功,点击确定即可登录","密码重置",{confirmButtonText:"确定",callback:function(e){t.$router.push({path:"../login"})}})):t.$message.error(e.message)}))}))},getData:function(){var e=this;this.loading=!0,getCompany().then((function(t){e.loading=!1,e.inputQuery=t.data}))},getCheckCode:function(e){var t=this,i={phoneNum:this.inputQuery.mobile,userName:this.inputQuery.userName};Object(s["c"])(i).then((function(e){2e4===e.code?t.validateBtn():t.$message.error(e.message)}))},intentBack:function(){this.$router.go(-1)},validateBtn:function(){var e=this,t=60,i=setInterval((function(){0===t?(clearInterval(i),e.isTimer=!1,e.btnTitle="获取验证码"):(e.btnTitle=t+"秒后重试",e.isTimer=!0,t--)}),1e3)},handleChange:function(e){this.inputQuery.area=o["CodeToText"][e[0]]+o["CodeToText"][e[1]]+o["CodeToText"][e[2]],console.log(e+"\n"+this.inputQuery.area)}}},l=a,c=(i("5bc0"),i("2877")),u=Object(c["a"])(l,r,n,!1,null,null,null);t["default"]=u.exports},bc61:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{overflow:"auto",height:"100%",margin:"0 auto"}},[r("el-card",{staticClass:"el-card",staticStyle:{width:"60%","margin-top":"35px","margin-left":"20%","margin-bottom":"35px","text-align":"center"}},[r("div",{staticStyle:{"font-weight":"bold"},attrs:{slot:"header"},slot:"header"},[r("div",{staticStyle:{"text-align":"center"}},[r("img",{staticStyle:{width:"10%"},attrs:{alt:"element-logo",src:i("39e2")}})]),r("h3",{staticClass:"title"},[e._v("医院供应商自助平台用户注册")])]),r("el-form",{ref:"inputQuery",staticStyle:{"margin-left":"20%"},attrs:{model:e.inputQuery,rules:e.rules}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:4}},[r("div",{staticClass:"register-text"},[r("span",[e._v("用户名称: ")])])]),r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{prop:"nickName"}},[r("el-input",{attrs:{size:"small",placeholder:"请输入用户名称"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.nickName,callback:function(t){e.$set(e.inputQuery,"nickName",t)},expression:"inputQuery.nickName"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:4}},[r("div",{staticClass:"register-text"},[r("span",[e._v("用户密码: ")])])]),r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{prop:"password"}},[r("el-input",{attrs:{size:"small",placeholder:"请输入密码",type:"password"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.password,callback:function(t){e.$set(e.inputQuery,"password",t)},expression:"inputQuery.password"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:4}},[r("div",{staticClass:"register-text"},[r("span",[e._v("确认密码: ")])])]),r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{prop:"confirmPassword"}},[r("el-input",{attrs:{size:"small",type:"password",placeholder:"请确认密码"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.confirmPassword,callback:function(t){e.$set(e.inputQuery,"confirmPassword",t)},expression:"inputQuery.confirmPassword"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:4}},[r("div",{staticClass:"register-text"},[r("span",[e._v("负责人: ")])])]),r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{prop:"realName"}},[r("el-input",{attrs:{size:"small",placeholder:"请输入负责人姓名"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.realName,callback:function(t){e.$set(e.inputQuery,"realName",t)},expression:"inputQuery.realName"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:4}},[r("div",{staticClass:"register-text"},[r("span",[e._v("联系电话: ")])])]),r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{prop:"tel"}},[r("el-input",{attrs:{size:"small",placeholder:"请输入联系电话"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.tel,callback:function(t){e.$set(e.inputQuery,"tel",t)},expression:"inputQuery.tel"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:4}},[r("div",{staticClass:"register-text"},[r("span",[e._v("邮箱: ")])])]),r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{prop:"email"}},[r("el-input",{attrs:{size:"small",placeholder:"请输入邮箱"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.email,callback:function(t){e.$set(e.inputQuery,"email",t)},expression:"inputQuery.email"}})],1)],1)],1),e.registerConfigMap.companyCheckStatus?r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:4}},[r("div",{staticClass:"register-text"},[r("span",[e._v("企业名称: ")])])]),r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{prop:"fromCorp"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",remote:"",clearable:"true","reserve-keyword":"",placeholder:"请输入企业名称","remote-method":e.findMethod,size:"small",loading:e.loading},on:{change:e.selectOne},model:{value:e.inputQuery.companyName,callback:function(t){e.$set(e.inputQuery,"companyName",t)},expression:"inputQuery.companyName"}},e._l(e.fromOptions,(function(t){return r("el-option",{key:t.name,attrs:{label:t.name,value:t}},[r("span",{staticStyle:{float:"left"}},[e._v(e._s(t.name))])])})),1)],1)],1),r("el-col",{attrs:{span:3}})],1):e._e(),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:4}},[r("div",{staticClass:"register-text"},[r("span",[e._v("统一社会信用号: ")])])]),r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{prop:"creditNum"}},[r("el-input",{attrs:{size:"small",placeholder:"请输入统一社会信用号"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.creditNum,callback:function(t){e.$set(e.inputQuery,"creditNum",t)},expression:"inputQuery.creditNum"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:4}},[r("div",{staticClass:"register-text"},[r("span",[e._v("企业类型: ")])])]),r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{prop:"bussinessStatus"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!0,size:"small",placeholder:"企业类型"},model:{value:e.inputQuery.bussinessStatus,callback:function(t){e.$set(e.inputQuery,"bussinessStatus",t)},expression:"inputQuery.bussinessStatus"}},[r("el-option",{attrs:{label:"经营企业",value:"2"}})],1)],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:4}},[r("div",{staticClass:"register-text"},[r("span",[e._v("所属地区: ")])])]),r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{prop:"area"}},[r("el-cascader",{staticStyle:{width:"100%"},attrs:{size:"small",options:e.options,placeholder:"请选择所属地区"},on:{change:e.handleChange},model:{value:e.selectedOptions,callback:function(t){e.selectedOptions=t},expression:"selectedOptions"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:4}},[r("div",{staticClass:"register-text"},[r("span",[e._v("详细地址: ")])])]),r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{prop:"detailAddr"}},[r("el-input",{attrs:{size:"small",placeholder:"请输入详细地址"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.detailAddr,callback:function(t){e.$set(e.inputQuery,"detailAddr",t)},expression:"inputQuery.detailAddr"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:4}},[r("div",{staticClass:"register-text"},[r("span",[e._v("手机号: ")])])]),r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{prop:"mobile"}},[r("el-input",{attrs:{size:"small",placeholder:"请输入手机号"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.mobile,callback:function(t){e.$set(e.inputQuery,"mobile",t)},expression:"inputQuery.mobile"}})],1)],1),r("el-col",{attrs:{span:3}},[r("el-button",{staticStyle:{"margin-top":"0.5px"},attrs:{type:"primary",size:"small",icon:"search",disabled:e.isTimer},on:{click:e.getCheckCode}},[r("span",[e._v(e._s(e.btnTitle))])])],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:4}},[r("div",{staticClass:"register-text"},[r("span",[e._v("手机验证码: ")])])]),r("el-col",{attrs:{span:10}},[r("el-form-item",{attrs:{prop:"checkCode"}},[r("el-input",{attrs:{size:"small",placeholder:"请输入手机验证码"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.checkCode,callback:function(t){e.$set(e.inputQuery,"checkCode",t)},expression:"inputQuery.checkCode"}})],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:18}},[r("el-form-item",{attrs:{label:"营业执照电子档案:","label-width":"150px"}},[r("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:this.uploadUrl,"on-preview":e.uploadHandlePreview,"on-remove":e.uploadHandleRemove,limit:1,"on-exceed":e.uploadHandleExceed,accept:".jpg,.png","on-change":e.uploadOnchange,"on-success":e.uploadHandleSuccess,"on-error":e.uploadHandleError,"file-list":e.fileList,data:{type:"image1"},"auto-upload":!0,"show-file-list":!0}},[r("div",[r("el-button",{attrs:{slot:"trigger",size:"small",type:"primary",disabled:e.companyEditDisabled},slot:"trigger"},[e._v("选取文件\n ")]),r("el-button",{attrs:{disabled:null===e.inputQuery.licenseUrl||""===e.inputQuery.licenseUrl,size:"small",type:"primary"},nativeOn:{click:function(t){return e.openFile(e.inputQuery.licenseUrl)}}},[e._v("查看文件\n ")])],1)])],1)],1)],1),r("div",{staticStyle:{width:"100%","margin-left":"-100px"}},[r("el-form-item",[r("el-button",{staticStyle:{"margin-top":"20px",width:"200px"},attrs:{type:"primary",size:"small",icon:"search"},on:{click:function(t){return e.onSubmit("inputQuery")}}},[e._v("提交\n ")])],1)],1)],1)],1),e._m(0),e._m(1),r("el-dialog",{attrs:{title:"注册成功","close-on-click-modal":!1,"close-on-press-escape":!1,visible:e.formVisible,"before-close":e.formDefine,width:"50%",top:"5vh"},on:{"update:visible":function(t){e.formVisible=t}}},[r("el-form",{ref:"dataForm",attrs:{model:e.formData}},[r("el-row",{staticClass:"el-row",attrs:{gutter:20,type:"flex"}},[r("el-col",{staticClass:"el-col",attrs:{span:20,type:"flex"}},[r("div",{staticClass:"text item"},[r("span",[e._v("您的注册信息已提交,等待审核,请牢记您的账号密码,方便登录系统。")])])])],1),r("el-row",{staticClass:"el-row",staticStyle:{"margin-top":"20px"},attrs:{gutter:20,type:"flex"}},[r("el-col",{staticClass:"el-col",attrs:{span:10,type:"flex"}},[r("div",{staticClass:"text item"},[r("span",[e._v(e._s(this.acoountInfo))])])]),r("el-col",{staticClass:"el-col",attrs:{span:10,type:"flex"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{staticClass:"tag-read",attrs:{type:"primary",size:"mini","data-clipboard-text":e.acoountInfo},on:{click:e.copy}},[e._v("\n 复制\n ")])],1)],1)],1)},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{color:"#2d3a4b","text-align":"center"}},[i("a",{staticStyle:{color:"#000000","font-size":"12px"},attrs:{href:"http://www.xmglxp.com"}},[e._v("厦门高立新鹏软件科技有限公司 13459286066")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{color:"#2d3a4b","text-align":"center"}},[i("a",{staticStyle:{color:"#000000","font-size":"12px"},attrs:{href:"http://www.beian.gov.cn/portal/registerSystemInfo"}},[e._v("\n 闽公网安备35020302034269号 \n ")]),i("a",{staticStyle:{color:"#000000","font-size":"12px"},attrs:{href:"http://beian.miit.gov.cn"}},[e._v("\n 备案号:闽ICP备17019234号\n ")])])}],s=(i("7f7f"),i("6b54"),i("28a5"),i("0d61")),o=i("485b"),a=i("ef6c"),l=i("b311"),c=i.n(l),u=i("3439"),p=i("bcba"),h={data:function(){var e=this,t=function(t,i,r){""===i?r(new Error("请再次输入密码")):i!==e.inputQuery.password?r(new Error("两次输入密码不一致!")):r()};return{inputQuery:{nickName:null,password:"",realName:"",tel:"",mobile:"",userId:"",confirmPassword:"",checkCode:"",email:"",companyId:"",companyName:"",creditNum:"",area:"",areaCode:"",detailAddr:"",bussinessStatus:"2",checkCompanyNameStatus:!1,licenseUrl:null},uploadUrl:null,fileUrl:null,isTimer:!1,btnTitle:"获取验证码",options:a["regionDataPlus"],selectedOptions:[],fromOptions:[],acoountInfo:"账号:------\n密码:-----",rules:{nickName:[{required:!0,message:"请输入用户名称",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}],realName:[{required:!0,message:"请输入负责人姓名",trigger:"blur"}],tel:[{required:!0,message:"请输入联系电话",trigger:"blur"}],mobile:[{required:!0,message:"请输入手机号码",trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认密码",trigger:"blur"},{validator:t,trigger:"blur"}],checkCode:[{required:!0,message:"请输入手机验证码",trigger:"blur"}],email:[{required:!0,message:"请输入邮箱",trigger:"blur"}],companyName:[{required:!0,message:"请输入企业名称",trigger:"blur"}],creditNum:[{required:!0,message:"请输入统一社会信用号",trigger:"blur"}],area:[{required:!0,message:"请选择所属地区",trigger:"blur"}],detailAddr:[{required:!0,message:"请输入详细地址",trigger:"blur"}],bussinessStatus:[{required:!0,message:"请选择企业类型",trigger:"blur"}]},registerConfigMap:{companyCheckStatus:!0},formVisible:!1,formData:{account:"",password:""}}},created:function(){this.registerConfig(),this.uploadUrl=u["a"]+"/udiwms/upload/register/file",this.fileUrl=u["a"]+"/udiwms/image/register/file/getImage?type=image1&name="},methods:{onSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0,Object(o["e"])(t.inputQuery).then((function(e){2e4===e.code?(t.loading=!1,t.formData={account:e.data,password:t.inputQuery.password},t.formVisible=!0,t.acoountInfo="账号:"+t.formData.account+"\n密码:"+t.formData.password):t.$message.error(e.message)}))}))},formDefine:function(){this.formVisible=!1,this.$router.push({path:"../login"})},getData:function(){var e=this;this.loading=!0,Object(s["b"])().then((function(t){e.loading=!1,e.inputQuery=t.data,e.inputQuery.bussinessStatus="2",console.log(e.inputQuery),e.selectedOptions=e.inputQuery.areaCode.split(",")}))},getCheckCode:function(e){var t=this,i={phoneNum:this.inputQuery.mobile};Object(o["c"])(i).then((function(e){2e4===e.code?t.validateBtn():t.$message.error(e.message)}))},checkCompanyName:function(){var e=this;if(this.$isBlank(this.inputQuery.companyName))this.$message.error("企业名称不能为空");else{var t={companyName:this.inputQuery.companyName};Object(s["a"])(t).then((function(t){2e4===t.code?(e.checkCompanyNameStatus=!0,e.$message.success("校验成功!")):e.$message.error(t.message)}))}},registerConfig:function(){var e=this;Object(s["d"])().then((function(t){2e4===t.code&&(e.registerConfigMap=t.data)}))},validateBtn:function(){var e=this,t=60,i=setInterval((function(){0===t?(clearInterval(i),e.isTimer=!1,e.btnTitle="获取验证码"):(e.btnTitle=t+"秒后重试",e.isTimer=!0,t--)}),1e3)},handleChange:function(e){this.inputQuery.area=a["CodeToText"][e[0]]+a["CodeToText"][e[1]]+a["CodeToText"][e[2]],console.log(e+"\n"+this.inputQuery.area),this.inputQuery.areaCode=e.toString()},copy:function(){var e=this,t=new c.a(".tag-read");t.on("success",(function(e){console.log("复制成功"),t.destroy()})),t.on("error",(function(e){console.log("该浏览器不支持复制"),t.destroy()})),this.$confirm("账号密码复制成功!是否跳转登录","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.formDefine()})).catch((function(){}))},selectOne:function(e){this.inputQuery.companyName=e.name,this.inputQuery.companyId=e.erpId,console.log("this.inputQuery.companyId"+e.erpId)},findMethod:function(e){var t=this;console.log(e),this.fromOptions=[];var i={key:e};Object(p["f"])(i).then((function(e){t.loading=!1,t.fromOptions=e.data.page.list||[]})).catch((function(){t.loading=!1}))},uploadHandleRemove:function(e,t){console.log(e,t)},uploadHandlePreview:function(e){console.log(e),console.log(this.fileList)},uploadHandleExceed:function(e,t){this.$message.warning("当前限制选择 1 个文件,本次选择了 ".concat(e.length," 个文件,共选择了 ").concat(e.length+t.length," 个文件"))},uploadOnchange:function(e,t){var i=e.name,r=e.uid,n=i.lastIndexOf("."),s=i.substring(n,i.length);if(".jpg"===s.toLowerCase()||".png"===s.toLowerCase()){var o=e.size/1024/1024/2<=1;if(!o){this.$message.error("上传文件大小不能超过 2MB");for(var a=0;a<t.length;a++)t[a].uid===r&&t.splice(a,1)}return o}this.$message.error("上传文件只能是 .jpg,.png 格式");for(var l=0;l<t.length;l++)t[l].uid===r&&t.splice(l,1)},uploadHandleSuccess:function(e,t,i){console.log(e),2e4===e.code?this.inputQuery.licenseUrl=e.data.name:this.$message.error("文件上传失败:"+e.message)},uploadHandleError:function(){},openFile:function(e){window.open(this.fileUrl+e)}}},d=h,f=(i("e596"),i("2877")),m=Object(f["a"])(d,r,n,!1,null,null,null);t["default"]=m.exports},cf05:function(e,t,i){e.exports=i.p+"img/logo.7c3fe130.png"},e0e1:function(e,t,i){"use strict";i("a09c")},e596:function(e,t,i){"use strict";i("1c81")},ec26:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{overflow:"auto",height:"100%",margin:"0 auto"}},[i("div",{staticStyle:{"font-weight":"bold"},attrs:{slot:"header"},slot:"header"},[i("span",[e._v("用户注册")])]),i("el-form",{ref:"inputQuery",staticStyle:{"margin-left":"10%"},attrs:{model:e.inputQuery,rules:e.rules}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"用户名称",prop:"nickName"}},[i("el-input",{staticStyle:{width:"60%"},attrs:{size:"small",placeholder:"请输入用户名称"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.nickName,callback:function(t){e.$set(e.inputQuery,"nickName",t)},expression:"inputQuery.nickName"}})],1)],1)],1),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"用户密码",prop:"password"}},[i("el-input",{staticStyle:{width:"60%"},attrs:{size:"small",placeholder:"请输入密码",type:"password"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.password,callback:function(t){e.$set(e.inputQuery,"password",t)},expression:"inputQuery.password"}})],1)],1)],1),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"确认密码",prop:"confirmPassword"}},[i("el-input",{staticStyle:{width:"60%"},attrs:{size:"small",type:"password",placeholder:"请确认密码"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.confirmPassword,callback:function(t){e.$set(e.inputQuery,"confirmPassword",t)},expression:"inputQuery.confirmPassword"}})],1)],1)],1),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"真实姓名",prop:"realName"}},[i("el-input",{staticStyle:{width:"60%"},attrs:{size:"small",placeholder:"请输入真实姓名"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.realName,callback:function(t){e.$set(e.inputQuery,"realName",t)},expression:"inputQuery.realName"}})],1)],1)],1),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"联系电话",prop:"tel"}},[i("el-input",{staticStyle:{width:"60%"},attrs:{size:"small",placeholder:"请输入联系电话"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.tel,callback:function(t){e.$set(e.inputQuery,"tel",t)},expression:"inputQuery.tel"}})],1)],1)],1),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[i("el-input",{staticStyle:{width:"60%"},attrs:{size:"small",placeholder:"请输入邮箱"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.email,callback:function(t){e.$set(e.inputQuery,"email",t)},expression:"inputQuery.email"}})],1)],1)],1),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[i("el-input",{staticStyle:{width:"50%"},attrs:{size:"small",placeholder:"请输入手机号"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.mobile,callback:function(t){e.$set(e.inputQuery,"mobile",t)},expression:"inputQuery.mobile"}}),i("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"primary",size:"small",icon:"search",disabled:e.isTimer},on:{click:e.getCheckCode}},[i("span",[e._v(e._s(e.btnTitle))])])],1)],1)],1),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"手机验证码",prop:"checkCode"}},[i("el-input",{staticStyle:{width:"55%"},attrs:{size:"small",placeholder:"请输入手机验证码"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.checkCode,callback:function(t){e.$set(e.inputQuery,"checkCode",t)},expression:"inputQuery.checkCode"}})],1)],1)],1),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"企业名称",prop:"companyName"}},[i("el-input",{staticStyle:{width:"70%"},attrs:{size:"small",placeholder:"请输入企业名称"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.companyName,callback:function(t){e.$set(e.inputQuery,"companyName",t)},expression:"inputQuery.companyName"}}),i("div",{staticStyle:{width:"80%",float:"right"}},[i("el-button",{staticStyle:{"margin-left":"50%","margin-top":"10px"},attrs:{type:"primary",size:"small",icon:"search"},on:{click:e.checkCompany}},[e._v("\n 校验企业名称\n ")])],1)],1)],1)],1),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"统一社会信用号",prop:"creditNum"}},[i("el-input",{staticStyle:{width:"60%"},attrs:{size:"small",placeholder:"请输入统一社会信用号"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.creditNum,callback:function(t){e.$set(e.inputQuery,"creditNum",t)},expression:"inputQuery.creditNum"}})],1)],1)],1),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"企业类型",prop:"bussinessStatus"}},[i("el-select",{staticStyle:{width:"60%"},attrs:{size:"small",placeholder:"企业类型"},model:{value:e.inputQuery.bussinessStatus,callback:function(t){e.$set(e.inputQuery,"bussinessStatus",t)},expression:"inputQuery.bussinessStatus"}},[i("el-option",{attrs:{label:"经营企业",value:"2"}})],1)],1)],1)],1),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{prop:"area",label:"所属地区"}},[i("el-cascader",{staticStyle:{width:"60%"},attrs:{size:"small",options:e.options,placeholder:"请选择所属地区"},on:{change:e.handleChange},model:{value:e.selectedOptions,callback:function(t){e.selectedOptions=t},expression:"selectedOptions"}})],1)],1)],1),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{prop:"detailAddr",label:"详细地址"}},[i("el-input",{staticStyle:{width:"60%"},attrs:{size:"small",placeholder:"请输入详细地址"},on:{input:function(t){return e.change()}},model:{value:e.inputQuery.detailAddr,callback:function(t){e.$set(e.inputQuery,"detailAddr",t)},expression:"inputQuery.detailAddr"}})],1)],1)],1),i("div",{staticStyle:{width:"100%"}},[i("el-form-item",[i("el-button",{staticStyle:{"margin-top":"20px",width:"200px","margin-left":"15%"},attrs:{type:"primary",size:"small",icon:"search"},on:{click:function(t){return e.onSubmit("inputQuery")}}},[e._v("提交\n ")])],1)],1)],1)],1)},n=[],s=(i("6b54"),i("28a5"),i("0d61")),o=i("485b"),a=i("ef6c"),l={data:function(){var e=this,t=function(t,i,r){""===i?r(new Error("请再次输入密码")):i!==e.inputQuery.password?r(new Error("两次输入密码不一致!")):r()};return{inputQuery:{nickName:null,password:"",realName:"",tel:"",mobile:"",userId:"",confirmPassword:"",checkCode:"",email:"",companyName:"",creditNum:"",area:"",areaCode:"",detailAddr:"",bussinessStatus:""},isTimer:!1,btnTitle:"获取验证码",options:a["regionDataPlus"],selectedOptions:[],rules:{nickName:[{required:!0,message:"请输入用户名称",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}],realName:[{required:!0,message:"请输入真实姓名",trigger:"blur"}],tel:[{required:!0,message:"请输入联系电话",trigger:"blur"}],mobile:[{required:!0,message:"请输入手机号",trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认密码",trigger:"blur"},{validator:t,trigger:"blur"}],checkCode:[{required:!0,message:"请输入手机验证码",trigger:"blur"}],email:[{required:!0,message:"请输入邮箱",trigger:"blur"}],companyName:[{required:!0,message:"请输入企业名称",trigger:"blur"}],creditNum:[{required:!0,message:"请输入统一社会信用号",trigger:"blur"}],area:[{required:!0,message:"请选择所属地区",trigger:"blur"}],detailAddr:[{required:!0,message:"请输入详细地址",trigger:"blur"}],bussinessStatus:[{required:!0,message:"请选择企业类型",trigger:"blur"}]}}},created:function(){this.getData()},methods:{onSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0,Object(o["e"])(t.inputQuery).then((function(e){2e4===e.code?(t.loading=!1,t.$alert("您的注册信息已提交,等待审核,请牢记您的注册ID:"+e.data+",方便登录系统!","注册成功",{confirmButtonText:"确定",callback:function(e){window.smtApp.finishAvt()}})):t.$message.error(e.message)}))}))},getData:function(){var e=this;this.loading=!0,Object(s["b"])().then((function(t){e.loading=!1,e.inputQuery=t.data,e.selectedOptions=e.inputQuery.areaCode.split(",")}))},getCheckCode:function(e){var t=this,i={phoneNum:this.inputQuery.mobile};Object(o["c"])(i).then((function(e){2e4===e.code?t.validateBtn():t.$message.error(e.message)}))},checkCompany:function(){var e=this,t={companyName:this.inputQuery.companyName};Object(s["c"])(t).then((function(t){2e4===t.code?e.$message.success("校验成功!"):e.$message.error(t.message)}))},validateBtn:function(){var e=this,t=60,i=setInterval((function(){0===t?(clearInterval(i),e.isTimer=!1,e.btnTitle="获取验证码"):(e.btnTitle=t+"秒后重试",e.isTimer=!0,t--)}),1e3)},handleChange:function(e){this.inputQuery.area=a["CodeToText"][e[0]]+a["CodeToText"][e[1]]+a["CodeToText"][e[2]],console.log(e+"\n"+this.inputQuery.area),this.inputQuery.areaCode=e.toString()}}},c=l,u=(i("a574"),i("2877")),p=Object(u["a"])(c,r,n,!1,null,null,null);t["default"]=p.exports}}]);
|