(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-login-index"],{"046e":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"login-wrapper",style:t.colorStyle},[i("v-uni-view",{staticClass:"shading"},[i("v-uni-image",{attrs:{src:t.logoUrl}})],1),1===t.formItem?i("v-uni-view",{staticClass:"whiteBg"},[1!==t.current?i("v-uni-view",{staticClass:"list"},[i("v-uni-form",{on:{submit:function(e){e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-image",{staticStyle:{width:"24rpx",height:"34rpx"},attrs:{src:n("86bc")}}),i("v-uni-input",{attrs:{type:"text",placeholder:t.$t("输入手机号码"),maxlength:"11",required:!0},model:{value:t.account,callback:function(e){t.account=e},expression:"account"}})],1)],1),i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-image",{staticStyle:{width:"28rpx",height:"32rpx"},attrs:{src:n("d3a3")}}),i("v-uni-input",{attrs:{type:"password",placeholder:t.$t("填写登录密码"),required:!0},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)],1)],1)],1):t._e(),0!==t.current||t.appLoginStatus||t.appleLoginStatus?i("v-uni-view",{staticClass:"list"},[i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-image",{staticStyle:{width:"24rpx",height:"34rpx"},attrs:{src:n("86bc")}}),i("v-uni-input",{attrs:{type:"text",placeholder:t.$t("输入手机号码"),maxlength:"11"},model:{value:t.account,callback:function(e){t.account=e},expression:"account"}})],1)],1),i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-image",{staticStyle:{width:"28rpx",height:"32rpx"},attrs:{src:n("06aa")}}),i("v-uni-input",{staticClass:"codeIput",attrs:{type:"text",placeholder:t.$t("填写验证码"),maxlength:"6"},model:{value:t.captcha,callback:function(e){t.captcha=e},expression:"captcha"}}),i("v-uni-button",{staticClass:"code",class:!0===t.disabled?"on":"",attrs:{disabled:t.disabled},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.code.apply(void 0,arguments)}}},[t._v(t._s(t.text))])],1)],1)],1):t._e(),0!==t.current?i("v-uni-view",{staticClass:"logon",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.loginMobile.apply(void 0,arguments)}}},[t._v(t._s(t.$t("登录")))]):t._e(),0===t.current?i("v-uni-view",{staticClass:"logon",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}},[t._v(t._s(t.$t("登录")))]):t._e(),i("v-uni-view",{staticClass:"tips"},[0==t.current?i("v-uni-view",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.current=1}}},[t._v(t._s(t.$t("快速登录")))]):t._e(),1==t.current?i("v-uni-view",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.current=0}}},[t._v(t._s(t.$t("账号登录")))]):t._e()],1),i("v-uni-view",{staticClass:"protocol"},[i("v-uni-checkbox-group",{on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.ChangeIsDefault.apply(void 0,arguments)}}},[i("v-uni-checkbox",{class:t.inAnimation?"trembling":"",attrs:{checked:!!t.protocol},on:{animationend:function(e){arguments[0]=e=t.$handleEvent(e),t.inAnimation=!1}}}),t._v(t._s(t.$t("已阅读并同意"))),i("v-uni-text",{staticClass:"main-color",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.privacy(4)}}},[t._v(t._s(t.$t("《用户协议》")))]),t._v(t._s(t.$t("与"))),i("v-uni-text",{staticClass:"main-color",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.privacy(3)}}},[t._v(t._s(t.$t("《隐私协议》")))])],1)],1)],1):t._e(),i("v-uni-view",{staticClass:"bottom"},[t.copyRight?i("v-uni-view",{staticClass:"ver"},[t._v(t._s(t.copyRight))]):i("v-uni-view",{staticClass:"ver"},[t._v("© 2014-2023"),i("a",{attrs:{href:"https://www.crmeb.com"}},[t._v("www.crmeb.com")])])],1),i("Verify",{ref:"verify",attrs:{captchaType:"blockPuzzle",imgSize:{width:"330px",height:"155px"}},on:{success:function(e){arguments[0]=e=t.$handleEvent(e),t.success.apply(void 0,arguments)}}})],1)},a=[]},"06aa":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAgCAYAAAABtRhCAAAD1klEQVRIS+2Xa4gbVRTH///ZjXR3VSz4AquuL+oXv/kA7YeuoiY792bpUoIKYlmh1CKoaEWrxSiWim8RXEWrKD4jVsmdyaKCKVr7oRs/iigoFZHGWl80u2qTzJEbJst0mtnMWvpFvBAIcx6/c86998wZYonLGLOW5GMAlgHYVKvV3iwWi0FaN0yjaIw5g+T1AG4FcHbURkR+APBsJpN5PZvN7uvnLxFoIY7jFEQkJyJXkXRCZy0ReQvAXyTXAcjY5yLSdhznoyAI/Gaz+e7k5OT+XnBWKpXzgiBYBWAYwAoRGQVwKcnzY5nsJ/nKwMDA87lcbq+Vlcvls0jeAmCK5KkxwFcA9gD4HsCPAP5uNpu7aIz5jeRJCaX4A8CHAN6fn5/fUSgUDvXSK5VKxw0NDa0FMAngWpLHJ/j7mZ7nSSj8VkS+Jvmd/QH4YnZ2dnexWGz125eovFarZer1+ioRuZjkqIicQ3IlgHOtXhR4hVJq91Kcp9X1PO9yAJ//D0xbsb56/62S+r5/m4j8rpR6tZv6McvQ87ynANxuQUqphS52TIBRmIg8orW+d8kZep7nAjhdKbV9sZMRhQF4Wil1R1Q/dYbGmINhmzrCSST6hTL2glm9OND2x4yIjGmtd0YjM8ZsI3lP+KxX5H1hIXAMwCcA/rStzb5GThGRNVrrD+KlSypXvzLGSmqb+nsA9tH3/T0icomIbNZab+u1V3HnoU7nNCaVMQa8D8DDAD6zwGkR2UDSuK6bTzocMWhXLXFvY8AZAFmSz9j34RqSO2x92+32aRMTEwdTQtPClgP4KZwMrrZA+6avkzzBDkVKqcf7XIGbwou90En66G8GsNUyRkZGzux0A2PMoyQ3ATgwODi4MpvN/tq3I6dQqFQqK4Ig+BLAid1kusCTSX4DwKb/tlLKTmhHtUql0sDw8PDHAMbCye5CrfV8tN+tB/BCSHlCKXXX0RCNMdMkN1gfIpLXWhv7/7Ax0fO8lwDcHIK2KqXu/zdQz/PsoNwJWES2aK3tleisw4DVanVwbm7unXD6svI3RGS9LUUacLVaXdZoNLaTvCGEPam1vjNqe8QgbKGNRuNlkjeGinsdx9k4Pj5u71LiMsbYYXkawAWdTMii67oPxg0SJ+9yubzRcRx7RYZCo51BEGzJ5/O7ok58378MwEMick2Y1S8kp5RS5V7RLfptMTMzM9pqtZ4jmYsYfyoiJQCHHMe5TkSuDGVtEXkNwN1a6wNJpUj7MbOa5AMAVvdw1ARgA7CHzI73i65UwK4H3/cvEpEpESmQtLYv2n1zXbfeD9SV/wMtt/fR/C3zpwAAAABJRU5ErkJggg=="},"0944":function(t,e,n){"use strict";var i=n("aebb"),a=n.n(i);a.a},"0d4c":function(t,e,n){"use strict";n.r(e);var i=n("ea70"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},2436:function(t,e,n){var i=n("a53f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("f49f03d2",i,!0,{sourceMap:!1,shadowMode:!1})},"728a":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,"uni-page-body[data-v-9532bf48]{background:#fff}body.?%PAGE?%[data-v-9532bf48]{background:#fff}",""]),t.exports=e},"86bc":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAiCAYAAACqVHINAAABcklEQVRIS+2XsUvDQBTGv6+00MGho4OD/gFuGSr+CbkWClIX/wAHBzddhICDCIpL9y46SqEJmRwFK2R018HBwc0OhZR7cqXRWDA27YFLbgu8e797X+4d36PneWXHcY4A7ANYg6UlIm8kO1EUndP3/TOSxyIyJBlZYkBEHJIrAC4M5MN8aK23ms3mwBak3+/XS6XSw+TwQRCISRzH8Uar1XqxBen1euuVSuXZ5MuEhGG4q7W+BlDOgI9I7rmue5uOmRsyLfn0D8hYa30yK/XckGWkKyC51CvkKuTKflZy6TMTXNyuXOoVchVyfTejiAxIjnJpkhEsIlWS9R9GAsArgLEtyNQXTMzi/1uiZapaqBmDIHAB7CRgEblrNBo3vx1kIYjv+z5JlUr6pJTatArpdrvVWq22miSN4/i93W4P54IkhttcN9d1H5f5D+m9YRhua63vE8N9BeDQ9ugAwPSI6RWPqSHoAMCXHBYqMhNCRyl1+QmrN5sHdi02lgAAAABJRU5ErkJggg=="},a53f:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.appLogin[data-v-9532bf48]{margin-top:%?60?%}.appLogin .hds[data-v-9532bf48]{display:flex;justify-content:center;align-items:center;font-size:%?24?%;color:#b4b4b4}.appLogin .hds .line[data-v-9532bf48]{width:%?68?%;height:%?1?%;background:#ccc}.appLogin .hds p[data-v-9532bf48]{margin:0 %?20?%}.appLogin .btn-wrapper[data-v-9532bf48]{display:flex;align-items:center;justify-content:center;margin-top:%?30?%}.appLogin .btn-wrapper .btn[data-v-9532bf48]{display:flex;align-items:center;justify-content:center;width:%?68?%;height:%?68?%;border-radius:50%}.appLogin .btn-wrapper .apple-btn[data-v-9532bf48]{display:flex;align-items:center;justify-content:center;width:%?68?%;height:%?68?%;border-radius:50%;background:#000}.appLogin .btn-wrapper .apple-btn .icon-s-pingguo[data-v-9532bf48]{color:#fff;font-size:%?44?%}.appLogin .btn-wrapper .iconfont[data-v-9532bf48]{font-size:%?40?%;color:#fff}.appLogin .btn-wrapper .wx[data-v-9532bf48]{margin-right:%?30?%;background-color:#61c64f}.appLogin .btn-wrapper .mima[data-v-9532bf48]{margin-right:%?30?%;background-color:#28b3e9}.appLogin .btn-wrapper .yanzheng[data-v-9532bf48]{margin-right:%?30?%;background-color:#f89c23}.code img[data-v-9532bf48]{width:100%;height:100%}.acea-row.row-middle uni-input[data-v-9532bf48]{margin-left:%?20?%;display:block}.login-wrapper[data-v-9532bf48]{padding:%?30?%}.login-wrapper .shading[data-v-9532bf48]{display:flex;align-items:center;justify-content:center;width:100%;margin-top:%?200?%}.login-wrapper .shading uni-image[data-v-9532bf48]{width:%?240?%;height:%?240?%}.login-wrapper .whiteBg[data-v-9532bf48]{margin-top:%?100?%}.login-wrapper .whiteBg .list[data-v-9532bf48]{border-radius:%?16?%;overflow:hidden}.login-wrapper .whiteBg .list .item[data-v-9532bf48]{border-bottom:1px solid #f0f0f0;background:#fff}.login-wrapper .whiteBg .list .item .row-middle[data-v-9532bf48]{position:relative;padding:%?16?% %?45?%}.login-wrapper .whiteBg .list .item .row-middle uni-input[data-v-9532bf48]{flex:1;font-size:%?28?%;height:%?80?%}.login-wrapper .whiteBg .list .item .row-middle .code[data-v-9532bf48]{position:absolute;right:%?30?%;top:50%;color:var(--view-theme);font-size:%?26?%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.login-wrapper .whiteBg .logon[data-v-9532bf48]{display:flex;align-items:center;justify-content:center;width:100%;height:%?86?%;margin-top:%?80?%;background-color:var(--view-theme);border-radius:%?120?%;color:#fff;font-size:%?30?%}.login-wrapper .whiteBg .tips[data-v-9532bf48]{margin:%?30?%;text-align:center;color:#999}.protocol[data-v-9532bf48]{margin-top:%?40?%;color:#999;font-size:%?24?%;text-align:center;bottom:%?20?%}.bottom[data-v-9532bf48]{position:fixed;bottom:%?30?%;left:0;display:flex;width:100%;justify-content:center;color:#999}.bottom .ver[data-v-9532bf48]{font-size:%?20?%}.bottom .ver-msg[data-v-9532bf48]{margin-left:%?10?%}.bottom a[data-v-9532bf48]{color:#999;margin-left:%?10?%;text-decoration:none}.trembling[data-v-9532bf48]{-webkit-animation:shake .6s;animation:shake .6s}.main-color[data-v-9532bf48]{color:var(--view-theme)}',""]),t.exports=e},aebb:function(t,e,n){var i=n("728a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("effa745a",i,!0,{sourceMap:!1,shadowMode:!1})},bc31:function(t,e,n){"use strict";var i=n("2436"),a=n.n(i);a.a},be84:function(t,e,n){"use strict";n.r(e);var i=n("046e"),a=n("0d4c");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("0944"),n("bc31");var o=n("f0c5"),s=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"9532bf48",null,!1,i["a"],void 0);e["default"]=s.exports},bf19:function(t,e,n){"use strict";var i=n("23e7"),a=n("c65b");i({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return a(URL.prototype.toString,this)}})},bfbf:function(t,e,n){var i,a,r=n("7037").default;n("a9e3"),n("ac1f"),n("5319"),n("00b4"),n("466d"),n("d401"),n("d3b7"),n("25f0"),n("fb6a"),n("f4b3"),n("bf19"),function(o,s){"object"==r(e)&&"undefined"!=typeof t?t.exports=s():(i=s,a="function"===typeof i?i.call(e,n,e,t):i,void 0===a||(t.exports=a))}(0,(function(){"use strict";var t="millisecond",e="second",n="minute",i="hour",a="day",o="week",s="month",c="quarter",u="year",l=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,f=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},d={s:p,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+p(i,2,"0")+":"+p(a,2,"0")},m:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,s),a=e-i<0,r=t.clone().add(n+(a?-1:1),s);return Number(-(n+(e-i)/(a?i-r:r-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(r){return{M:s,y:u,w:o,d:a,D:"date",h:i,m:n,s:e,ms:t,Q:c}[r]||String(r||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g="en",v={};v[g]=h;var m=function(t){return t instanceof A},b=function(t,e,n){var i;if(!t)return g;if("string"==typeof t)v[t]&&(i=t),e&&(v[t]=e,i=t);else{var a=t.name;v[a]=t,i=a}return!n&&i&&(g=i),i||!n&&g},w=function(t,e){if(m(t))return t.clone();var n="object"==r(e)?e:{};return n.date=t,n.args=arguments,new A(n)},$=d;$.l=b,$.i=m,$.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var A=function(){function r(t){this.$L=this.$L||b(t.locale,null,!0),this.parse(t)}var p=r.prototype;return p.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if($.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(l);if(i)return n?new Date(Date.UTC(i[1],i[2]-1,i[3]||1,i[4]||0,i[5]||0,i[6]||0,i[7]||0)):new Date(i[1],i[2]-1,i[3]||1,i[4]||0,i[5]||0,i[6]||0,i[7]||0)}return new Date(e)}(t),this.init()},p.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},p.$utils=function(){return $},p.isValid=function(){return!("Invalid Date"===this.$d.toString())},p.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},p.isAfter=function(t,e){return w(t)=13:e>=13},appleLogin:function(){var t=this;if(this.account="",this.captcha="",!t.protocol)return this.inAnimation=!0,t.$util.Tips({title:"请先阅读并同意协议"});uni.showLoading({title:this.$t("登录中")}),uni.login({provider:"apple",timeout:1e4,success:function(e){uni.getUserInfo({provider:"apple",success:function(e){t.appleUserInfo=e.userInfo,t.appleLoginApi()},fail:function(){uni.showToast({title:t.$t("获取用户信息失败"),icon:"none",duration:2e3})},complete:function(){uni.hideLoading()}})},fail:function(t){}})},appleLoginApi:function(){var t=this;(0,c.appleLogin)({openId:t.appleUserInfo.openId,email:t.appleUserInfo.email||"",phone:this.account,captcha:this.captcha}).then((function(e){var n=e.data;if(n.isbind)uni.showModal({title:t.$t("提示"),content:t.$t("请绑定手机号后,继续操作"),showCancel:!1,success:function(e){e.confirm&&(t.current=1,t.appleLoginStatus=!0)}});else{t.$store.commit("LOGIN",{token:n.token,time:n.expires_time-t.$Cache.time()});var i=t.$Cache.get(d)||"/pages/index/index";t.$Cache.clear(d),t.$store.commit("SETUID",n.userInfo.uid),uni.reLaunch({url:i})}})).catch((function(e){uni.showModal({title:t.$t("提示"),content:t.$t("错误信息")+"".concat(e),success:function(e){e.confirm?t.$t("用户点击确定"):e.cancel&&t.$t("用户点击取消")}})}))},wxLogin:function(){var t=this;if(this.account="",this.captcha="",!t.protocol)return this.inAnimation=!0,t.$util.Tips({title:"请先阅读并同意协议"});uni.showLoading({title:t.$t("登录中")}),uni.login({provider:"weixin",success:function(e){uni.getUserInfo({provider:"weixin",success:function(e){t.appUserInfo=e.userInfo,t.wxLoginApi()},fail:function(){uni.showToast({title:t.$t("获取用户信息失败"),icon:"none",duration:2e3})},complete:function(){uni.hideLoading()}})},fail:function(){uni.showToast({title:t.$t("登录失败"),icon:"none",duration:2e3})}})},wxLoginApi:function(){var t=this;wechatAppAuth({userInfo:t.appUserInfo,phone:this.account,code:this.captcha}).then((function(e){var n=e.data;if(n.isbind)uni.showModal({title:t.$t("提示"),content:t.$t("请绑定手机号后,继续操作"),showCancel:!1,success:function(e){e.confirm&&(t.current=1,t.appLoginStatus=!0)}});else{t.$store.commit("LOGIN",{token:n.token,time:n.expires_time-t.$Cache.time()});var i=t.$Cache.get(d)||"/pages/index/index";t.$Cache.clear(d),t.$store.commit("SETUID",n.userInfo.uid),uni.reLaunch({url:i})}})).catch((function(e){uni.showModal({title:t.$t("提示"),content:t.$t("错误信息")+"".concat(e),success:function(e){e.confirm?t.$t("用户点击确定"):e.cancel&&t.$t("用户点击取消")}})}))},again:function(){this.codeUrl=l.VUE_APP_API_URL+"/sms_captcha?key="+this.keyCode+Date.parse(new Date)},success:function(t){var e=this;this.$refs.verify.hide(),(0,c.getCodeApi)().then((function(n){e.keyCode=n.data.key,e.getCode(t)})).catch((function(t){e.$util.Tips({title:t})}))},code:function(){return this.protocol?this.account?/^1(3|4|5|7|8|9|6)\d{9}$/i.test(this.account)?void this.$refs.verify.show():this.$util.Tips({title:this.$t("请输入正确的手机号码")}):this.$util.Tips({title:this.$t("请填写手机号码")}):(this.inAnimation=!0,this.$util.Tips({title:"请先阅读并同意协议"}))},getLogoImage:function(){var t=this;return(0,o.default)((0,r.default)().mark((function e(){var n;return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=t,(0,u.getLogo)(2).then((function(t){n.logoUrl=t.data.logo_url}));case 2:case"end":return e.stop()}}),e)})))()},loginMobile:function(){var t=this;return(0,o.default)((0,r.default)().mark((function e(){var n;return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t,n.protocol){e.next=4;break}return t.inAnimation=!0,e.abrupt("return",n.$util.Tips({title:"请先阅读并同意协议"}));case 4:if(n.account){e.next=6;break}return e.abrupt("return",n.$util.Tips({title:n.$t("请填写手机号码")}));case 6:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(n.account)){e.next=8;break}return e.abrupt("return",n.$util.Tips({title:n.$t("请输入正确的手机号码")}));case 8:if(n.captcha){e.next=10;break}return e.abrupt("return",n.$util.Tips({title:n.$t("请填写验证码")}));case 10:if(/^[\w\d]+$/i.test(n.captcha)){e.next=12;break}return e.abrupt("return",n.$util.Tips({title:n.$t("请输入正确的验证码")}));case 12:if(!n.appLoginStatus){e.next=16;break}n.wxLoginApi(),e.next=26;break;case 16:if(!n.appleLoginStatus){e.next=20;break}n.appleLoginApi(),e.next=26;break;case 20:if(!t.keyLock){e.next=24;break}t.keyLock=!t.keyLock,e.next=25;break;case 24:return e.abrupt("return",n.$util.Tips({title:n.$t("请勿重复点击")}));case 25:(0,c.loginMobile)({phone:n.account,captcha:n.captcha,spread:n.$Cache.get("spread")}).then((function(e){var i=e.data;n.$store.commit("LOGIN",{token:i.token,time:i.expires_time-t.$Cache.time()});var a=n.$Cache.get(d)||"/pages/index/index";n.$Cache.clear(d),(0,c.getUserInfo)().then((function(e){t.keyLock=!0,n.$store.commit("SETUID",e.data.uid),-1!==a.indexOf("/pages/users/login/index")&&(a="/pages/index/index"),uni.reLaunch({url:a})}))})).catch((function(e){t.keyLock=!0,n.$util.Tips({title:e})}));case 26:case"end":return e.stop()}}),e)})))()},register:function(){var t=this;return(0,o.default)((0,r.default)().mark((function e(){var n;return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t,n.protocol){e.next=4;break}return t.inAnimation=!0,e.abrupt("return",n.$util.Tips({title:"请先阅读并同意协议"}));case 4:if(n.account){e.next=6;break}return e.abrupt("return",n.$util.Tips({title:n.$t("请填写手机号码")}));case 6:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(n.account)){e.next=8;break}return e.abrupt("return",n.$util.Tips({title:n.$t("请输入正确的手机号码")}));case 8:if(n.captcha){e.next=10;break}return e.abrupt("return",n.$util.Tips({title:n.$t("请填写验证码")}));case 10:if(/^[\w\d]+$/i.test(n.captcha)){e.next=12;break}return e.abrupt("return",n.$util.Tips({title:n.$t("请输入正确的验证码")}));case 12:if(n.password){e.next=14;break}return e.abrupt("return",n.$util.Tips({title:n.$t("请填写密码")}));case 14:if(!/^([0-9]|[a-z]|[A-Z]){0,6}$/i.test(n.password)){e.next=16;break}return e.abrupt("return",n.$util.Tips({title:n.$t("您输入的密码过于简单")}));case 16:(0,c.register)({account:n.account,captcha:n.captcha,password:n.password,spread:n.$Cache.get("spread")}).then((function(t){n.$util.Tips({title:t}),n.formItem=1})).catch((function(t){n.$util.Tips({title:t})}));case 17:case"end":return e.stop()}}),e)})))()},getCode:function(t){var e=this;return(0,o.default)((0,r.default)().mark((function n(){var i;return(0,r.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=e,i.protocol){n.next=4;break}return e.inAnimation=!0,n.abrupt("return",i.$util.Tips({title:"请先阅读并同意协议"}));case 4:if(i.account){n.next=6;break}return n.abrupt("return",i.$util.Tips({title:i.$t("请填写手机号码")}));case 6:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(i.account)){n.next=8;break}return n.abrupt("return",i.$util.Tips({title:i.$t("请输入正确的手机号码")}));case 8:return 2==i.formItem&&(i.type="register"),n.next=11,(0,c.registerVerify)({phone:i.account,type:i.type,key:i.keyCode,captchaType:"blockPuzzle",captchaVerification:t.captchaVerification}).then((function(t){e.sendCode(),i.$util.Tips({title:t.msg})})).catch((function(t){i.$util.Tips({title:t})}));case 11:case"end":return n.stop()}}),n)})))()},navTap:function(t){this.current=t},submit:function(){var t=this;return(0,o.default)((0,r.default)().mark((function e(){var n;return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t,n.protocol){e.next=4;break}return t.inAnimation=!0,e.abrupt("return",n.$util.Tips({title:"请先阅读并同意协议"}));case 4:if(n.account){e.next=6;break}return e.abrupt("return",n.$util.Tips({title:n.$t("请填写账号")}));case 6:if(/^[\w\d]{5,16}$/i.test(n.account)){e.next=8;break}return e.abrupt("return",n.$util.Tips({title:n.$t("请输入正确的账号")}));case 8:if(n.password){e.next=10;break}return e.abrupt("return",n.$util.Tips({title:n.$t("请填写密码")}));case 10:if(!t.keyLock){e.next=14;break}t.keyLock=!t.keyLock,e.next=15;break;case 14:return e.abrupt("return",n.$util.Tips({title:n.$t("请勿重复点击")}));case 15:(0,c.loginH5)({account:n.account,password:n.password,spread:n.$Cache.get("spread")}).then((function(e){var i=e.data;n.$store.commit("LOGIN",{token:i.token,time:i.expires_time-t.$Cache.time()});var a=n.$Cache.get(d)||"/pages/index/index";n.$Cache.clear(d),(0,c.getUserInfo)().then((function(e){t.keyLock=!0,n.$store.commit("SETUID",e.data.uid),uni.reLaunch({url:a})})).catch((function(e){t.keyLock=!0}))})).catch((function(e){t.keyLock=!0,n.$util.Tips({title:e})}));case 16:case"end":return e.stop()}}),e)})))()}}};e.default=h}).call(this,n("5a52")["default"])},f4b3:function(t,e,n){"use strict";var i=n("23e7"),a=n("d039"),r=n("7b0b"),o=n("c04e"),s=a((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));i({target:"Date",proto:!0,arity:1,forced:s},{toJSON:function(t){var e=r(this),n=o(e,"number");return"number"!=typeof n||isFinite(n)?e.toISOString():null}})}}]);