1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-register"],{5424:function(t,i,n){var e=n("24fb");i=e(!1),i.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-106def80]{height:100%}.container[data-v-106def80]{width:100%;height:100%;background-size:100%}.container_text[data-v-106def80]{width:100%;height:%?500?%;top:%?0?%}.container_text .banner-img[data-v-106def80]{width:100%;height:100%}.login_text[data-v-106def80]{margin:auto %?30?%;position:relative;padding:%?100?% %?102?%;background-color:#fff;margin-top:%?-180?%;border-radius:%?20?%}.login_text .login_input[data-v-106def80]{border-bottom:1px solid #f0f0f0;margin-bottom:%?65?%}.login_text .login_input .login_img uni-image[data-v-106def80]{height:%?35?%;width:%?29?%;margin-right:%?20?%}.login_text .login_input .uni-input[data-v-106def80]{text-align:left;width:%?470?%;font-size:%?28?%!important}.login_text .login_input .login_name[data-v-106def80]{color:#333}.login_text .other[data-v-106def80]{margin-top:%?60?%}.login_text .other .fenge[data-v-106def80]{width:30%;height:%?2?%;background-color:#eee}.login_text .other .qita[data-v-106def80]{font-size:%?28?%;color:#999}.login_text .weixin[data-v-106def80]{width:%?75?%;height:%?75?%;margin:%?25?% auto}.login_text .weixin uni-image[data-v-106def80]{width:100%;height:100%}.login_text .weixin_text[data-v-106def80]{text-align:center;font-size:%?28?%;color:#999}.login_text .forget[data-v-106def80]{font-size:%?28?%;width:100%;text-align:right;color:#999}.login_text .uni-button-green[data-v-106def80]{color:#fff;background-color:#5dbc7c;margin:%?40?% %?10?%;border-radius:%?50?%}.login_text .uni-button-green-plain[data-v-106def80]{border:1px solid #5dbc7c;margin:%?40?% %?10?%;border-radius:%?50?%;color:#5dbc7c;background-color:#fff}.login_text .uni-button[data-v-106def80]{height:%?85?%;line-height:%?85?%}.loginTitle[data-v-106def80]{position:absolute;top:%?250?%;width:100%;text-align:center;color:#fff;font-size:%?40?%}.forget[data-v-106def80]{width:%?100?%;font-size:%?24?%;color:#fff;margin:0 auto;border-bottom:1px solid #fff}.width[data-v-106def80]{width:%?325?%!important}.code[data-v-106def80]{color:#5dbc7c;font-size:%?23?%;border-left:1px solid #eee;width:%?150?%;-webkit-flex-shrink:0;flex-shrink:0;text-align:center}uni-button[data-v-106def80]{height:%?80?%!important;line-height:%?80?%!important}',""]),t.exports=i},6906:function(t,i,n){"use strict";var e;n.d(i,"b",(function(){return a})),n.d(i,"c",(function(){return o})),n.d(i,"a",(function(){return e}));var a=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("v-uni-view",{staticClass:"container"},[n("v-uni-view",{staticClass:"container_text"},[n("v-uni-image",{staticClass:"banner-img",attrs:{src:"/static/img/img01.png",mode:"scaleToFill"}})],1),n("v-uni-view",{staticClass:"loginTitle"},[n("v-uni-text",[t._v("注册")])],1),n("v-uni-view",{staticClass:"login_text"},[n("v-uni-view",{staticClass:"login_input flex"},[n("v-uni-view",{staticClass:"login_img"},[n("v-uni-image",{attrs:{src:"/static/icon/img03.png"}})],1),n("v-uni-view",{staticClass:"login_name"},[n("v-uni-input",{staticClass:"uni-input",attrs:{focus:!0,placeholder:"请输入手机号"},model:{value:t.phone,callback:function(i){t.phone=i},expression:"phone"}})],1)],1),n("v-uni-view",{staticClass:"login_input flex"},[n("v-uni-view",{staticClass:"login_img"},[n("v-uni-image",{attrs:{src:"/static/icon/img04.png"}})],1),n("v-uni-view",{staticClass:"login_name"},[n("v-uni-input",{staticClass:"uni-input",attrs:{type:"password",focus:!0,placeholder:"请输入密码"},model:{value:t.password,callback:function(i){t.password=i},expression:"password"}})],1)],1),n("v-uni-view",{staticClass:"login_input flex"},[n("v-uni-view",{staticClass:"login_img"},[n("v-uni-image",{attrs:{src:"/static/icon/img04.png"}})],1),n("v-uni-view",{staticClass:"login_name"},[n("v-uni-input",{staticClass:"uni-input",attrs:{type:"password",focus:!0,placeholder:"请重复输入密码"},model:{value:t.repassword,callback:function(i){t.repassword=i},expression:"repassword"}})],1)],1),n("v-uni-view",{staticClass:"login_input flex",staticStyle:{display:"none"}},[n("v-uni-view",{staticClass:"login_img"},[n("v-uni-image",{attrs:{src:"/static/icon/img07.png"}})],1),n("v-uni-view",{staticClass:"login_name"},[n("v-uni-input",{staticClass:"uni-input",attrs:{type:"text",focus:!0,placeholder:"请输入邀请码"},model:{value:t.invitation,callback:function(i){t.invitation=i},expression:"invitation"}})],1)],1),n("v-uni-view",{staticClass:"login_input flex"},[n("v-uni-view",{staticClass:"login_img"},[n("v-uni-image",{attrs:{src:"/static/icon/img06.png"}})],1),n("v-uni-view",{staticClass:"login_name flex"},[n("v-uni-input",{staticClass:"uni-input width",attrs:{focus:!0,placeholder:"请输入验证码"},model:{value:t.code,callback:function(i){t.code=i},expression:"code"}}),n("v-uni-view",{staticClass:"code",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.verification.apply(void 0,arguments)}}},[t._v(t._s(0==t.countDown?"验证码":t.countDown))])],1)],1),n("v-uni-view",[n("v-uni-button",{staticClass:"uni-button uni-button-green",attrs:{type:"green"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.register.apply(void 0,arguments)}}},[t._v("注册账号")])],1),n("v-uni-view",[n("v-uni-button",{staticClass:"uni-button uni-button-green uni-button-green-plain",attrs:{type:"green",plain:"true","hover-class":"none"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.login.apply(void 0,arguments)}}},[t._v("返回登录")])],1)],1)],1)},o=[]},8057:function(t,i,n){"use strict";n.r(i);var e=n("f2fd"),a=n.n(e);for(var o in e)"default"!==o&&function(t){n.d(i,t,(function(){return e[t]}))}(o);i["default"]=a.a},ad49:function(t,i,n){var e=n("5424");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var a=n("4f06").default;a("5b465224",e,!0,{sourceMap:!1,shadowMode:!1})},c12a:function(t,i,n){"use strict";var e=n("ad49"),a=n.n(e);a.a},cc17:function(t,i,n){"use strict";var e=n("4ea4");Object.defineProperty(i,"__esModule",{value:!0}),i.login=o,i.verify=s,i.getUserInfo=r,i.loginMobile=u,i.register=l,i.registerVerify=c,i.jiaMobile=d;var a=e(n("bc58"));function o(t){return(0,a.default)({url:"/api/login",method:"post",data:t})}function s(t){return(0,a.default)({url:"/api/verify_code",method:"post",data:t})}function r(t){return(0,a.default)({url:"/api/userinfo",method:"get",data:t})}function u(t){return(0,a.default)({url:"/api/login/mobile",method:"post",data:t})}function l(t){return(0,a.default)({url:"/api/register",method:"post",data:t})}function c(t){return(0,a.default)({url:"/api/auth/verify",data:t})}function d(t){return(0,a.default)({url:"/api/register",method:"post",data:t})}},e73d:function(t,i,n){"use strict";n.r(i);var e=n("6906"),a=n("8057");for(var o in a)"default"!==o&&function(t){n.d(i,t,(function(){return a[t]}))}(o);n("c12a");var s,r=n("f0c5"),u=Object(r["a"])(a["default"],e["b"],e["c"],!1,null,"106def80",null,!1,e["a"],s);i["default"]=u.exports},f2fd:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e=n("cc17"),a={data:function(){return{phone:"",password:"",repassword:"",invitation:"",code:"",time:"",countDown:0}},onLoad:function(){this.invitation=uni.getStorageSync("spread")||""},watch:{countDown:function(t){0==t&&clearInterval(this.time)}},methods:{register:function(){var t=this;""!=t.phone?/(^1[3|4|5|7|8][0-9]{9}$)/.test(this.phone)?""!=t.password?""!=t.repassword?t.repassword==t.password?(0,e.register)({account:t.phone,captcha:t.code,password:t.password,spread:this.invitation}).then((function(t){uni.showToast({title:"注册成功",duration:2e3,position:"top"}),setTimeout((function(){uni.navigateTo({url:"/pages/public/login"})}),1e3)})):t.$api.msg("两次密码不正确"):t.$api.msg("请再次输入密码"):t.$api.msg("请输入密码"):t.$api.msg("请输入正确的手机号"):t.$api.msg("请输入电话号码")},verification:function(){var t=this;if(""!=this.phone){if(!(this.phone.length<11))return!(t.countDown>0)&&(t.countDown=60,t.time=setInterval((function(){t.countDown--}),1e3),void(0,e.registerVerify)({phone:t.phone}).then((function(t){console.log(t)})).catch((function(t){console.log(t)})));this.$api.msg("请输入正确的手机号")}else this.$api.msg("请输入电话号码")},login:function(){uni.navigateTo({url:"/pages/public/login"})}}};i.default=a}}]);
|