chunk-8f9743e0.undefined.1634027456456.js 13 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8f9743e0"],{"09ca":function(e,t,n){"use strict";n("8cf6")},"3eb6":function(e,t,n){var r=n("c14e"),i=n("8e63"),o=n("3a48");e.exports=function(e,t,n){var a,u;return o&&r(a=t.constructor)&&a!==n&&i(u=a.prototype)&&u!==n.prototype&&o(e,u),e}},"73fb":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"skin-blur-violate"}},[r("section",{attrs:{id:"login"}},[r("header",[e._e(),r("img",{staticStyle:{"margin-top":"90px","margin-bottom":"20px"},attrs:{src:n("86e1"),width:"274px"}})]),r("div",{staticClass:"clearfix"}),r("form",{staticClass:"box tile animated active",attrs:{id:"box-login"}},[r("h2",{staticClass:"m-t-0 m-b-15"}),r("div",{staticClass:"rowHeight"},[r("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)}}})]),r("div",{staticClass:"rowHeight"},[r("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)}}}),r("img",{attrs:{id:"imgValidcode",src:e.valImgSrc,title:e.InvisibilityGiveitatry},on:{click:e.getValImgSrc}})]),r("div",{staticClass:"rowHeight"},[r("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)}}}),r("mu-button",{attrs:{id:"getValidSms",disabled:e.getValidSmsState,color:"success"},on:{click:e.getValidSmsBtn}},[e._v(" "+e._s(e.btnText)+" ")])],1),r("div",{staticClass:"btn_center"},[r("span",{staticClass:"btn btn-md login_btn",on:{click:e.pwdLoginBtn}},[e._v("登 录")])])])]),r("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)+" "),r("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=[],o=(n("bd79"),n("76d7"),n("3d3a"),n("f926"),n("d702"),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="wx86439675ad103b46",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["u"])(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["A"])(t).then((function(e){var t=e;t.Code}))},getUserInfo:function(e){var t=this,n={token:e},r=a.stringify(n);Object(o["B"])(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("09ca"),n("cba8")),l=Object(c["a"])(s,r,i,!1,null,"f38cdf82",null);t["default"]=l.exports},"86e1":function(e,t,n){e.exports=n.p+"img/title.a5d39d41.png"},"8cf6":function(e,t,n){},a04b:function(e,t,n){var r=n("8e63"),i=n("f3c1"),o=n("1f96"),a=o("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},b8a1:function(e,t,n){"use strict";n.d(t,"B",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return s})),n.d(t,"u",(function(){return c})),n.d(t,"A",(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,"y",(function(){return h})),n.d(t,"z",(function(){return m})),n.d(t,"w",(function(){return b})),n.d(t,"h",(function(){return x})),n.d(t,"x",(function(){return y})),n.d(t,"v",(function(){return w})),n.d(t,"i",(function(){return S})),n.d(t,"n",(function(){return I})),n.d(t,"q",(function(){return C})),n.d(t,"s",(function(){return k})),n.d(t,"o",(function(){return V})),n.d(t,"p",(function(){return T})),n.d(t,"t",(function(){return _})),n.d(t,"r",(function(){return W})),n.d(t,"b",(function(){return O})),n.d(t,"g",(function(){return P})),n.d(t,"d",(function(){return $})),n.d(t,"f",(function(){return A}));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 I(e){var t=headapi+"v1/Weixin/PersonCardStatistics";return o(t,e)}function C(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 V(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 _(e){var t=headapi+"v1/Weixin/PersonScoreClassQuery";return o(t,e)}function W(e){var t=headapi+"v1/Weixin/PersonFtoList";return o(t,e)}function O(e){var t=headapi+"v1/FitnessTest/FtoDetailQuery";return o(t,e)}function P(e){var t=headbpi+"v1/OutService/GetUserHistoryInfoByDuId";return o(t,e)}function $(e){var t=headbpi+"v1/OutService/GetHrValueInfoByDuId";return o(t,e)}function A(e){var t=headbpi+"v1/OutService/GetSportPercentByDuId";return o(t,e)}},f926:function(e,t,n){var r=n("f7c7"),i=n("8ca2"),o=n("1e35"),a=n("3eb6"),u=n("ed4f"),s=n("f5e4").f,c=n("d7b8").f,l=n("a04b"),d=n("6f3e"),f=n("d324"),g=n("6273"),p=n("892a"),v=n("1710"),h=n("fb67"),m=n("1e07").enforce,b=n("4c8e"),x=n("1f96"),y=n("b773"),w=n("a761"),S=x("match"),I=i.RegExp,C=I.prototype,k=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,V=/a/g,T=/a/g,_=new I(V)!==V,W=g.UNSUPPORTED_Y,O=r&&(!_||W||y||w||v((function(){return T[S]=!1,I(V)!=V||I(T)==T||"/a/i"!=I(V,"i")}))),P=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",O)){for(var A=function(e,t){var n,r,i,o,s,c,g=this instanceof A,p=l(e),v=void 0===t,h=[],b=e;if(!g&&p&&v&&e.constructor===A)return e;if((p||e instanceof A)&&(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 V&&(r=!!t&&t.indexOf("s")>-1,r&&(t=t.replace(/s/g,""))),n=t,W&&"sticky"in V&&(i=!!t&&t.indexOf("y")>-1,i&&(t=t.replace(/y/g,""))),w&&(o=$(e),e=o[0],h=o[1]),s=a(I(e,t),g?this:C,A),(r||i||h.length)&&(c=m(s),r&&(c.dotAll=!0,c.raw=A(P(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 A||s(A,e,{configurable:!0,get:function(){return I[e]},set:function(t){I[e]=t}})},U=c(I),B=0;U.length>B;)R(U[B++]);C.constructor=A,A.prototype=C,p(i,"RegExp",A)}b("RegExp")}}]);
  2. //# sourceMappingURL=chunk-8f9743e0.undefined.1634027456456.js.map