| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7bfbe923"],{"379d":function(e,t,n){companyInfo={url:"http://det.shandongewall.com/",main:"alloutlong",year:(new Date).getFullYear()},headapi="../"},"57d4":function(e,t,n){e.exports=n.p+"img/logo_goallout.f0477b24.png"},a55b: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:"bg"}},[r("el-container",[r("el-header"),r("el-main",[r("div",{staticClass:"bg"},[r("el-card",{staticClass:"box-card"},[r("h5",{staticClass:"title"},[r("img",{attrs:{src:n("57d4"),alt:""}})]),r("span",{staticClass:"subtitle"},[e._v("小飞龙运动视频管理平台")]),r("el-form",{ref:"form",attrs:{model:e.form,"label-width":"0px"}},[r("el-form-item",{attrs:{label:""}},[r("el-input",{attrs:{placeholder:"用户名"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),r("el-form-item",{attrs:{label:""}},[r("el-input",{attrs:{placeholder:"密码",type:"password"},model:{value:e.form.pwd,callback:function(t){e.$set(e.form,"pwd",t)},expression:"form.pwd"}})],1),r("br"),r("br"),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("登陆")])],1)],1)],1)],1)]),r("el-footer")],1)],1)},a=[],i=(n("10dd"),n("379d"),n("cad8")),o=n("b8a1"),u=n("b74f"),s=n("daf0"),c={data:function(){return{form:{name:"",pwd:"",valid:"",picId:""},valImgSrc:"",valImgId:"",overtime:"",userLevel:"",userLevelText:""}},mounted:function(){this.overtime=new Date,1==this.$route.query.status&&(this.changeValImg(),this.overtime=new Date),document.body.clientWidth<1024&&this.$message.warning("请横屏使用本系统")},methods:{getGenVerifyPic:function(){var e=this,t={token:localStorage.token,width:100,height:42,noiseCount:10,length:4,source:123456789},n=s.stringify(t);Object(o["d"])(n).then((function(t){var n=t;e.valImgSrc=n.Pic,e.valImgId=n.Id,e.form.picId=n.Id}))},changeValImg:function(){this.getGenVerifyPic()},onSubmit:function(){this.pwdLoginBtn()},pwdLoginBtn:function(){var e=this,t=this.form.name,n=this.form.pwd;this.form.valid;e.overtime=new Date,i["a"].globalValid(t,2,17,"用户名",e)&&i["a"].globalValid(n,5,17,"密码",e)&&this.loginInfo()},getManagerSelfQuery:function(){var e=this,t={token:localStorage.token},n=s.stringify(t);Object(o["e"])(n).then((function(t){var n=t;if(0==n.Code)switch(e.userLevelText=n.Rs.Role.Name,e.userLevel=n.Rs.Role.Id,localStorage.shopId=n.Rs.ShopId,localStorage.ShopId=n.Rs.ShopId,parseInt(e.userLevel)){case 1:e.$router.push({path:"/"});break;case 2:e.$router.push({path:"/shopManage"});break;case 3:e.$router.push({path:"/"});break;case 4:e.$router.push({path:"/"});break}else{if(1010==n.Code)return e.$message.error(n.Memo+" 错误码:"+n.Code),e.$router.push({path:"/login",query:{status:1}}),!1;e.$message.error(n.Memo+" 错误码:"+n.Code)}}))},loginInfo:function(){var e=this,t=this.form.name,n=this.form.pwd,r=new u["ManagerSignInRequest"];r.setUsercode(t),r.setPassword(n),e.client.managerSignIn(r,{},(function(t,n){n?(e.$router.push({path:"/"}),localStorage.token=n.getToken(),console.log(localStorage.token)):t&&(console.log(t),e.$notify({title:"警告",message:t.message+",错误代码:"+t.code,type:"warning"}),e.form.valid="",e.changeValImg())}))}}},l=c,d=(n("b728"),n("cba8")),f=Object(d["a"])(l,r,a,!1,null,"6ec84d28",null);t["default"]=f.exports},b728:function(e,t,n){"use strict";n("c5e5")},b8a1:function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"i",(function(){return u})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"j",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"o",(function(){return p})),n.d(t,"l",(function(){return h})),n.d(t,"n",(function(){return m})),n.d(t,"k",(function(){return v})),n.d(t,"m",(function(){return g})),n.d(t,"p",(function(){return b})),n.d(t,"r",(function(){return w})),n.d(t,"q",(function(){return S})),n.d(t,"b",(function(){return y})),n.d(t,"f",(function(){return I})),n.d(t,"g",(function(){return U}));var r=n("f753"),a=n.n(r);n("379d");function i(e,t){return a.a.post(e,t).then((function(e){var t=e.data;return t}),(function(e){console.info(e)}))}function o(e){var t=headapi+"v1/Auth/GenVerifyPic";return i(t,e)}function u(e){var t=headapi+"v1/Auth/SignOut";return i(t,e)}function s(e){var t=headapi+"v1/Class/ClassListQuery";return i(t,e)}function c(e){var t=headapi+"v1/SchoolTimeTable/AllShopClassDetailQuery";return i(t,e)}function l(e){var t=headapi+"v1/Shop/ShopSimpleQuery";return i(t,e)}function d(e){var t=headapi+"v1/Teacher/TeacherSimpleQuery";return i(t,e)}function f(e){var t=headapi+"v1/User/ManagerSelfQuery";return i(t,e)}function p(e){var t=headapi+"v1/User/VipUserHourEdit";return i(t,e)}function h(e){var t=headapi+"v1/User/VipUserClassEdit";return i(t,e)}function m(e){var t=headapi+"v1/User/VipUserExpEdit";return i(t,e)}function v(e){var t=headapi+"v1/User/VipUserAdd ";return i(t,e)}function g(e){var t=headapi+"v1/User/VipUserEdit ";return i(t,e)}function b(e){var t=headapi+"v1/User/VipUserListQuery";return i(t,e)}function w(e){var t=headapi+"v1/User/VipUserStatusEdit ";return i(t,e)}function S(e){var t=headapi+"v1/User/VipUserQueryByPhone ";return i(t,e)}function y(e){var t=headapi+"v1/SchoolTimeTable/ClassAppointTeacher ";return i(t,e)}function I(e){var t=headapi+"v1/FitnessTest/OrderFitnessTestJoinVipUser";return i(t,e)}function U(e){var t=headapi+"v1/FitnessTest/OrderFitnessTestStatusEdit";return i(t,e)}},c5e5:function(e,t,n){}}]);
|