(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-register-index"],{"025c":function(t,e,a){"use strict";a.r(e);var n=a("910f"),i=a.n(n);for(var s in n)"default"!==s&&function(t){a.d(e,t,(function(){return n[t]}))}(s);e["default"]=i.a},1647:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"regBg"},[t.pageLoad?a("v-uni-view",{staticClass:"regBox"},[a("v-uni-form",{on:{submit:function(e){arguments[0]=e=t.$handleEvent(e),t.formSubmit.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"input-flex"},[a("v-uni-view",{staticClass:"input-flex-label"},[t._v("手机")]),a("v-uni-input",{staticClass:"input-flex-text",attrs:{name:"telephone",type:"text",placeholder:"请填手机号码"},model:{value:t.telephone,callback:function(e){t.telephone=e},expression:"telephone"}})],1),a("v-uni-view",{staticClass:"input-flex"},[a("v-uni-view",{staticClass:"input-flex-label"},[t._v("验证码")]),a("v-uni-input",{staticClass:"input-flex-text",attrs:{type:"text",name:"yzm"},model:{value:t.yzm,callback:function(e){t.yzm=e},expression:"yzm"}}),a("v-uni-view",{staticClass:"input-flex-btn",class:t.yzmClass,on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getYzm()}}},[t._v(t._s(t.yzmStatus))])],1),a("v-uni-view",{staticClass:"input-flex"},[a("v-uni-view",{staticClass:"input-flex-label"},[t._v("昵称")]),a("v-uni-input",{staticClass:"input-flex-text",attrs:{name:"nickname",type:"text",placeholder:"请填写昵称"}})],1),a("v-uni-view",{staticClass:"input-flex"},[a("v-uni-view",{staticClass:"input-flex-label"},[t._v("密码")]),a("v-uni-input",{staticClass:"input-flex-text",attrs:{name:"password",type:"text",password:"true",placeholder:"请填写密码"}})],1),a("div",{staticClass:"input-flex"},[a("div",{staticClass:"input-flex-label"},[t._v("邀请码")]),a("v-uni-input",{staticClass:"input-flex-text",attrs:{name:"invitecode",placeholder:"请输入邀请码"}})],1),a("v-uni-button",{staticClass:"btn-row-submit btn-success",attrs:{type:"primary","form-type":"submit"}},[t._v("立即注册")])],1)],1):t._e()],1)},s=[]},4711:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".yzmDisable[data-v-7700ba0f]{background-color:#eee;color:#999}.regBox[data-v-7700ba0f]{position:absolute;top:50%;left:%?30?%;right:%?30?%;margin-top:%?-390?%;padding:%?30?% %?20?%;background-color:#fff;border-radius:%?20?%}.regBg[data-v-7700ba0f]{background:-webkit-linear-gradient(#29cee8,#619ad6);background:linear-gradient(#29cee8,#619ad6);position:absolute;top:%?0?%;bottom:%?0?%;left:%?0?%;right:%?0?%}",""]),t.exports=e},"70d2":function(t,e,a){"use strict";a.r(e);var n=a("1647"),i=a("025c");for(var s in i)"default"!==s&&function(t){a.d(e,t,(function(){return i[t]}))}(s);a("faca");var u,o=a("f0c5"),l=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"7700ba0f",null,!1,n["a"],u);e["default"]=l.exports},"910f":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=59,i=!0,s={data:function(){return{pageLoad:!1,pageData:{},yzm:"",telephone:"",yzmClass:"",yzmStatus:"获取验证码"}},onLoad:function(t){this.pageLoad=!0},methods:{downTimer:function(){var t=this,e=setInterval((function(){i=!1,t.yzmStatus="倒计时"+n+"秒",t.yzmClass="yzmDisable",n--,0==n&&(n=59,i=!0,t.yzmClass="",t.yzmStatus="获取验证码",clearInterval(e))}),1e3)},getYzm:function(){if(!i)return!1;var t=this;uni.request({url:t.app.apiHost+"?m=register&a=SendSms&ajax=1",data:{telephone:this.telephone,fromapp:t.app.fromapp()},success:function(e){uni.showToast({title:e.data.message}),e.error||t.downTimer()}})},formSubmit:function(t){var e=this;t.detail.value.password2=t.detail.value.password,uni.request({url:e.app.apiHost+"?m=register&a=regsave&ajax=1",method:"POST",header:{"content-type":"application/x-www-form-urlencoded"},data:t.detail.value,success:function(t){var a=t.data;t.data.error?uni.showToast({title:t.data.message}):(e.app.setAuthCode(a.data.authcode),e.app.goHome())}})}}};e.default=s},adc3:function(t,e,a){var n=a("4711");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("605ebfc4",n,!0,{sourceMap:!1,shadowMode:!1})},faca:function(t,e,a){"use strict";var n=a("adc3"),i=a.n(n);i.a}}]);