(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-register"],{"3bef":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={uButton:n("38b5").default},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"container"},[n("v-uni-view",{staticClass:"wrapper"},[n("v-uni-view",{staticClass:"welcome"},[t._v("注册")]),n("v-uni-view",{staticClass:"input-content"},[n("v-uni-view",{staticClass:"input-item"},[n("v-uni-text",{staticClass:"tit"},[t._v("用户名")]),n("v-uni-input",{attrs:{type:"text",placeholder:"请输入用户名"},model:{value:t.form.userName,callback:function(e){t.$set(t.form,"userName",e)},expression:"form.userName"}})],1),n("v-uni-view",{staticClass:"input-item"},[n("v-uni-text",{staticClass:"tit"},[t._v("手机号")]),n("v-uni-input",{attrs:{type:"text",placeholder:"请输入手机号",maxlength:"11"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.onPhoneInput.apply(void 0,arguments)}},model:{value:t.form.phone,callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}})],1),n("v-uni-view",{staticClass:"input-item"},[n("v-uni-text",{staticClass:"tit"},[t._v("验证码")]),n("v-uni-view",{staticClass:"input-with-button"},[n("v-uni-input",{attrs:{type:"text",placeholder:"请输入验证码",maxlength:"6"},model:{value:t.form.code,callback:function(e){t.$set(t.form,"code",e)},expression:"form.code"}}),n("u-button",{staticStyle:{width:"150upx",background:"#3D9AFF"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.sendCode.apply(void 0,arguments)}}},[t._v(t._s(t.codeButtonText))])],1)],1),n("v-uni-view",{staticClass:"input-item"},[n("v-uni-text",{staticClass:"tit"},[t._v("密码")]),n("v-uni-input",{attrs:{type:"password",placeholder:"6-20位大小写字母数字特殊符号组成",maxlength:"20"},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1)],1),n("u-button",{staticClass:"confirm-btn",attrs:{loading:t.registering,disabled:t.registering},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.register.apply(void 0,arguments)}}},[t._v("注册")])],1)],1)},a=[]},"4b2f":function(t,e,n){"use strict";n.r(e);var i=n("f9c0"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"8b88":function(t,e,n){var i=n("e7fe");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("967d").default;o("04e95bf6",i,!0,{sourceMap:!1,shadowMode:!1})},b3e0:function(t,e,n){"use strict";n.r(e);var i=n("3bef"),o=n("4b2f");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("d8b9");var s=n("828b"),r=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"90e53038",null,!1,i["a"],void 0);e["default"]=r.exports},d8b9:function(t,e,n){"use strict";var i=n("8b88"),o=n.n(i);o.a},e7fe:function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */uni-page-body[data-v-90e53038]{background:#fff}body.?%PAGE?%[data-v-90e53038]{background:#fff}.container[data-v-90e53038]{padding-top:115px;position:relative;width:100vw;height:100vh;overflow:hidden;background:#fff}.wrapper[data-v-90e53038]{position:relative;z-index:90;background:#fff;padding-bottom:%?40?%}.welcome[data-v-90e53038]{position:relative;left:%?50?%;top:%?-90?%;font-size:%?46?%;color:#555;text-shadow:1px 0 1px rgba(0,0,0,.3)}.input-content[data-v-90e53038]{padding:0 %?60?%}.input-item[data-v-90e53038]{display:flex;align-items:center;justify-content:space-between;padding:0 %?30?%;background:#f8f8f8;height:%?120?%;border-radius:4px;margin-bottom:%?50?%}.input-item[data-v-90e53038]:last-child{margin-bottom:0}.input-item .tit[data-v-90e53038]{width:%?150?%!important;height:%?50?%;line-height:%?56?%;font-size:%?30?%;color:#333;margin-right:%?2?%}.input-item uni-input[data-v-90e53038]{height:%?60?%;font-size:%?32?%;color:#333;width:100%}.input-item .input-with-button[data-v-90e53038]{display:flex;align-items:center;justify-content:space-between;width:100%}.input-item .input-with-button uni-input[data-v-90e53038]{width:calc(100% - %?170?%);\n /* 减去按钮的宽度 */margin-right:%?20?%}.input-item .input-with-button uni-button[data-v-90e53038]{height:%?60?%;line-height:%?60?%;font-size:%?30?%;color:#fff;background:#fa436a;border:none;border-radius:4px}.confirm-btn[data-v-90e53038]{width:%?630?%;height:%?76?%;line-height:%?76?%;border-radius:50px;margin-top:%?70?%;background:#3d9aff;color:#fff;font-size:%?32?%}.confirm-btn[data-v-90e53038]:after{border-radius:100px}',""]),t.exports=e},f9c0:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("5c47"),n("0506"),n("bf0f");var i={data:function(){return{form:{userName:"",phone:"",code:"",password:""},canSendCode:!1,codeButtonText:"获取",countdown:60,registering:!1}},methods:{onPhoneInput:function(){this.canSendCode=/^1[3-9]\d{9}$/.test(this.form.phone)},sendCode:function(){var t=this;if(this.canSendCode){this.codeButtonText="".concat(this.countdown,"秒"),this.canSendCode=!1;var e=setInterval((function(){t.countdown--,t.codeButtonText="".concat(t.countdown,"秒"),t.countdown<=0&&(clearInterval(e),t.codeButtonText="获取",t.canSendCode=!0,t.countdown=60)}),1e3);this.$http.post("/User/SendSms",{phoneNumber:this.form.phone,hasReg:!1}).then((function(e){e.Check?t.$msg("验证码已发送"):t.$msg("验证码发送失败")})).catch((function(e){console.error(e),t.$msg("验证码发送失败")}))}else this.$msg("请输入正确的手机号")},register:function(){var t=this;if(/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*]).{6,20}$/.test(this.form.password)){this.registering=!0;var e={LoginName:this.form.userName,Mobile:this.form.phone,Code:this.form.code,Password:this.form.password};this.$http.post("/User/RegAccount",e).then((function(e){e.Check?(t.$msg("注册成功"),uni.navigateTo({url:"/pages/login/login"})):t.$msg("注册失败")})).catch((function(e){console.log(e),t.$msg("注册失败")})).finally((function(){t.registering=!1}))}else this.$msg("密码不符合要求")}}};e.default=i}}]);