| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1e02134a"],{"18c8":function(e,t,n){var r=n("0d56"),i=n("f8f6");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}},"1e34":function(e,t,n){"use strict";var r=n("a262"),i=n("88cd"),o=n("873d"),a=n("7c29"),s=n("b667"),c=n("52d1"),u=n("6b84"),l=n("6620"),d=Math.max,g=Math.min,f=function(e){return void 0===e?e:String(e)};r("replace",2,(function(e,t,n,r){var p=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=r.REPLACE_KEEPS_$0,h=p?"$":"$0";return[function(n,r){var i=s(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!p&&v||"string"===typeof r&&-1===r.indexOf(h)){var s=n(t,e,this,r);if(s.done)return s.value}var m=i(e),b=String(this),x="function"===typeof r;x||(r=String(r));var w=m.global;if(w){var S=m.unicode;m.lastIndex=0}var y=[];while(1){var I=l(m,b);if(null===I)break;if(y.push(I),!w)break;var C=String(I[0]);""===C&&(m.lastIndex=c(b,o(m.lastIndex),S))}for(var k="",_=0,T=0;T<y.length;T++){I=y[T];for(var V=String(I[0]),$=d(g(a(I.index),b.length),0),E=[],R=1;R<I.length;R++)E.push(f(I[R]));var U=I.groups;if(x){var O=[V].concat(E,$,b);void 0!==U&&O.push(U);var P=String(r.apply(void 0,O))}else P=u(V,b,$,E,U,r);$>=_&&(k+=b.slice(_,$)+P,_=$+V.length)}return k+b.slice(_)}]}))},"3a9a":function(e,t,n){"use strict";n("7f89")},"4f47":function(e,t,n){e.exports=n.p+"img/logo.e38d0da3.png"},"52d1":function(e,t,n){"use strict";var r=n("22da").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"6b84":function(e,t,n){var r=n("cb38"),i=Math.floor,o="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,c,u,l){var d=n+e.length,g=c.length,f=s;return void 0!==u&&(u=r(u),f=a),o.call(l,f,(function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(d);case"<":a=u[o.slice(1,-1)];break;default:var s=+o;if(0===s)return r;if(s>g){var l=i(s/10);return 0===l?r:l<=g?void 0===c[l-1]?o.charAt(1):c[l-1]+o.charAt(1):r}a=c[s-1]}return void 0===a?"":a}))}},"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(t)},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("37de"),n("fea5"),n("1e34"),n("8a3f"),n("4a32"),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.162: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["c"])(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),c=parseInt(n),u=s+1;return""==o?(this.Toast(r+" 不能为空"),!1):a<=s?(this.Toast(r+"最少"+u+"字符"),!1):!(a>c)||(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},c=a.stringify(s);Object(o["j"])(c).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["p"])(t).then((function(e){var t=e;t.Code}))},getUserInfo:function(e){var t=this,n={token:e},r=a.stringify(n);Object(o["q"])(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:{}},c=s,u=(n("3a9a"),n("5d22")),l=Object(u["a"])(c,r,i,!1,null,"2ee6dbb9",null);t["default"]=l.exports},"7f89":function(e,t,n){},"86e1":function(e,t,n){e.exports=n.p+"img/title.49df2552.png"},"8a3f":function(e,t,n){var r=n("6c52"),i=n("035f"),o=n("c2ac"),a=n("18c8"),s=n("fc7a").f,c=n("52a4").f,u=n("9b8a"),l=n("1580"),d=n("49e8"),g=n("1224"),f=n("ae56"),p=n("39f3").enforce,v=n("bece"),h=n("905a"),m=h("match"),b=i.RegExp,x=b.prototype,w=/a/g,S=/a/g,y=new b(w)!==w,I=d.UNSUPPORTED_Y,C=r&&o("RegExp",!y||I||f((function(){return S[m]=!1,b(w)!=w||b(S)==S||"/a/i"!=b(w,"i")})));if(C){var k=function(e,t){var n,r=this instanceof k,i=u(e),o=void 0===t;if(!r&&i&&e.constructor===k&&o)return e;y?i&&!o&&(e=e.source):e instanceof k&&(o&&(t=l.call(e)),e=e.source),I&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var s=a(y?new b(e,t):b(e,t),r?this:x,k);if(I&&n){var c=p(s);c.sticky=!0}return s},_=function(e){e in k||s(k,e,{configurable:!0,get:function(){return b[e]},set:function(t){b[e]=t}})},T=c(b),V=0;while(T.length>V)_(T[V++]);x.constructor=k,k.prototype=x,g(i,"RegExp",k)}v("RegExp")},"9b8a":function(e,t,n){var r=n("0d56"),i=n("13ee"),o=n("905a"),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,"q",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"j",(function(){return u})),n.d(t,"p",(function(){return l})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return g})),n.d(t,"h",(function(){return f})),n.d(t,"i",(function(){return p})),n.d(t,"a",(function(){return v})),n.d(t,"n",(function(){return h})),n.d(t,"o",(function(){return m})),n.d(t,"l",(function(){return b})),n.d(t,"d",(function(){return x})),n.d(t,"m",(function(){return w})),n.d(t,"k",(function(){return S})),n.d(t,"e",(function(){return y}));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 c(e){var t=headapi+"v1/Auth/GetPhoneVFCode";return o(t,e)}function u(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 w(e){var t=headapi+"v1/Weixin/VipUserCleCkSum";return o(t,e)}function S(e){var t=headapi+"v1/Weixin/QueryNextWeek";return o(t,e)}function y(e){var t=headapi+"v1/Weixin/MyShopQuery";return o(t,e)}}}]);
- //# sourceMappingURL=chunk-1e02134a.undefined.1619690112201.js.map
|