(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-login-index"],{1948:function(t,e,n){"use strict";var i=n("37ed"),a=n.n(i);a.a},"2f93":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-af299716]{margin-top:%?60?%}.appLogin .hds[data-v-af299716]{display:flex;justify-content:center;align-items:center;font-size:%?24?%;color:#b4b4b4}.appLogin .hds .line[data-v-af299716]{width:%?68?%;height:%?1?%;background:#ccc}.appLogin .hds p[data-v-af299716]{margin:0 %?20?%}.appLogin .btn-wrapper[data-v-af299716]{display:flex;align-items:center;justify-content:center;margin-top:%?30?%}.appLogin .btn-wrapper .btn[data-v-af299716]{display:flex;align-items:center;justify-content:center;width:%?68?%;height:%?68?%;border-radius:50%}.appLogin .btn-wrapper .apple-btn[data-v-af299716]{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-af299716]{color:#fff;font-size:%?44?%}.appLogin .btn-wrapper .iconfont[data-v-af299716]{font-size:%?40?%;color:#fff}.appLogin .btn-wrapper .wx[data-v-af299716]{margin-right:%?30?%;background-color:#61c64f}.appLogin .btn-wrapper .mima[data-v-af299716]{margin-right:%?30?%;background-color:#28b3e9}.appLogin .btn-wrapper .yanzheng[data-v-af299716]{margin-right:%?30?%;background-color:#f89c23}.code img[data-v-af299716]{width:100%;height:100%}.acea-row.row-middle uni-input[data-v-af299716]{margin-left:%?20?%;display:block}.login-wrapper[data-v-af299716]{padding:%?30?%}.login-wrapper .shading[data-v-af299716]{display:flex;align-items:center;justify-content:center;width:100%;margin-top:%?200?%}.login-wrapper .shading uni-image[data-v-af299716]{width:%?240?%;height:%?240?%}.login-wrapper .whiteBg[data-v-af299716]{margin-top:%?100?%}.login-wrapper .whiteBg .list[data-v-af299716]{border-radius:%?16?%;overflow:hidden}.login-wrapper .whiteBg .list .item[data-v-af299716]{border-bottom:1px solid #f0f0f0;background:#fff}.login-wrapper .whiteBg .list .item .row-middle[data-v-af299716]{position:relative;padding:%?16?% %?45?%}.login-wrapper .whiteBg .list .item .row-middle uni-input[data-v-af299716]{flex:1;font-size:%?28?%;height:%?80?%}.login-wrapper .whiteBg .list .item .row-middle .code[data-v-af299716]{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-af299716]{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-af299716]{margin:%?30?%;text-align:center;color:#999}.protocol[data-v-af299716]{margin-top:%?40?%;color:#999;font-size:%?24?%;text-align:center;bottom:%?20?%}.trembling[data-v-af299716]{-webkit-animation:shake .6s;animation:shake .6s}.main-color[data-v-af299716]{color:var(--view-theme)}',""]),t.exports=e},"37ed":function(t,e,n){var i=n("ad7e");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("cc4f957e",i,!0,{sourceMap:!1,shadowMode:!1})},"3f5d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{disabled:!1,text:this.$t("验证码")}},methods:{sendCode:function(){var t=this;if(!this.disabled){this.disabled=!0;var e=60;this.text=this.$t("剩余")+e+"s";var n=setInterval((function(){e-=1,e<0&&clearInterval(n),t.text=t.$t("剩余")+e+"s",t.text=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,s.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(p)||"/pages/index/index";t.$Cache.clear(p),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(p)||"/pages/index/index";t.$Cache.clear(p),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=u.VUE_APP_API_URL+"/sms_captcha?key="+this.keyCode+Date.parse(new Date)},code:function(){var t=this;if(!t.protocol)return this.inAnimation=!0,t.$util.Tips({title:"请先阅读并同意协议"});(0,s.getCodeApi)().then((function(e){t.keyCode=e.data.key,t.getCode()})).catch((function(e){t.$util.Tips({title:e})}))},getLogoImage:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=t,(0,c.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,r.default)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.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,s.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(p)||"/pages/index/index";n.$Cache.clear(p),(0,s.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,r.default)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.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,s.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(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.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:return 2==n.formItem&&(n.type="register"),e.next=11,(0,s.registerVerify)({phone:n.account,type:n.type,key:n.keyCode,code:n.codeVal}).then((function(t){n.$util.Tips({title:t.msg}),n.sendCode()})).catch((function(t){n.$util.Tips({title:t})}));case 11:case"end":return e.stop()}}),e)})))()},navTap:function(t){this.current=t},submit:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.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,s.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(p)||"/pages/index/index";n.$Cache.clear(p),(0,s.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=f}).call(this,n("5a52")["default"])},7340:function(t,e,n){var i=n("2f93");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("3d1a4fd3",i,!0,{sourceMap:!1,shadowMode:!1})},8795:function(t,e,n){t.exports=n.p+"static/img/logo2.bf4a7420.png"},"955f":function(t,e,n){n("fb6a"),n("f4b3"),n("a9e3"),n("d3b7"),n("ac1f"),n("25f0"),n("466d"),n("5319"),n("1276"),n("bf19"),function(e,n){t.exports=n()}(0,(function(){"use strict";var t="millisecond",e="second",n="minute",i="hour",a="day",r="week",o="month",s="quarter",c="year",u=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,l=/\[([^\]]+)]|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},f={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,o),a=e-i<0,r=t.clone().add(n+(a?-1:1),o);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(u){return{M:o,y:c,w:r,d:a,D:"date",h:i,m:n,s:e,ms:t,Q:s}[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},d={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("_")},h="en",g={};g[h]=d;var v=function(t){return t instanceof b},m=function(t,e,n){var i;if(!t)return h;if("string"==typeof t)g[t]&&(i=t),e&&(g[t]=e,i=t);else{var a=t.name;g[a]=t,i=a}return!n&&i&&(h=i),i||!n&&h},w=function(t,e){if(v(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new b(n)},$=f;$.l=m,$.i=v,$.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var b=function(){function p(t){this.$L=this.$L||m(t.locale,null,!0),this.parse(t)}var f=p.prototype;return f.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(u);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()},f.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()},f.$utils=function(){return $},f.isValid=function(){return!("Invalid Date"===this.$d.toString())},f.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},f.isAfter=function(t,e){return w(t)