text: (window.webpackJsonp=window.webpackJsonp||[]).push([["login"],{"4fde":function(t,e,o){"use strict";var r=o("eaef");o.n(r).a},"53e9":function(t,e,o){},7387:function(t,e,o){"use strict";var r=o("53e9");o.n(r).a},"8ec4":function(t,e,o){"use strict";var r=o("929a");o.n(r).a},"929a":function(t,e,o){},a55b:function(t,e,o){"use strict";o.r(e);var r=o("e8dc"),a=o("fd03"),i=o("6c7f"),n={name:"register",data:function(){return{loading:!1,formValidate:{password:"",phone:""},ruleValidate:{password:[{required:!0,message:"请输入密码",trigger:"blur"},{type:"string",min:6,message:"最少填写6个字符",trigger:"blur"}],phone:[{validator:function(t,e,o){if(!e)return o(new Error("手机号不能为空"));/^1\d{10}$/.test(e)?o():o("手机号格式不正确")},trigger:"blur"}]},loginWord:"欢迎登录摄影派网站，祝您在本网站有一个愉快的体验，本站点提供在线云相册，云视频等服务，欢迎您的使用",cityJson:[]}},components:{formCover:r.a},methods:{handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){t?(e.loading=!0,a.login(e.formValidate).then((function(t){1e5==t.code?(e.commonApi.Set_Cookie("Flag","isLogin",.5),localStorage.setItem("photolive:uinfo",i.a.encrypt(JSON.stringify(t.data))),e.$Message.success(t.message),setTimeout((function(){e.$router.push({name:"PhotoList"})}),100),window.location.reload()):e.$Message.error(t.message),e.loading=!1})).catch((function(t){console.log(t),e.loading=!1,e.$Message.error("服务器内部错误")}))):e.$Message.error("Fail!")}))}},created:function(){}},s=(o("4fde"),o("7387"),o("e90a")),l=Object(s.a)(n,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("form-cover",{attrs:{wordText:t.loginWord,width:"800px",height:"500px"}},[o("template",{slot:"loginForm"},[o("router-link",{staticClass:"login-btn",attrs:{to:{name:"Register"}}},[t._v("注 册")]),o("Form",{ref:"formValidate",staticClass:"form-cover-box",attrs:{model:t.formValidate,rules:t.ruleValidate}},[o("h2",{staticClass:"form-title t-c"},[t._v("登录")]),o("FormItem",{attrs:{label:"手机号码：",prop:"phone"}},[o("Input",{attrs:{size:"large",placeholder:"请输入手机号码"},model:{value:t.formValidate.phone,callback:function(e){t.$set(t.formValidate,"phone",e)},expression:"formValidate.phone"}})],1),o("FormItem",{attrs:{label:"设置密码：",prop:"password"}},[o("Input",{attrs:{size:"large",type:"password",placeholder:"请输入密码"},model:{value:t.formValidate.password,callback:function(e){t.$set(t.formValidate,"password",e)},expression:"formValidate.password"}})],1),o("FormItem",{staticClass:"t-c"},[o("Button",{staticStyle:{"margin-top":"20px"},attrs:{loading:t.loading,long:"",size:"large",type:"primary"},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t.loading?o("span",[t._v("登录中...")]):o("span",[t._v("登 录")])])],1)],1)],1)],2)}),[],!1,null,"567b8f48",null);e.default=l.exports},e8dc:function(t,e,o){"use strict";o("b4fb"),o("fe59"),o("ecb4"),o("e35a"),o("0d7a"),o("08ba");var r={name:"cover",props:{width:{type:String,default:"1100px"},height:{type:String,default:"auto"},wordText:{type:String,default:""}},data:function(){return{word:"",tmpWordText:""}},methods:{setKeywordFun:function(){for(var t=this,e=[],o=0,r=this.tmpWordText.length;o<r;o++){var a=this.tmpWordText[o];-1==a.indexOf("<")&&(a=a.split("")),e=e.concat(a)}e.forEach((function(e,o){setTimeout((function(){t.word+=e}),100*o)}))}},created:function(){},mounted:function(){this.tmpWordText=["<h2>","照片直播，巨实惠","</h2></br>",this.wordText,'</br></br><p class="t-r">'," ———————摄影派，记录精彩一刻","</p>"],this.setKeywordFun()}},a=(o("8ec4"),o("e90a")),i=Object(a.a)(r,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"form-box"},[e("div",{staticClass:"flex login-box form-cover x-between",style:"width:"+this.width+";minHeight:"+this.height},[e("div",{staticClass:"flex y-center form-name"},[e("div",{domProps:{innerHTML:this._s(this.word)}})]),e("div",{staticClass:"form-right flex y-center"},[this._t("loginForm")],2)])])}),[],!1,null,"3f0991ae",null);e.a=i.exports},eaef:function(t,e,o){}}]);