(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-555769aa"],{"1dab":function(e,t,n){var r=n("1de2"),i=n("e4e4"),o=n("70d4"),a=o("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},"4f47":function(e,t,n){e.exports=n.p+"img/logo.e38d0da3.png"},5816:function(e,t,n){var r=n("02ba"),i=n("0294"),o=n("82f7"),a=n("91ad"),u=n("3f48"),s=n("40ac").f,c=n("6876").f,l=n("1dab"),d=n("0bdd"),f=n("6115"),g=n("7e31"),p=n("d03a"),v=n("bde6"),h=n("6cc4"),m=n("38e1").enforce,b=n("8d0d"),x=n("70d4"),y=n("acc8"),w=n("509f"),S=x("match"),C=i.RegExp,I=C.prototype,k=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,_=/a/g,T=/a/g,V=new C(_)!==_,W=g.UNSUPPORTED_Y,P=r&&(!V||W||y||w||v((function(){return T[S]=!1,C(_)!=_||C(T)==T||"/a/i"!=C(_,"i")}))),O=function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)t=e.charAt(r),"\\"!==t?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+e.charAt(++r);return i},$=function(e){for(var t,n=e.length,r=0,i="",o=[],a={},u=!1,s=!1,c=0,l="";r<=n;r++){if(t=e.charAt(r),"\\"===t)t+=e.charAt(++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:k.test(e.slice(r+1))&&(r+=2,s=!0),i+=t,c++;continue;case">"===t&&s:if(""===l||h(a,l))throw new SyntaxError("Invalid capture group name");a[l]=!0,o.push([l,c]),s=!1,l="";continue}s?l+=t:i+=t}return[i,o]};if(o("RegExp",P)){for(var E=function(e,t){var n,r,i,o,s,c,g=this instanceof E,p=l(e),v=void 0===t,h=[],b=e;if(!g&&p&&v&&e.constructor===E)return e;if((p||e instanceof E)&&(e=e.source,v&&(t="flags"in b?b.flags:f.call(b))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),b=e,y&&"dotAll"in _&&(r=!!t&&t.indexOf("s")>-1,r&&(t=t.replace(/s/g,""))),n=t,W&&"sticky"in _&&(i=!!t&&t.indexOf("y")>-1,i&&(t=t.replace(/y/g,""))),w&&(o=$(e),e=o[0],h=o[1]),s=a(C(e,t),g?this:I,E),(r||i||h.length)&&(c=m(s),r&&(c.dotAll=!0,c.raw=E(O(e),n)),i&&(c.sticky=!0),h.length&&(c.groups=h)),e!==b)try{u(s,"source",""===b?"(?:)":b)}catch(x){}return s},R=function(e){e in E||s(E,e,{configurable:!0,get:function(){return C[e]},set:function(t){C[e]=t}})},U=c(C),A=0;U.length>A;)R(U[A++]);I.constructor=E,E.prototype=I,p(i,"RegExp",E)}b("RegExp")},"73fb":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"skin-blur-violate"}},[n("section",{attrs:{id:"login"}},[e._m(0),n("div",{staticClass:"clearfix"}),n("form",{staticClass:"box tile animated active",attrs:{id:"box-login"}},[n("h2",{staticClass:"m-t-0 m-b-15"}),n("div",{staticClass:"rowHeight"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.login.phone,expression:"login.phone"}],staticClass:"login-control login_account",attrs:{type:"text",placeholder:"输入手机号"},domProps:{value:e.login.phone},on:{input:function(t){t.target.composing||e.$set(e.login,"phone",t.target.value)}}})]),n("div",{staticClass:"rowHeight"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.login.uservalid,expression:"login.uservalid"}],staticClass:"login-control login_valid",attrs:{type:"number",placeholder:"输入右侧图形码"},domProps:{value:e.login.uservalid},on:{input:function(t){t.target.composing||e.$set(e.login,"uservalid",t.target.value)}}}),n("img",{attrs:{id:"imgValidcode",src:e.valImgSrc,title:e.InvisibilityGiveitatry},on:{click:e.getValImgSrc}})]),n("div",{staticClass:"rowHeight"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.login.userpwd,expression:"login.userpwd"}],staticClass:"login-control login_pwd",attrs:{type:"number",placeholder:"输入验证码"},domProps:{value:e.login.userpwd},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.pwdLoginBtn.apply(null,arguments)},input:function(t){t.target.composing||e.$set(e.login,"userpwd",t.target.value)}}}),n("mu-button",{attrs:{id:"getValidSms",disabled:e.getValidSmsState,color:"success"},on:{click:e.getValidSmsBtn}},[e._v(" "+e._s(e.btnText)+" ")])],1),n("div",{staticClass:"btn_center btn_login"},[n("span",{staticClass:"btn btn-md login_btn",on:{click:e.pwdLoginBtn}},[e._v("登 录")])]),e._m(1)])]),n("mu-snackbar",{attrs:{position:e.normal.position,open:e.normal.open,color:e.normal.color},on:{"update:open":function(t){return e.$set(e.normal,"open",t)}}},[e._v(" "+e._s(e.normal.message)+" "),n("mu-button",{attrs:{slot:"action",flat:"",color:"secondary"},on:{click:function(t){e.normal.open=!1}},slot:"action"},[e._v(e._s("close"))])],1)],1)},i=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("header",[r("img",{attrs:{src:n("4f47"),height:"59",width:"59",id:"logo"}}),r("img",{attrs:{src:n("86e1"),width:"274px"}})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"beian"},[n("a",{attrs:{href:"https://beian.miit.gov.cn/",target:"_blank"}},[e._v("鲁ICP备2020039388号-1")])])}],o=(n("a717"),n("a8d6"),n("d7f0"),n("5816"),n("7d8f"),n("b8a1")),a=n("fed1"),u={data:function(){var e=this,t=function(t,n,r){n!==e.form.newpwd?r(new Error("两次输入密码不一致!")):r()},n=function(e,t,n){var r=/^[0-9a-zA-Z_]{1,}$/;-1==t.search(r)?n(new Error("错了哦,密码只能由字母、数字及下划线组成")):n()},r=function(e,t,n){var r=/^1[3|4|5|7|8|9][0-9]\d{8}$/;-1==t.search(r)?n(new Error("错了哦,手机号码格式不正确")):n()};return{Password:"Password",VerificationCode:"Verification Code",InvisibilityGiveitatry:"无效?再点一下试试吧!",valImgSrc:"",picId:"",getValidSmsState:!1,overtime:"",btnText:"获取验证码",normal:normal,login:{phone:"",userpwd:"",uservalid:""},rules:{username:[{required:!0,message:"请输入用户名",trigger:"blur"},{min:6,max:32,message:"长度在 6 到 32 个字符",trigger:"blur"}],phone:[{required:!0,message:"请输入手机号",trigger:"blur"},{min:11,max:12,message:"手机号长度是11位",trigger:"blur"},{validator:r,trigger:"blur"}],re_phonevalid:[{required:!0,message:"请输入验证码",trigger:"blur"},{min:4,max:4,message:"长度在 4 个字符",trigger:"blur"}],newpwd:[{required:!0,message:"请输入新密码",trigger:"blur"},{min:6,max:32,message:"长度在 6 到 32 个字符",trigger:"blur"},{validator:n,trigger:"blur"}],again:[{required:!0,message:"请输入确认密码",trigger:"blur"},{min:6,max:32,message:"长度在 6 到 32 个字符",trigger:"blur"},{validator:n,trigger:"blur"},{validator:t,trigger:"blur"}]}}},mounted:function(){if(localStorage.token)this.$router.push({path:"/"});else{this.getValImgSrc(),this.overtime=new Date;var e=this.$route.query.from,t=(navigator.userAgent,window.location.host);console.log(t),"app"==e||"192.168.0.62:8184"==t?console.log("from app & brower"):(console.log("form wx"),this.checkcode())}},methods:{checkcode:function(){123==this.getUrlKey("state")?localStorage.code=this.getUrlKey("code"):this.GetOpenId()},GetOpenId:function(){var e=location.href,t=encodeURIComponent(e),n="snsapi_userinfo",r="wx36cb8b6661d71811",i="123",o="https://open.weixin.qq.com/connect/oauth2/authorize?appid="+r+"&redirect_uri="+t+"&response_type=code&scope="+n+"&state="+i+"#wechat_redirect";self.location=o},getUrlKey:function(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.href)||[,""])[1].replace(/\+/g,"%20"))||null},getValidSmsBtn:function(){var e=this,t=e.login.phone,n=e.login.uservalid;if(!t)return e.Toast("手机号不能为空"),!1;if(11!=t.length)return e.Toast("手机号只能是11位"),!1;if(!globalCheckPhone(t))return e.Toast("手机号格式不正确"),!1;if(!n)return e.Toast("图形验证码不能为空"),!1;if(4!=n.length)return e.Toast("图形验证码只能是4位"),!1;var r={token:localStorage.token,phone:t,codeType:1,picId:this.valImgId,picCode:n},i=a.stringify(r);Object(o["e"])(i).then((function(t){var n=t;0==n.Code?(e.Toast("短信验证码已发送","success"),e.calcTime()):e.Toast(n.Memo)}))},calcTime:function(){var e=60,t=this;t.getValidSmsState=!0,t.btnText=e+"S";var n=setInterval((function(){0==e?(clearInterval(n),t.getValidSmsState=!1,t.btnText="重新发送"):(e--,t.btnText=e+"S")}),1e3)},clearLogin:function(){this.login.username="",this.login.userpwd="",this.login.uservalid="",this.getValImgSrc()},getValImgSrc:function(){var e=this,t={token:localStorage.token,width:100,height:30,noiseCount:1,length:4,source:123456789},n=a.stringify(t);Object(o["c"])(n).then((function(t){var n=t;e.valImgSrc=n.Pic,e.valImgId=n.Id}))},pwdLoginBtn:function(){var e=this,t=this.login.phone,n=this.login.userpwd;e.overtime=new Date,e.globalValid(t,10,12,"手机号",e)&&e.globalValid(n,5,7,"短信验证码",e)&&this.loginInfo()},globalValid:function(e,t,n,r,i){var o=e,a=o.length,u=parseInt(t),s=parseInt(n),c=u+1;return""==o?(this.Toast(r+" 不能为空"),!1):a<=u?(this.Toast(r+"最少"+c+"字符"),!1):!(a>s)||(this.Toast(r+"超过限制长度"),!1)},loginInfo:function(){var e=this,t=this,n=new Date,r=n-t.overtime,i=120;if(r>1e3*i)return t.changeValImg(),t.$toast.message("验证码已超时,请重新输入"),!1;var u={phone:t.login.phone,code:t.login.userpwd,channel:3},s=a.stringify(u);Object(o["w"])(s).then((function(n){if(0==n.Code){t.res=n.Rs,localStorage.token=n.Rs.token;var r=e.$route.query.from;"app"!=r&&t.bindWx(),t.$router.push({path:"/"})}else e.getValImgSrc(),10005==n.Code?(t.$refs.userpwd.value="",t.Toast("密码错误,请重新输入")):(t.Toast(n.Memo+",错误代码:"+n.Code),t.form.valid="")}))},bindWx:function(){var e={token:localStorage.token,code:localStorage.code},t=a.stringify(e);Object(o["C"])(t).then((function(e){var t=e;t.Code}))},getUserInfo:function(e){var t=this,n={token:e},r=a.stringify(n);Object(o["D"])(r).then((function(e){var n=e;if(0==n.Code){var r=n.Rs.Rolesname;localStorage.userLevel=r,localStorage.comId=n.Rs.Comid,localStorage.Insname=n.Rs.Insname,t.$router.push({path:"/"})}else t.$toast.message(n.Memo)}))}},components:{}},s=u,c=(n("b2dd"),n("cba8")),l=Object(c["a"])(s,r,i,!1,null,"0f3c41e0",null);t["default"]=l.exports},"86e1":function(e,t,n){e.exports=n.p+"img/title.49df2552.png"},"91ad":function(e,t,n){var r=n("1de2"),i=n("9c8e");e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},b2dd:function(e,t,n){"use strict";n("f78e")},b8a1:function(e,t,n){"use strict";n.d(t,"D",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return s})),n.d(t,"w",(function(){return c})),n.d(t,"C",(function(){return l})),n.d(t,"j",(function(){return d})),n.d(t,"k",(function(){return f})),n.d(t,"l",(function(){return g})),n.d(t,"m",(function(){return p})),n.d(t,"a",(function(){return v})),n.d(t,"A",(function(){return h})),n.d(t,"B",(function(){return m})),n.d(t,"y",(function(){return b})),n.d(t,"h",(function(){return x})),n.d(t,"z",(function(){return y})),n.d(t,"x",(function(){return w})),n.d(t,"i",(function(){return S})),n.d(t,"n",(function(){return C})),n.d(t,"q",(function(){return I})),n.d(t,"s",(function(){return k})),n.d(t,"o",(function(){return _})),n.d(t,"p",(function(){return T})),n.d(t,"t",(function(){return V})),n.d(t,"v",(function(){return W})),n.d(t,"u",(function(){return P})),n.d(t,"r",(function(){return O})),n.d(t,"b",(function(){return $})),n.d(t,"g",(function(){return E})),n.d(t,"d",(function(){return R})),n.d(t,"f",(function(){return U}));var r=n("82ae"),i=n.n(r);n("379d");function o(e,t){return i.a.post(e,t).then((function(e){var t=e.data;return t}),(function(e){console.info(e)}))}function a(e){var t=headapi+"testSelect";return o(t,e)}function u(e){var t=headapi+"v1/Auth/GenVerifyPic";return o(t,e)}function s(e){var t=headapi+"v1/Auth/GetPhoneVFCode";return o(t,e)}function c(e){var t=headapi+"v1/Auth/PhoneSignIn";return o(t,e)}function l(e){var t=headapi+"v1/Auth/WXBind";return o(t,e)}function d(e){var t=headapi+"v1/Weixin/OderAddByVipUser";return o(t,e)}function f(e){var t=headapi+"v1/Weixin/OderCancelByVipUser";return o(t,e)}function g(e){var t=headapi+"v1/Weixin/OrderListQuery";return o(t,e)}function p(e){var t=headapi+"v1/Weixin/OrderShopQuery";return o(t,e)}function v(e){var t=headapi+"v1/Weixin/CanOrderSchoolTimeTableListQuery";return o(t,e)}function h(e){var t=headapi+"v1/Weixin/VipUserConsumeListQuery";return o(t,e)}function m(e){var t=headapi+"v1/Weixin/VipUserSelfQuery";return o(t,e)}function b(e){var t=headapi+"v1/Weixin/SchoolTimeQueryByDate";return o(t,e)}function x(e){var t=headapi+"v1/User/ManagerSelfQuery";return o(t,e)}function y(e){var t=headapi+"v1/Weixin/VipUserCleCkSum";return o(t,e)}function w(e){var t=headapi+"v1/Weixin/QueryNextWeek";return o(t,e)}function S(e){var t=headapi+"v1/Weixin/MyShopQuery";return o(t,e)}function C(e){var t=headapi+"v1/Weixin/PersonCardStatistics";return o(t,e)}function I(e){var t=headapi+"v1/Weixin/PersonClassStatistics";return o(t,e)}function k(e){var t=headapi+"v1/Weixin/PersonMonthStatistics";return o(t,e)}function _(e){var t=headapi+"v1/Weixin/PersonClassDetail";return o(t,e)}function T(e){var t=headapi+"v1/Weixin/PersonClassList";return o(t,e)}function V(e){var t=headapi+"v1/Weixin/PersonScoreClassQuery";return o(t,e)}function W(e){var t=headapi+"v1/Weixin/PersonTtolistQuery";return o(t,e)}function P(e){var t=headapi+"v1/Weixin/PersonTtdStaticsQuery";return o(t,e)}function O(e){var t=headapi+"v1/Weixin/PersonFtoList";return o(t,e)}function $(e){var t=headapi+"v1/FitnessTest/FtoDetailQuery";return o(t,e)}function E(e){var t=headbpi+"v1/OutService/GetUserHistoryInfoByDuId";return o(t,e)}function R(e){var t=headbpi+"v1/OutService/GetHrValueInfoByDuId";return o(t,e)}function U(e){var t=headbpi+"v1/OutService/GetSportPercentByDuId";return o(t,e)}},f78e:function(e,t,n){}}]); //# sourceMappingURL=chunk-555769aa.undefined.1639030008719.js.map