(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/login/login"],{"0efb":function(e,n,t){"use strict";t.r(n);var o=t("4e5e"),a=t.n(o);for(var s in o)"default"!==s&&function(e){t.d(n,e,(function(){return o[e]}))}(s);n["default"]=a.a},"36c0":function(e,n,t){"use strict";(function(e){t("0d2f");o(t("66fd"));var n=o(t("4c9e"));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=t,e(n.default)}).call(this,t("543d")["createPage"])},"4c9e":function(e,n,t){"use strict";t.r(n);var o=t("dca2"),a=t("0efb");for(var s in a)"default"!==s&&function(e){t.d(n,e,(function(){return a[e]}))}(s);t("c28d");var i,c=t("f0c5"),d=Object(c["a"])(a["default"],o["b"],o["c"],!1,null,"94373a76",null,!1,o["a"],i);n["default"]=d.exports},"4e5e":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={data:function(){return{phone:"",code:"",disabled:!1,second:60,value:1,iswxphone:!0,infoRes:{}}},onLoad:function(n){var t=this;n&&(t.infoRes=n,console.log("登录信息",n,t.infoRes)),this.iswxphone=e.getStorageSync("iswxphone")},methods:{checkboxChange:function(e){this.value=e.detail.value.length?e.detail.value[0]:"0"},handleTelLogin:function(){var n=this;0!=this.value?this.phone?/^1[3456789]\d{9}$/.test(n.phone)?n.code?this.$model.getRegister({phone:n.phone,tenantId:e.getStorageSync("tenantid"),sessionId:e.getStorageSync("sessionid"),name:n.infoRes.name,headImg:n.infoRes.headimg,code:n.code,isvrcode:!0}).then((function(t){0==t.code?(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"}):e.reLaunch({url:"/pages/index/index"})):n.$tools.msg(t.message)})).catch((function(e){})):n.$tools.msg("请输入验证码"):n.$tools.msg("请输入正确的手机号码"):n.$tools.msg("请输入手机号"):n.$tools.msg("请先勾选同意每日一称《个人信息保护政策》")},handleCode:function(){var e=this;e.phone?/^1[3456789]\d{9}$/.test(e.phone)?e.$model.getSendCode({phone:e.phone}).then((function(n){if(console.log(n),0==n.code){e.disabled=!0;var t=setInterval((function(){--e.second}),1e3);setTimeout((function(){clearInterval(t),e.disabled=!1,e.second=60}),6e4)}else e.$tools.msg(n.message)})).catch((function(e){})):e.$tools.msg("请输入正确的手机号码"):e.$tools.msg("请输入手机号")},getPhoneNumber:function(n){var t=this;0!=this.value?"getPhoneNumber:ok"==n.detail.errMsg&&(console.log("res",n),this.$model.getregister({tenantId:e.getStorageSync("tenantid"),sessionId:e.getStorageSync("sessionid"),encryptedData:n.detail.encryptedData,iv:n.detail.iv,name:t.infoRes.name,headImg:t.infoRes.headimg,fansid:e.getStorageSync("fansid")}).then((function(n){0==n.code&&(t.value=1,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"}):e.reLaunch({url:"/pages/index/index"}))}))):t.$tools.msg("请先勾选同意每日一称《个人信息保护政策")},handlexieyi:function(){e.navigateTo({url:"/pageTwo/login/detail?id=08DA1796-2FEE-4813-8B0C-8A45E7A57E70"})}}};n.default=t}).call(this,t("543d")["default"])},c28d:function(e,n,t){"use strict";var o=t("e43a"),a=t.n(o);a.a},dca2:function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return s})),t.d(n,"a",(function(){return o}));var a=function(){var e=this,n=e.$createElement;e._self._c},s=[]},e43a:function(e,n,t){}},[["36c0","common/runtime","common/vendor"]]]);