(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/register/register"],{"13cd":function(e,t,a){"use strict";a.d(t,"b",(function(){return l})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){return n}));var n={uCheckbox:function(){return a.e("uview-ui/components/u-checkbox/u-checkbox").then(a.bind(null,"6c7c"))}},l=function(){var e=this,t=e.$createElement;e._self._c},i=[]},"17bd":function(e,t,a){},"29b6":function(e,t,a){"use strict";a.r(t);var n=a("13cd"),l=a("38bb");for(var i in l)"default"!==i&&function(e){a.d(t,e,(function(){return l[e]}))}(i);a("56ad");var o,u=a("f0c5"),r=Object(u["a"])(l["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],o);t["default"]=r.exports},3278:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=getApp(),n={data:function(){return{webviewUrl1:"/pages/webview/webview?url=https://community.58fo.com/appfile/protocal.htm&title=隐私协议",webviewUrl2:"/pages/webview/webview?url=https://community.58fo.com/appfile/userprotocal.html&title=用户协议",text:"获取验证码",currentTime:61,disabled:!1,name:null,tel:null,verify_code:null,isCheck:!0,color:""}},onLoad:function(){var e=this.$auth.getMineBase().user;this.$isEmpty(e)||"13800000000"!=e.mobile&&(this.tel=this.$auth.getMineBase().user.mobile)},methods:{nameInput:function(e){this.setData({name:e.detail.value})},verifyCodeInput:function(e){this.setData({verify_code:e.detail.value})},sendMsgButton:function(){var e=this;e.setData({disabled:!0,color:"#ccc"});var t=e.name,n=e.tel,l=e.currentTime,i=null;if(null==t)i="姓名不能为空";else if(null==n)i="手机号码不能为空";else if(this.$u.test.mobile(n)){e.sendMessage();var o=setInterval((function(){l--,e.setData({text:l+"s"}),l<=0&&(clearInterval(o),e.setData({text:"重新发送",currentTime:61,disabled:!1,color:"#59a5f0"}))}),1e3)}else i="手机号格式不正确";if(null!=i)return a.globalData.autoFailHint(i),void e.setData({disabled:!1,color:"#59a5f0"})},showDialogBtn:function(t){console.log(t),a.globalData.totalStep=3;var n=this,l=n.name;if(null!=l){var i=n.tel;if(null!=i)if(this.$u.test.mobile(i)){var o=n.verify_code;if(null!=o)if(n.isCheck){var u={};u["name"]=l,u["tel"]=i,u["verify_code"]=o,u["create_type"]=0,u["openid"]=e.getStorageSync("openid"),this.$http.memberRegister(u).then((function(t){1==t.data.result_code?a.globalData.oneFailHint(t.data.result_msg,(function(){var t=this,l={};l["openid"]=e.getStorageSync("openid"),n.$http.getMemberByOpenid(l).then((function(n){if(console.info("getMemberByOpenid=="+n.data.result_msg),1==n.data.result_code){var l=n.data.member;a.globalData.member=l,t.$isEmpty(l.state)?e.redirectTo({url:"../auth/auth"}):e.reLaunch({url:"/pages/index/index"})}else a.globalData.oneFailHint(n.data.result_msg)}))})):a.globalData.oneFailHint(t.data.result_msg)}))}else a.globalData.autoFailHint("请同意用户协议");else a.globalData.autoFailHint("请填写验证码")}else a.globalData.autoFailHint("请填写正确的手机号码");else a.globalData.autoFailHint("请输入手机号")}else a.globalData.autoFailHint("请填写姓名")},sendMessage:function(){var e={};e["tel"]=this.tel,this.$http.getSmsCode(e).then((function(e){1==e.data.result_code?a.globalData.autoFailHint(e.data.result_msg):a.globalData.oneFailHint(e.data.result_msg)}))}}};t.default=n}).call(this,a("543d")["default"])},"38bb":function(e,t,a){"use strict";a.r(t);var n=a("3278"),l=a.n(n);for(var i in n)"default"!==i&&function(e){a.d(t,e,(function(){return n[e]}))}(i);t["default"]=l.a},"56ad":function(e,t,a){"use strict";var n=a("17bd"),l=a.n(n);l.a},a7ce:function(e,t,a){"use strict";(function(e){a("4518");n(a("66fd"));var t=n(a("29b6"));function n(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,a("543d")["createPage"])}},[["a7ce","common/runtime","common/vendor"]]]);