(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/public/register"],{"089a":function(t,n,e){"use strict";e.r(n);var o=e("66c9"),i=e.n(o);for(var a in o)"default"!==a&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},"4b5d":function(t,n,e){"use strict";(function(t){e("856e");o(e("66fd"));var n=o(e("d728"));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},6079:function(t,n,e){"use strict";var o=e("89e1"),i=e.n(o);i.a},"66c9":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("13d4"),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"])},"89e1":function(t,n,e){},b17e:function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return o}));var i=function(){var t=this,n=t.$createElement;t._self._c},a=[]},d728:function(t,n,e){"use strict";e.r(n);var o=e("b17e"),i=e("089a");for(var a in i)"default"!==a&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("6079");var c,s=e("f0c5"),u=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);n["default"]=u.exports}},[["4b5d","common/runtime","common/vendor"]]]);