| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6e4b8274"],{"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"),s=n("3f48"),u=n("40ac").f,c=n("6876").f,l=n("1dab"),d=n("0bdd"),g=n("6115"),f=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"),I=i.RegExp,C=I.prototype,k=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,V=/a/g,_=/a/g,T=new I(V)!==V,W=f.UNSUPPORTED_Y,O=r&&(!T||W||y||w||v((function(){return _[S]=!1,I(V)!=V||I(_)==_||"/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={},s=!1,u=!1,c=0,l="";r<=n;r++){if(t=e.charAt(r),"\\"===t)t+=e.charAt(++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:k.test(e.slice(r+1))&&(r+=2,u=!0),i+=t,c++;continue;case">"===t&&u:if(""===l||h(a,l))throw new SyntaxError("Invalid capture group name");a[l]=!0,o.push([l,c]),u=!1,l="";continue}u?l+=t:i+=t}return[i,o]};if(o("RegExp",O)){for(var R=function(e,t){var n,r,i,o,u,c,f=this instanceof R,p=l(e),v=void 0===t,h=[],b=e;if(!f&&p&&v&&e.constructor===R)return e;if((p||e instanceof R)&&(e=e.source,v&&(t="flags"in b?b.flags:g.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]),u=a(I(e,t),f?this:C,R),(r||i||h.length)&&(c=m(u),r&&(c.dotAll=!0,c.raw=R(P(e),n)),i&&(c.sticky=!0),h.length&&(c.groups=h)),e!==b)try{s(u,"source",""===b?"(?:)":b)}catch(x){}return u},U=function(e){e in R||u(R,e,{configurable:!0,get:function(){return I[e]},set:function(t){I[e]=t}})},E=c(I),A=0;E.length>A;)U(E[A++]);C.constructor=R,R.prototype=C,p(i,"RegExp",R)}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"},[n("span",{staticClass:"btn btn-md login_btn",on:{click:e.pwdLoginBtn}},[e._v("登 录")])])])]),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"}})])}],o=(n("a717"),n("a8d6"),n("d7f0"),n("5816"),n("7d8f"),n("b8a1")),a=n("fed1"),s={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["d"])(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["b"])(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,s=parseInt(t),u=parseInt(n),c=s+1;return""==o?(this.Toast(r+" 不能为空"),!1):a<=s?(this.Toast(r+"最少"+c+"字符"),!1):!(a>u)||(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 s={phone:t.login.phone,code:t.login.userpwd,channel:3},u=a.stringify(s);Object(o["s"])(u).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["y"])(t).then((function(e){var t=e;t.Code}))},getUserInfo:function(e){var t=this,n={token:e},r=a.stringify(n);Object(o["z"])(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:{}},u=s,c=(n("e24d"),n("cba8")),l=Object(c["a"])(u,r,i,!1,null,"3dfd2304",null);t["default"]=l.exports},"790b":function(e,t,n){},"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}},b8a1:function(e,t,n){"use strict";n.d(t,"z",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"s",(function(){return c})),n.d(t,"y",(function(){return l})),n.d(t,"i",(function(){return d})),n.d(t,"j",(function(){return g})),n.d(t,"k",(function(){return f})),n.d(t,"l",(function(){return p})),n.d(t,"a",(function(){return v})),n.d(t,"w",(function(){return h})),n.d(t,"x",(function(){return m})),n.d(t,"u",(function(){return b})),n.d(t,"g",(function(){return x})),n.d(t,"v",(function(){return y})),n.d(t,"t",(function(){return w})),n.d(t,"h",(function(){return S})),n.d(t,"m",(function(){return I})),n.d(t,"p",(function(){return C})),n.d(t,"q",(function(){return k})),n.d(t,"n",(function(){return V})),n.d(t,"o",(function(){return _})),n.d(t,"r",(function(){return T})),n.d(t,"f",(function(){return W})),n.d(t,"c",(function(){return O})),n.d(t,"e",(function(){return P}));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 s(e){var t=headapi+"v1/Auth/GenVerifyPic";return o(t,e)}function u(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 g(e){var t=headapi+"v1/Weixin/OderCancelByVipUser";return o(t,e)}function f(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 _(e){var t=headapi+"v1/Weixin/PersonClassList";return o(t,e)}function T(e){var t=headapi+"v1/Weixin/PersonScoreClassQuery";return o(t,e)}function W(e){var t=headbpi+"v1/OutService/GetUserHistoryInfoByDuId";return o(t,e)}function O(e){var t=headbpi+"v1/OutService/GetHrValueInfoByDuId";return o(t,e)}function P(e){var t=headbpi+"v1/OutService/GetSportPercentByDuId";return o(t,e)}},e24d:function(e,t,n){"use strict";n("790b")}}]);
- //# sourceMappingURL=chunk-6e4b8274.undefined.1629280313692.js.map
|