(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/login/login"],{"2b86":function(e,t,n){"use strict";n.r(t);var o=n("5c76"),a=n("2c33");for(var i in a)"default"!==i&&function(e){n.d(t,e,(function(){return a[e]}))}(i);n("fe55");var r,s=n("f0c5"),c=Object(s["a"])(a["default"],o["b"],o["c"],!1,null,"22aabdb1",null,!1,o["a"],r);t["default"]=c.exports},"2c33":function(e,t,n){"use strict";n.r(t);var o=n("2e16"),a=n.n(o);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=a.a},"2e16":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n("26cb");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s={data:function(){return{phone:"",code:"",disabled:!1,second:60,value:1,iswxphone:!0,infoRes:{}}},computed:i({},(0,o.mapState)(["configBox","appTheme"])),onLoad:function(t){e.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:this.appTheme});var n=this;t&&(n.infoRes=t,console.log("登录信息",t,n.infoRes,this.configBox)),this.iswxphone=e.getStorageSync("iswxphone")},methods:{checkboxChange:function(e){this.value=e.detail.value.length?e.detail.value[0]:"0"},handleTelLogin:function(){var t=this;0!=this.value?this.phone?/^1[3456789]\d{9}$/.test(t.phone)?t.code?this.$model.getRegister({phone:t.phone,tenantId:e.getStorageSync("tenantid"),sessionId:e.getStorageSync("sessionid"),name:t.infoRes.name,headImg:t.infoRes.headimg,code:t.code,isvrcode:!0}).then((function(n){0==n.code?(e.setStorageSync("token",n.data.token),e.setStorageSync("iswxphone",n.data.iswxphone),e.setStorageSync("refreshtoken",n.data.refreshtoken),e.setStorageSync("sessionid",n.data.sessionid),"active"==t.infoRes.url?e.reLaunch({url:"/pages/index/active?code="+t.infoRes.code}):e.reLaunch({url:"/pages/index/index"})):t.$tools.msg(n.message)})).catch((function(e){})):t.$tools.msg("请输入验证码"):t.$tools.msg("请输入正确的手机号码"):t.$tools.msg("请输入手机号"):t.$tools.msg("请先勾选同意《个人信息保护政策》")},handleCode:function(){var e=this;e.phone?/^1[3456789]\d{9}$/.test(e.phone)?e.$model.getSendCode({phone:e.phone}).then((function(t){if(console.log(t),0==t.code){e.disabled=!0;var n=setInterval((function(){--e.second}),1e3);setTimeout((function(){clearInterval(n),e.disabled=!1,e.second=60}),6e4)}else e.$tools.msg(t.message)})).catch((function(e){})):e.$tools.msg("请输入正确的手机号码"):e.$tools.msg("请输入手机号")},getPhoneNumber:function(t){var n=this;0!=this.value?"getPhoneNumber:ok"==t.detail.errMsg&&(console.log("res",t),this.$model.getregister({tenantId:e.getStorageSync("tenantid"),sessionId:e.getStorageSync("sessionid"),encryptedData:t.detail.encryptedData,iv:t.detail.iv,name:n.infoRes.name,headImg:n.infoRes.headimg,fansid:e.getStorageSync("fansid")}).then((function(t){0==t.code&&(n.value=1,e.setStorageSync("token",t.data.token),e.setStorageSync("iswxphone",t.data.iswxphone),e.setStorageSync("refreshtoken",t.data.refreshtoken),e.setStorageSync("sessionid",t.data.sessionid),"active"==n.infoRes.url?e.reLaunch({url:"/pages/index/active?code="+n.infoRes.code}):e.reLaunch({url:"/pages/index/index"}))}))):n.$tools.msg("请先勾选同意个人信息保护政策")},handlexieyi:function(){e.navigateTo({url:"/pageTwo/login/detail?id="+this.configBox.privacyid})}}};t.default=s}).call(this,n("543d")["default"])},"5c76":function(e,t,n){"use strict";var o;n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o}));var a=function(){var e=this,t=e.$createElement;e._self._c},i=[]},"8c66":function(e,t,n){"use strict";(function(e){n("e568");o(n("66fd"));var t=o(n("2b86"));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},a4cf:function(e,t,n){},fe55:function(e,t,n){"use strict";var o=n("a4cf"),a=n.n(o);a.a}},[["8c66","common/runtime","common/vendor"]]]);