(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/public/register"],{"00e6":function(t,n,e){"use strict";var o=e("c4d2"),i=e.n(o);i.a},"621b":function(t,n,e){"use strict";(function(t,n){var o=e("4ea4");e("12d5");o(e("66fd"));var i=o(e("f765"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"814f":function(t,n,e){"use strict";e.r(n);var o=e("89b4"),i=e.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},"89b4":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("5b71"),i={data:function(){return{phone:"",loginPass:"",payPass:"",invitation:"",code:"",time:"",countDown:0}},onLoad:function(){this.invitation=t.getStorageSync("spread")||""},watch:{countDown:function(t){0==t&&clearInterval(this.time)}},methods:{register:function(){var n=this;""!=n.phone?/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/.test(n.phone)||/(^1[3|4|5|6|7|8|9][0-9]{9}$)/.test(this.phone)?""!=n.loginPass?""!=n.code?(0,o.register)({account:n.phone,captcha:n.code,password:n.loginPass,trade_password:n.payPass,spread:n.invitation}).then((function(n){t.showToast({title:"注册成功",duration:2e3,position:"top",icon:"none"}),setTimeout((function(){t.navigateTo({url:"/pages/public/login"})}),1e3)})):n.$api.msg("请输入验证码"):n.$api.msg("请输入登录密码"):n.$api.msg("请输入正确的邮箱或手机"):n.$api.msg("请输入账号")},verification:function(){var n=this;if(""!=this.phone){if(/^([a-zA-Z]|[0-9])(\w|\-|\.)+@[a-zA-Z0-9]+(\.([a-zA-Z]{2,4}))+$/.test(n.phone)||/(^1[3|4|5|6|7|8|9][0-9]{9}$)/.test(this.phone))return!(n.countDown>0)&&(n.countDown=60,n.time=setInterval((function(){n.countDown--}),1e3),void(0,o.verify)({phone:n.phone,type:"register"}).then((function(n){n.data;t.showToast({title:"验证码已发送",duration:2e3,position:"top",icon:"none"})})).catch((function(t){console.log(t)})));n.$api.msg("请输入正确的账号")}else this.$api.msg("请输入账号")}}};n.default=i}).call(this,e("543d")["default"])},c4d2:function(t,n,e){},ce5d:function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){}));var o=function(){var t=this.$createElement;this._self._c},i=[]},f765:function(t,n,e){"use strict";e.r(n);var o=e("ce5d"),i=e("814f");for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("00e6");var c=e("f0c5"),s=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=s.exports}},[["621b","common/runtime","common/vendor"]]]);