2023-09-08 14:56:12 +08:00
|
|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/login/login"],{"208d":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var o=function(){var e=this.$createElement;this._self._c},i=[]},"21e6":function(e,t,n){"use strict";n.r(t);var o=n("32c7"),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=i.a},"32c7":function(e,t,n){"use strict";(function(e){var o=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n("9523")),a=n("26cb");function s(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}var r={data:function(){return{phone:"",code:"",disabled:!1,second:60,value:0,iswxphone:!0,infoRes:{}}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,a.mapState)(["configBox","appTheme"])),onLoad:function(t){e.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:this.appTheme});t&&(this.infoRes=t,console.log("登录信息",t,this.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("请输入手机号")},handleIsTel:function(){0!=this.value||this.$tools.msg("请先勾选同意《个人信息保护政策》")},getPhoneNumber:function(t){var n=this;"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"}))})))},handlexieyi:function(){e.navigateTo({url:"/pageTwo/login/detail?id="+this.configBox.privacyid})}}};t.default=r}).call(this,n("543d")["default"])},"3d56":function(e,t,n){},"5d70":function(e,t,n){"use strict";(function(e,t){var o=n("4ea4");n("6808");o(n("66fd"));var i=o(n("79b9"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.defa
|