update
This commit is contained in:
parent
55fd7759a1
commit
e95afe1f0a
@ -9,8 +9,7 @@
|
||||
</div>
|
||||
<app-main />
|
||||
<div class="foot-copyright">
|
||||
<span>Copyright © 2020 武汉思维跳跃科技有限公司 版权所有</span><span>|</span>
|
||||
<span>鄂ICP备20013047号</span>
|
||||
<span>Copyright © 2020 武汉思维跳跃科技有限公司 版权所有</span>
|
||||
</div>
|
||||
<back-to-top :visibility-height="100" :back-position="0" transition-name="fade" ref="backTop"/>
|
||||
</div>
|
||||
|
@ -52,8 +52,7 @@
|
||||
</el-form>
|
||||
|
||||
<div class="account-foot-copyright">
|
||||
<span>Copyright © 2020 武汉思维跳跃科技有限公司 版权所有</span><span>|</span>
|
||||
<span>鄂ICP备20013047号</span>
|
||||
<span>Copyright © 2020 武汉思维跳跃科技有限公司 版权所有</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -1,90 +0,0 @@
|
||||
# exam-student
|
||||
|
||||
## Pre Command
|
||||
```
|
||||
npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
|
||||
npm install --registry https://registry.npm.taobao.org
|
||||
```
|
||||
|
||||
|
||||
## Project setup
|
||||
```
|
||||
npm install
|
||||
```
|
||||
|
||||
### Compiles and hot-reloads for development
|
||||
```
|
||||
npm run serve
|
||||
```
|
||||
|
||||
### Compiles and minifies for production
|
||||
```
|
||||
npm run build
|
||||
```
|
||||
|
||||
### Run your tests
|
||||
```
|
||||
npm run test
|
||||
```
|
||||
|
||||
### Lints and fixes files
|
||||
```
|
||||
npm run lint
|
||||
```
|
||||
|
||||
### Customize configuration
|
||||
See [Configuration Reference](https://cli.vuejs.org/config/).
|
||||
|
||||
|
||||
## Ngix gzip
|
||||
```
|
||||
gzip on;
|
||||
gzip_min_length 1k;
|
||||
gzip_comp_level 1;
|
||||
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/bmp application/x-bmp image/x-ms-bmp application/vnd.ms-fontobject font/ttf font/opentype font/x-woff;
|
||||
gzip_vary on;
|
||||
gzip_disable "MSIE [1-6]\.";
|
||||
gzip_buffers 32 4k;
|
||||
gzip_http_version 1.0;
|
||||
```
|
||||
|
||||
## Ngix config
|
||||
```
|
||||
server {
|
||||
listen 80;
|
||||
server_name student;
|
||||
root /usr/local/exam/student;
|
||||
index index.html;
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root html;
|
||||
}
|
||||
location /api/ {
|
||||
proxy_pass http://localhost:8001;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
## Ngix Https config
|
||||
```
|
||||
server {
|
||||
listen 85;
|
||||
listen 8085 ssl;
|
||||
server_name www.alvisu.com;
|
||||
root /usr/local/exam/link/exam-student;
|
||||
index index.html;
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
ssl_certificate /usr/local/exam/ssl/nginx.crt;
|
||||
ssl_certificate_key /usr/local/exam/ssl/nginx.key;
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||
ssl_ciphers ALL:!DH:!EXPORT:!RC4:+HIGH:+MEDIUM:!eNULL;
|
||||
ssl_prefer_server_ciphers on;
|
||||
location = /50x.html {
|
||||
root html;
|
||||
}
|
||||
location /api/ {
|
||||
proxy_pass https://www.alvisu.com:8001;
|
||||
}
|
||||
}
|
||||
```
|
@ -52,8 +52,7 @@
|
||||
</div>
|
||||
</el-footer>
|
||||
<div class="foot-copyright">
|
||||
<span>Copyright © 2020 武汉思维跳跃科技有限公司 版权所有</span><span>|</span>
|
||||
<span>鄂ICP备20013047号</span>
|
||||
<span>Copyright © 2020 武汉思维跳跃科技有限公司 版权所有</span>
|
||||
</div>
|
||||
</el-container>
|
||||
</template>
|
||||
|
@ -31,8 +31,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="account-foot-copyright">
|
||||
<span>Copyright © 2020 武汉思维跳跃科技有限公司 版权所有</span><span>|</span>
|
||||
<span>鄂ICP备20013047号</span>
|
||||
<span>Copyright © 2020 武汉思维跳跃科技有限公司 版权所有</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -37,8 +37,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="account-foot-copyright">
|
||||
<span>Copyright © 2020 武汉思维跳跃科技有限公司 版权所有</span><span>|</span>
|
||||
<span>鄂ICP备20013047号</span>
|
||||
<span>Copyright © 2020 武汉思维跳跃科技有限公司 版权所有</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -42,7 +42,7 @@
|
||||
<body>
|
||||
<div id="kfEditorContainer" class="kf-editor">
|
||||
<div id="tips" class="tips">
|
||||
sorry! Beta版本仅支持IE9及以上版本的浏览器,正式版本将会支持低版本浏览器,谢谢您的关注!
|
||||
sorry! 仅支持IE9及以上版本的浏览器!
|
||||
</div>
|
||||
</div>
|
||||
<!--页面中一定要引入internal.js为了能直接使用当前打开dialog的实例变量-->
|
||||
@ -104,4 +104,4 @@
|
||||
} );
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@ -13,4 +13,4 @@
|
||||
hm.src = 'https://hm.baidu.com/hm.js?cd8218cd51f800ed2b73e5751cb3f4f9'
|
||||
var s = document.getElementsByTagName('script')[0]
|
||||
s.parentNode.insertBefore(hm, s)
|
||||
})()</script><link href=static/css/chunk-04b6c2be.b6b9412a.css rel=prefetch><link href=static/css/chunk-07d991b3.b6b9412a.css rel=prefetch><link href=static/css/chunk-1159e38a.a13e9690.css rel=prefetch><link href=static/css/chunk-37f7a892.b6b9412a.css rel=prefetch><link href=static/css/chunk-4472f2d7.6aadbd54.css rel=prefetch><link href=static/css/chunk-448755e2.b6b9412a.css rel=prefetch><link href=static/css/chunk-4cf8ab8c.b6b9412a.css rel=prefetch><link href=static/css/chunk-5025ea04.b6b9412a.css rel=prefetch><link href=static/css/chunk-63af86fe.b6b9412a.css rel=prefetch><link href=static/css/chunk-6545515d.c03c2edb.css rel=prefetch><link href=static/css/chunk-6e3b3ca0.60f7ef12.css rel=prefetch><link href=static/css/chunk-913f50a6.b6b9412a.css rel=prefetch><link href=static/css/chunk-c2aa2eac.b6b9412a.css rel=prefetch><link href=static/css/chunk-c7b9eaf2.03972c94.css rel=prefetch><link href=static/js/chunk-04b6c2be.15f97a9a.js rel=prefetch><link href=static/js/chunk-07d991b3.48395a34.js rel=prefetch><link href=static/js/chunk-1159e38a.34e8b351.js rel=prefetch><link href=static/js/chunk-16f9edc1.e30a5365.js rel=prefetch><link href=static/js/chunk-2d0c138b.26760427.js rel=prefetch><link href=static/js/chunk-2d221bd2.afe3372c.js rel=prefetch><link href=static/js/chunk-2d2300ef.f788e95e.js rel=prefetch><link href=static/js/chunk-2d230fe7.042d38d1.js rel=prefetch><link href=static/js/chunk-37f7a892.814186c5.js rel=prefetch><link href=static/js/chunk-4472f2d7.68964ab5.js rel=prefetch><link href=static/js/chunk-448755e2.e50029bf.js rel=prefetch><link href=static/js/chunk-4cf8ab8c.95ea40e4.js rel=prefetch><link href=static/js/chunk-5025ea04.12930cf6.js rel=prefetch><link href=static/js/chunk-63af86fe.ff1e8b7e.js rel=prefetch><link href=static/js/chunk-6545515d.d92d1f83.js rel=prefetch><link href=static/js/chunk-6e3b3ca0.1e83a9b0.js rel=prefetch><link href=static/js/chunk-733c35b2.0a2df951.js rel=prefetch><link href=static/js/chunk-75f11c77.5dbff44d.js rel=prefetch><link href=static/js/chunk-78234ca2.bad70358.js rel=prefetch><link href=static/js/chunk-793f0082.3c39c468.js rel=prefetch><link href=static/js/chunk-913f50a6.7e2d328e.js rel=prefetch><link href=static/js/chunk-c2aa2eac.afdd3076.js rel=prefetch><link href=static/js/chunk-c7b9eaf2.2250ffa7.js rel=prefetch><link href=static/js/chunk-d0753fda.aefb80a0.js rel=prefetch><link href=static/css/chunk-vendors.ee57d822.css rel=preload as=style><link href=static/css/index.aa6fd1f3.css rel=preload as=style><link href=static/js/chunk-vendors.5f9acc86.js rel=preload as=script><link href=static/js/index.9957d694.js rel=preload as=script><link href=static/css/chunk-vendors.ee57d822.css rel=stylesheet><link href=static/css/index.aa6fd1f3.css rel=stylesheet></head><body><noscript><strong>We're sorry but vue-demo doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=static/js/chunk-vendors.5f9acc86.js></script><script src=static/js/index.9957d694.js></script></body></html>
|
||||
})()</script><link href=static/css/chunk-04b6c2be.b6b9412a.css rel=prefetch><link href=static/css/chunk-07d991b3.b6b9412a.css rel=prefetch><link href=static/css/chunk-1159e38a.a13e9690.css rel=prefetch><link href=static/css/chunk-37f7a892.b6b9412a.css rel=prefetch><link href=static/css/chunk-4472f2d7.6aadbd54.css rel=prefetch><link href=static/css/chunk-448755e2.b6b9412a.css rel=prefetch><link href=static/css/chunk-4cf8ab8c.b6b9412a.css rel=prefetch><link href=static/css/chunk-5025ea04.b6b9412a.css rel=prefetch><link href=static/css/chunk-63af86fe.b6b9412a.css rel=prefetch><link href=static/css/chunk-6e3b3ca0.60f7ef12.css rel=prefetch><link href=static/css/chunk-71f81c10.d7c9fb7c.css rel=prefetch><link href=static/css/chunk-913f50a6.b6b9412a.css rel=prefetch><link href=static/css/chunk-c2aa2eac.b6b9412a.css rel=prefetch><link href=static/css/chunk-c7b9eaf2.03972c94.css rel=prefetch><link href=static/js/chunk-04b6c2be.15f97a9a.js rel=prefetch><link href=static/js/chunk-07d991b3.48395a34.js rel=prefetch><link href=static/js/chunk-1159e38a.34e8b351.js rel=prefetch><link href=static/js/chunk-16f9edc1.e30a5365.js rel=prefetch><link href=static/js/chunk-2d0c138b.26760427.js rel=prefetch><link href=static/js/chunk-2d221bd2.afe3372c.js rel=prefetch><link href=static/js/chunk-2d2300ef.f788e95e.js rel=prefetch><link href=static/js/chunk-2d230fe7.042d38d1.js rel=prefetch><link href=static/js/chunk-37f7a892.814186c5.js rel=prefetch><link href=static/js/chunk-4472f2d7.68964ab5.js rel=prefetch><link href=static/js/chunk-448755e2.e50029bf.js rel=prefetch><link href=static/js/chunk-4cf8ab8c.95ea40e4.js rel=prefetch><link href=static/js/chunk-5025ea04.12930cf6.js rel=prefetch><link href=static/js/chunk-63af86fe.ff1e8b7e.js rel=prefetch><link href=static/js/chunk-6e3b3ca0.1e83a9b0.js rel=prefetch><link href=static/js/chunk-71f81c10.dc39773d.js rel=prefetch><link href=static/js/chunk-733c35b2.0a2df951.js rel=prefetch><link href=static/js/chunk-75f11c77.5dbff44d.js rel=prefetch><link href=static/js/chunk-78234ca2.bad70358.js rel=prefetch><link href=static/js/chunk-793f0082.3c39c468.js rel=prefetch><link href=static/js/chunk-913f50a6.7e2d328e.js rel=prefetch><link href=static/js/chunk-c2aa2eac.afdd3076.js rel=prefetch><link href=static/js/chunk-c7b9eaf2.2250ffa7.js rel=prefetch><link href=static/js/chunk-d0753fda.aefb80a0.js rel=prefetch><link href=static/css/chunk-vendors.ee57d822.css rel=preload as=style><link href=static/css/index.74782572.css rel=preload as=style><link href=static/js/chunk-vendors.5f9acc86.js rel=preload as=script><link href=static/js/index.d99b78d2.js rel=preload as=script><link href=static/css/chunk-vendors.ee57d822.css rel=stylesheet><link href=static/css/index.74782572.css rel=stylesheet></head><body><noscript><strong>We're sorry but vue-demo doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=static/js/chunk-vendors.5f9acc86.js></script><script src=static/js/index.d99b78d2.js></script></body></html>
|
@ -1 +1 @@
|
||||
@supports (-webkit-mask:none) and (not (cater-color:#fff)){.login-container .el-input input{color:#fff}}.login-container .el-input{display:inline-block;height:47px;width:85%}.login-container .el-input input{background:transparent;border:0;-webkit-appearance:none;border-radius:0;padding:12px 5px 12px 15px;color:#fff;height:47px;caret-color:#fff}.login-container .el-input input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #283443 inset!important;box-shadow:inset 0 0 0 1000px #283443!important;-webkit-text-fill-color:#fff!important}.login-container .el-form-item{border:1px solid hsla(0,0%,100%,.1);background:rgba(0,0,0,.1);border-radius:5px;color:#454545}.login-container[data-v-da0ee146]{min-height:100%;width:100%;background-color:#2d3a4b;overflow:hidden}.login-container .login-form[data-v-da0ee146]{position:relative;width:520px;max-width:100%;padding:30px 50px 10px 50px;margin:120px auto auto auto;overflow:hidden;background:rgba(252,254,255,.11)}.login-container .tips[data-v-da0ee146]{font-size:14px;color:#fff;margin-bottom:10px}.login-container .tips span[data-v-da0ee146]:first-of-type{margin-right:16px}.login-container .svg-container[data-v-da0ee146]{padding:6px 5px 6px 15px;color:#889aa4;vertical-align:middle;width:30px;display:inline-block}.login-container .title-container[data-v-da0ee146]{position:relative}.login-container .title-container .title[data-v-da0ee146]{font-size:26px;color:#eee;margin:0 auto 40px auto;text-align:center;font-weight:700}.login-container .show-pwd[data-v-da0ee146]{position:absolute;right:10px;top:7px;font-size:16px;color:#889aa4;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.login-container .thirdparty-button[data-v-da0ee146]{position:absolute;right:0;bottom:6px}@media only screen and (max-width:470px){.login-container .thirdparty-button[data-v-da0ee146]{display:none}}
|
||||
@supports (-webkit-mask:none) and (not (cater-color:#fff)){.login-container .el-input input{color:#fff}}.login-container .el-input{display:inline-block;height:47px;width:85%}.login-container .el-input input{background:transparent;border:0;-webkit-appearance:none;border-radius:0;padding:12px 5px 12px 15px;color:#fff;height:47px;caret-color:#fff}.login-container .el-input input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #283443 inset!important;box-shadow:inset 0 0 0 1000px #283443!important;-webkit-text-fill-color:#fff!important}.login-container .el-form-item{border:1px solid hsla(0,0%,100%,.1);background:rgba(0,0,0,.1);border-radius:5px;color:#454545}.login-container[data-v-e35e4c42]{min-height:100%;width:100%;background-color:#2d3a4b;overflow:hidden}.login-container .login-form[data-v-e35e4c42]{position:relative;width:520px;max-width:100%;padding:30px 50px 10px 50px;margin:120px auto auto auto;overflow:hidden;background:rgba(252,254,255,.11)}.login-container .tips[data-v-e35e4c42]{font-size:14px;color:#fff;margin-bottom:10px}.login-container .tips span[data-v-e35e4c42]:first-of-type{margin-right:16px}.login-container .svg-container[data-v-e35e4c42]{padding:6px 5px 6px 15px;color:#889aa4;vertical-align:middle;width:30px;display:inline-block}.login-container .title-container[data-v-e35e4c42]{position:relative}.login-container .title-container .title[data-v-e35e4c42]{font-size:26px;color:#eee;margin:0 auto 40px auto;text-align:center;font-weight:700}.login-container .show-pwd[data-v-e35e4c42]{position:absolute;right:10px;top:7px;font-size:16px;color:#889aa4;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.login-container .thirdparty-button[data-v-e35e4c42]{position:absolute;right:0;bottom:6px}@media only screen and (max-width:470px){.login-container .thirdparty-button[data-v-e35e4c42]{display:none}}
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6545515d"],{1084:function(e,o,t){"use strict";var s=t("5f75"),n=t.n(s);n.a},2017:function(e,o,t){"use strict";var s=t("cafe"),n=t.n(s);n.a},"5f75":function(e,o,t){},"9ed6":function(e,o,t){"use strict";t.r(o);var s=function(){var e=this,o=e.$createElement,t=e._self._c||o;return t("div",{staticClass:"login-container"},[t("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,"auto-complete":"on","label-position":"left"}},[t("div",{staticClass:"title-container"},[t("h3",{staticClass:"title"},[e._v("学之思管理系统")])]),t("el-form-item",{attrs:{prop:"userName"}},[t("span",{staticClass:"svg-container"},[t("svg-icon",{attrs:{"icon-class":"user"}})],1),t("el-input",{ref:"userName",attrs:{placeholder:"用户名",name:"userName",type:"text",tabindex:"1","auto-complete":"on"},model:{value:e.loginForm.userName,callback:function(o){e.$set(e.loginForm,"userName",o)},expression:"loginForm.userName"}})],1),t("el-tooltip",{attrs:{content:"Caps lock is On",placement:"right",manual:""},model:{value:e.capsTooltip,callback:function(o){e.capsTooltip=o},expression:"capsTooltip"}},[t("el-form-item",{attrs:{prop:"password"}},[t("span",{staticClass:"svg-container"},[t("svg-icon",{attrs:{"icon-class":"password"}})],1),t("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"密码",name:"password",tabindex:"2","auto-complete":"on"},on:{blur:function(o){e.capsTooltip=!1}},nativeOn:{keyup:[function(o){return e.checkCapslock(o)},function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"enter",13,o.key,"Enter")?null:e.handleLogin(o)}]},model:{value:e.loginForm.password,callback:function(o){e.$set(e.loginForm,"password",o)},expression:"loginForm.password"}}),t("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[t("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1)],1),t("el-checkbox",{staticStyle:{"margin-bottom":"20px","margin-left":"5px"},model:{value:e.loginForm.remember,callback:function(o){e.$set(e.loginForm,"remember",o)},expression:"loginForm.remember"}},[e._v("记住密码")]),t("el-button",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{loading:e.loading,type:"primary"},nativeOn:{click:function(o){return o.preventDefault(),e.handleLogin(o)}}},[e._v("登录")])],1),e._m(0)],1)},n=[function(){var e=this,o=e.$createElement,t=e._self._c||o;return t("div",{staticClass:"account-foot-copyright"},[t("span",[e._v("Copyright © 2020 武汉思维跳跃科技有限公司 版权所有")]),t("span",[e._v("|")]),t("span",[e._v("鄂ICP备20013047号")])])}],a=t("5530"),r=t("2f62"),i=t("7ded"),l={name:"Login",data:function(){var e=function(e,o,t){o.length<5?t(new Error("用户名不能少于5个字符")):t()},o=function(e,o,t){o.length<5?t(new Error("密码不能少于5个字符")):t()};return{loginForm:{userName:"",password:"",remember:!1},loginRules:{userName:[{required:!0,trigger:"blur",validator:e}],password:[{required:!0,trigger:"blur",validator:o}]},passwordType:"password",capsTooltip:!1,loading:!1,showDialog:!1}},created:function(){},mounted:function(){""===this.loginForm.userName?this.$refs.userName.focus():""===this.loginForm.password&&this.$refs.password.focus()},destroyed:function(){},methods:Object(a["a"])({checkCapslock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=e.shiftKey,t=e.key;t&&1===t.length&&(this.capsTooltip=!!(o&&t>="a"&&t<="z"||!o&&t>="A"&&t<="Z")),"CapsLock"===t&&!0===this.capsTooltip&&(this.capsTooltip=!1)},showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this,o=this;this.$refs.loginForm.validate((function(t){if(!t)return!1;e.loading=!0,i["a"].login(e.loginForm).then((function(e){e&&1===e.code?(o.setUserName(o.loginForm.userName),o.$router.push({path:"/"})):(o.loading=!1,o.$message({message:e.message,type:"error"}))})).catch((function(e){o.loading=!1}))}))}},Object(r["d"])("user",["setUserName"]))},c=l,p=(t("2017"),t("1084"),t("2877")),u=Object(p["a"])(c,s,n,!1,null,"da0ee146",null);o["default"]=u.exports},cafe:function(e,o,t){}}]);
|
@ -0,0 +1 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-71f81c10"],{2017:function(e,o,t){"use strict";var s=t("cafe"),n=t.n(s);n.a},"9ed6":function(e,o,t){"use strict";t.r(o);var s=function(){var e=this,o=e.$createElement,t=e._self._c||o;return t("div",{staticClass:"login-container"},[t("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,"auto-complete":"on","label-position":"left"}},[t("div",{staticClass:"title-container"},[t("h3",{staticClass:"title"},[e._v("学之思管理系统")])]),t("el-form-item",{attrs:{prop:"userName"}},[t("span",{staticClass:"svg-container"},[t("svg-icon",{attrs:{"icon-class":"user"}})],1),t("el-input",{ref:"userName",attrs:{placeholder:"用户名",name:"userName",type:"text",tabindex:"1","auto-complete":"on"},model:{value:e.loginForm.userName,callback:function(o){e.$set(e.loginForm,"userName",o)},expression:"loginForm.userName"}})],1),t("el-tooltip",{attrs:{content:"Caps lock is On",placement:"right",manual:""},model:{value:e.capsTooltip,callback:function(o){e.capsTooltip=o},expression:"capsTooltip"}},[t("el-form-item",{attrs:{prop:"password"}},[t("span",{staticClass:"svg-container"},[t("svg-icon",{attrs:{"icon-class":"password"}})],1),t("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"密码",name:"password",tabindex:"2","auto-complete":"on"},on:{blur:function(o){e.capsTooltip=!1}},nativeOn:{keyup:[function(o){return e.checkCapslock(o)},function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"enter",13,o.key,"Enter")?null:e.handleLogin(o)}]},model:{value:e.loginForm.password,callback:function(o){e.$set(e.loginForm,"password",o)},expression:"loginForm.password"}}),t("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[t("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1)],1),t("el-checkbox",{staticStyle:{"margin-bottom":"20px","margin-left":"5px"},model:{value:e.loginForm.remember,callback:function(o){e.$set(e.loginForm,"remember",o)},expression:"loginForm.remember"}},[e._v("记住密码")]),t("el-button",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{loading:e.loading,type:"primary"},nativeOn:{click:function(o){return o.preventDefault(),e.handleLogin(o)}}},[e._v("登录")])],1),e._m(0)],1)},n=[function(){var e=this,o=e.$createElement,t=e._self._c||o;return t("div",{staticClass:"account-foot-copyright"},[t("span",[e._v("Copyright © 2020 武汉思维跳跃科技有限公司 版权所有")])])}],a=t("5530"),r=t("2f62"),i=t("7ded"),l={name:"Login",data:function(){var e=function(e,o,t){o.length<5?t(new Error("用户名不能少于5个字符")):t()},o=function(e,o,t){o.length<5?t(new Error("密码不能少于5个字符")):t()};return{loginForm:{userName:"",password:"",remember:!1},loginRules:{userName:[{required:!0,trigger:"blur",validator:e}],password:[{required:!0,trigger:"blur",validator:o}]},passwordType:"password",capsTooltip:!1,loading:!1,showDialog:!1}},created:function(){},mounted:function(){""===this.loginForm.userName?this.$refs.userName.focus():""===this.loginForm.password&&this.$refs.password.focus()},destroyed:function(){},methods:Object(a["a"])({checkCapslock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=e.shiftKey,t=e.key;t&&1===t.length&&(this.capsTooltip=!!(o&&t>="a"&&t<="z"||!o&&t>="A"&&t<="Z")),"CapsLock"===t&&!0===this.capsTooltip&&(this.capsTooltip=!1)},showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this,o=this;this.$refs.loginForm.validate((function(t){if(!t)return!1;e.loading=!0,i["a"].login(e.loginForm).then((function(e){e&&1===e.code?(o.setUserName(o.loginForm.userName),o.$router.push({path:"/"})):(o.loading=!1,o.$message({message:e.message,type:"error"}))})).catch((function(e){o.loading=!1}))}))}},Object(r["d"])("user",["setUserName"]))},c=l,p=(t("2017"),t("dac3"),t("2877")),u=Object(p["a"])(c,s,n,!1,null,"e35e4c42",null);o["default"]=u.exports},abb9:function(e,o,t){},cafe:function(e,o,t){},dac3:function(e,o,t){"use strict";var s=t("abb9"),n=t.n(s);n.a}}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -14,4 +14,4 @@
|
||||
hm.src = 'https://hm.baidu.com/hm.js?cd8218cd51f800ed2b73e5751cb3f4f9'
|
||||
var s = document.getElementsByTagName('script')[0]
|
||||
s.parentNode.insertBefore(hm, s)
|
||||
})()</script><link href=static/css/chunk-00a370fd.aeeb5c93.css rel=prefetch><link href=static/css/chunk-038d4306.eaab2862.css rel=prefetch><link href=static/css/chunk-096af9f1.eaab2862.css rel=prefetch><link href=static/css/chunk-5e362585.5ecbdb83.css rel=prefetch><link href=static/css/chunk-5e8e7022.bc00d955.css rel=prefetch><link href=static/css/chunk-5ec3b549.6c0fbe5d.css rel=prefetch><link href=static/css/chunk-7aa4492c.a60a6ff1.css rel=prefetch><link href=static/css/chunk-889ecf22.03972c94.css rel=prefetch><link href=static/css/chunk-8ea99dc6.eaab2862.css rel=prefetch><link href=static/css/chunk-b917c4bc.eaab2862.css rel=prefetch><link href=static/css/chunk-bd32f434.c49a2505.css rel=prefetch><link href=static/js/chunk-00a370fd.dbde6a0b.js rel=prefetch><link href=static/js/chunk-038d4306.15e0c7cb.js rel=prefetch><link href=static/js/chunk-096af9f1.d1aa5cfc.js rel=prefetch><link href=static/js/chunk-2d20f362.0a4a5583.js rel=prefetch><link href=static/js/chunk-5e362585.871b07d5.js rel=prefetch><link href=static/js/chunk-5e8e7022.c0c8cb0f.js rel=prefetch><link href=static/js/chunk-5ec3b549.63f9e694.js rel=prefetch><link href=static/js/chunk-7aa4492c.a10f8937.js rel=prefetch><link href=static/js/chunk-889ecf22.c2a00449.js rel=prefetch><link href=static/js/chunk-8ea99dc6.3c11eb40.js rel=prefetch><link href=static/js/chunk-b917c4bc.6c2b2173.js rel=prefetch><link href=static/js/chunk-bd32f434.9a6b2547.js rel=prefetch><link href=static/js/chunk-ce360eb2.47469ffb.js rel=prefetch><link href=static/css/chunk-vendors.4bd9a591.css rel=preload as=style><link href=static/css/index.a993eb8d.css rel=preload as=style><link href=static/js/chunk-vendors.c2991cb0.js rel=preload as=script><link href=static/js/index.8b77f25a.js rel=preload as=script><link href=static/css/chunk-vendors.4bd9a591.css rel=stylesheet><link href=static/css/index.a993eb8d.css rel=stylesheet></head><body><noscript><strong>We're sorry but vue-demo doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=static/js/chunk-vendors.c2991cb0.js></script><script src=static/js/index.8b77f25a.js></script></body></html>
|
||||
})()</script><link href=static/css/chunk-00a370fd.aeeb5c93.css rel=prefetch><link href=static/css/chunk-038d4306.eaab2862.css rel=prefetch><link href=static/css/chunk-096af9f1.eaab2862.css rel=prefetch><link href=static/css/chunk-5454b879.a2dca667.css rel=prefetch><link href=static/css/chunk-5e362585.5ecbdb83.css rel=prefetch><link href=static/css/chunk-77ccc064.4aededf5.css rel=prefetch><link href=static/css/chunk-7aa4492c.a60a6ff1.css rel=prefetch><link href=static/css/chunk-889ecf22.03972c94.css rel=prefetch><link href=static/css/chunk-8ea99dc6.eaab2862.css rel=prefetch><link href=static/css/chunk-b917c4bc.eaab2862.css rel=prefetch><link href=static/css/chunk-bd32f434.c49a2505.css rel=prefetch><link href=static/js/chunk-00a370fd.dbde6a0b.js rel=prefetch><link href=static/js/chunk-038d4306.15e0c7cb.js rel=prefetch><link href=static/js/chunk-096af9f1.d1aa5cfc.js rel=prefetch><link href=static/js/chunk-2d20f362.0a4a5583.js rel=prefetch><link href=static/js/chunk-5454b879.c466df92.js rel=prefetch><link href=static/js/chunk-5e362585.871b07d5.js rel=prefetch><link href=static/js/chunk-77ccc064.9d0248a9.js rel=prefetch><link href=static/js/chunk-7aa4492c.a10f8937.js rel=prefetch><link href=static/js/chunk-889ecf22.c2a00449.js rel=prefetch><link href=static/js/chunk-8ea99dc6.3c11eb40.js rel=prefetch><link href=static/js/chunk-b917c4bc.6c2b2173.js rel=prefetch><link href=static/js/chunk-bd32f434.9a6b2547.js rel=prefetch><link href=static/js/chunk-ce360eb2.47469ffb.js rel=prefetch><link href=static/css/chunk-vendors.4bd9a591.css rel=preload as=style><link href=static/css/index.a993eb8d.css rel=preload as=style><link href=static/js/chunk-vendors.c2991cb0.js rel=preload as=script><link href=static/js/index.b10c51c3.js rel=preload as=script><link href=static/css/chunk-vendors.4bd9a591.css rel=stylesheet><link href=static/css/index.a993eb8d.css rel=stylesheet></head><body><noscript><strong>We're sorry but vue-demo doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=static/js/chunk-vendors.c2991cb0.js></script><script src=static/js/index.b10c51c3.js></script></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5454b879"],{2017:function(t,e,o){"use strict";var s=o("cafe"),n=o.n(s);n.a},"5fbe":function(t,e,o){t.exports=o.p+"static/img/logo2.745fd978.png"},"6edf":function(t,e,o){},"9ed6":function(t,e,o){"use strict";o.r(e);var s=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"lowin lowin-blue"},[t._m(0),o("div",{staticClass:"lowin-wrapper"},[o("div",{staticClass:"lowin-box lowin-login"},[o("div",{staticClass:"lowin-box-inner"},[o("el-form",{ref:"loginForm",attrs:{model:t.loginForm,rules:t.loginRules}},[o("p",[t._v("学之思考试系统")]),o("div",{staticClass:"lowin-group"},[o("label",[t._v("用户名 ")]),o("el-input",{ref:"userName",staticClass:"lowin-input",attrs:{placeholder:"用户名",name:"userName",type:"text",tabindex:"1","auto-complete":"on"},model:{value:t.loginForm.userName,callback:function(e){t.$set(t.loginForm,"userName",e)},expression:"loginForm.userName"}})],1),o("div",{staticClass:"lowin-group password-group"},[o("label",[t._v("密码 "),o("a",{staticClass:"forgot-link",attrs:{href:"#"}},[t._v("忘记密码?")])]),o("el-input",{key:t.passwordType,ref:"password",staticClass:"lowin-input",attrs:{type:t.passwordType,placeholder:"密码",name:"password",tabindex:"2","auto-complete":"on"},on:{blur:function(e){t.capsTooltip=!1}},nativeOn:{keyup:[function(e){return t.checkCapslock(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleLogin(e)}]},model:{value:t.loginForm.password,callback:function(e){t.$set(t.loginForm,"password",e)},expression:"loginForm.password"}})],1),o("el-button",{staticClass:"lowin-btn login-btn",attrs:{loading:t.loading,type:"text"},nativeOn:{click:function(e){return e.preventDefault(),t.handleLogin(e)}}},[t._v("登录")]),o("div",{staticClass:"text-foot"},[t._v(" 还没有账号? "),o("router-link",{staticClass:"register-link",attrs:{to:"/register"}},[t._v(" 注册 ")])],1)],1)],1)])]),t._m(1)])},n=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"lowin-brand"},[s("img",{staticStyle:{"margin-top":"12px"},attrs:{src:o("5fbe"),alt:"logo"}})])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"account-foot-copyright"},[o("span",[t._v("Copyright © 2020 武汉思维跳跃科技有限公司 版权所有")])])}],i=o("5530"),a=o("2f62"),r=o("7ded"),l={name:"Login",data:function(){var t=function(t,e,o){e.length<5?o(new Error("用户名不能少于5个字符")):o()},e=function(t,e,o){e.length<5?o(new Error("密码不能少于5个字符")):o()};return{loginForm:{userName:"",password:"",remember:!1},loginRules:{userName:[{required:!0,trigger:"blur",validator:t}],password:[{required:!0,trigger:"blur",validator:e}]},passwordType:"password",capsTooltip:!1,loading:!1,showDialog:!1}},created:function(){},mounted:function(){""===this.loginForm.userName?this.$refs.userName.focus():""===this.loginForm.password&&this.$refs.password.focus()},destroyed:function(){},methods:Object(i["a"])({checkCapslock:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.shiftKey,o=t.key;o&&1===o.length&&(this.capsTooltip=!!(e&&o>="a"&&o<="z"||!e&&o>="A"&&o<="Z")),"CapsLock"===o&&!0===this.capsTooltip&&(this.capsTooltip=!1)},showPwd:function(){var t=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){t.$refs.password.focus()}))},handleLogin:function(){var t=this,e=this;this.$refs.loginForm.validate((function(o){if(!o)return!1;t.loading=!0,r["a"].login(t.loginForm).then((function(t){t&&1===t.code?(e.setUserName(e.loginForm.userName),e.$router.push({path:"/"})):(e.loading=!1,e.$message.error(t.message))})).catch((function(t){e.loading=!1}))}))}},Object(a["d"])("user",["setUserName"]))},c=l,u=(o("2017"),o("ea02"),o("2877")),p=Object(u["a"])(c,s,n,!1,null,"27da0a50",null);e["default"]=p.exports},cafe:function(t,e,o){},ea02:function(t,e,o){"use strict";var s=o("6edf"),n=o.n(s);n.a}}]);
|
@ -1 +0,0 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e8e7022"],{4565:function(e,t,n){"use strict";var s=n("6bec"),o=n.n(s);o.a},"5fbe":function(e,t,n){e.exports=n.p+"static/img/logo2.745fd978.png"},"6bec":function(e,t,n){},d5c2:function(e,t,n){"use strict";n.r(t);var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"lowin lowin-blue"},[e._m(0),n("div",{staticClass:"lowin-wrapper"},[n("div",{staticClass:"lowin-box lowin-register"},[n("div",{staticClass:"lowin-box-inner"},[n("el-form",{ref:"loginForm",attrs:{model:e.loginForm}},[n("p",[e._v("学之思考试系统")]),n("div",{staticClass:"lowin-group"},[n("label",[e._v("用户名 ")]),n("el-input",{ref:"userName",staticClass:"lowin-input",attrs:{placeholder:"用户名",name:"userName",type:"text",tabindex:"1","auto-complete":"on"},model:{value:e.loginForm.userName,callback:function(t){e.$set(e.loginForm,"userName",t)},expression:"loginForm.userName"}})],1),n("div",{staticClass:"lowin-group password-group"},[n("label",[e._v("密码")]),n("el-input",{ref:"password",staticClass:"lowin-input",attrs:{placeholder:"密码",name:"password",tabindex:"2","auto-complete":"on"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}})],1),n("div",{staticClass:"lowin-group"},[n("label",[e._v("年级 ")]),n("el-select",{staticClass:"lowin-input",attrs:{placeholder:"年级"},model:{value:e.loginForm.userLevel,callback:function(t){e.$set(e.loginForm,"userLevel",t)},expression:"loginForm.userLevel"}},e._l(e.levelEnum,(function(e){return n("el-option",{key:e.key,attrs:{value:e.key,label:e.value}})})),1)],1),n("el-button",{staticClass:"lowin-btn login-btn",attrs:{type:"text"},nativeOn:{click:function(t){return t.preventDefault(),e.handleRegister(t)}}},[e._v("注册")]),n("div",{staticClass:"text-foot"},[e._v(" 已有账号? "),n("router-link",{staticClass:"login-link",attrs:{to:"/login"}},[e._v(" 登录 ")])],1)],1)],1)])]),e._m(1)])},o=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"lowin-brand"},[s("img",{staticStyle:{"margin-top":"12px"},attrs:{src:n("5fbe"),alt:"logo"}})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"account-foot-copyright"},[n("span",[e._v("Copyright © 2020 武汉思维跳跃科技有限公司 版权所有")]),n("span",[e._v("|")]),n("span",[e._v("鄂ICP备20013047号")])])}],i=n("5530"),l=n("2f62"),r=n("b775"),a={register:function(e){return Object(r["b"])("/api/student/user/register",e)}},c={name:"Login",data:function(){return{loginForm:{userName:"",password:"",userLevel:1}}},methods:Object(i["a"])({handleRegister:function(){var e=this;a.register(this.loginForm).then((function(t){t&&1===t.code?e.$router.push({path:"/login"}):e.$message.error(t.message)}))}},Object(l["d"])("user",["setUserName"])),computed:Object(i["a"])({},Object(l["e"])("enumItem",{levelEnum:function(e){return e.user.levelEnum}}))},u=c,p=(n("4565"),n("ddc3"),n("2877")),d=Object(p["a"])(u,s,o,!1,null,"70bce8e3",null);t["default"]=d.exports},ddc3:function(e,t,n){"use strict";var s=n("f4fd"),o=n.n(s);o.a},f4fd:function(e,t,n){}}]);
|
@ -1 +0,0 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ec3b549"],{1784:function(t,e,s){"use strict";var o=s("c5d7"),n=s.n(o);n.a},2017:function(t,e,s){"use strict";var o=s("cafe"),n=s.n(o);n.a},"5fbe":function(t,e,s){t.exports=s.p+"static/img/logo2.745fd978.png"},"9ed6":function(t,e,s){"use strict";s.r(e);var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"lowin lowin-blue"},[t._m(0),s("div",{staticClass:"lowin-wrapper"},[s("div",{staticClass:"lowin-box lowin-login"},[s("div",{staticClass:"lowin-box-inner"},[s("el-form",{ref:"loginForm",attrs:{model:t.loginForm,rules:t.loginRules}},[s("p",[t._v("学之思考试系统")]),s("div",{staticClass:"lowin-group"},[s("label",[t._v("用户名 ")]),s("el-input",{ref:"userName",staticClass:"lowin-input",attrs:{placeholder:"用户名",name:"userName",type:"text",tabindex:"1","auto-complete":"on"},model:{value:t.loginForm.userName,callback:function(e){t.$set(t.loginForm,"userName",e)},expression:"loginForm.userName"}})],1),s("div",{staticClass:"lowin-group password-group"},[s("label",[t._v("密码 "),s("a",{staticClass:"forgot-link",attrs:{href:"#"}},[t._v("忘记密码?")])]),s("el-input",{key:t.passwordType,ref:"password",staticClass:"lowin-input",attrs:{type:t.passwordType,placeholder:"密码",name:"password",tabindex:"2","auto-complete":"on"},on:{blur:function(e){t.capsTooltip=!1}},nativeOn:{keyup:[function(e){return t.checkCapslock(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleLogin(e)}]},model:{value:t.loginForm.password,callback:function(e){t.$set(t.loginForm,"password",e)},expression:"loginForm.password"}})],1),s("el-button",{staticClass:"lowin-btn login-btn",attrs:{loading:t.loading,type:"text"},nativeOn:{click:function(e){return e.preventDefault(),t.handleLogin(e)}}},[t._v("登录")]),s("div",{staticClass:"text-foot"},[t._v(" 还没有账号? "),s("router-link",{staticClass:"register-link",attrs:{to:"/register"}},[t._v(" 注册 ")])],1)],1)],1)])]),t._m(1)])},n=[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"lowin-brand"},[o("img",{staticStyle:{"margin-top":"12px"},attrs:{src:s("5fbe"),alt:"logo"}})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"account-foot-copyright"},[s("span",[t._v("Copyright © 2020 武汉思维跳跃科技有限公司 版权所有")]),s("span",[t._v("|")]),s("span",[t._v("鄂ICP备20013047号")])])}],i=s("5530"),a=s("2f62"),r=s("7ded"),l={name:"Login",data:function(){var t=function(t,e,s){e.length<5?s(new Error("用户名不能少于5个字符")):s()},e=function(t,e,s){e.length<5?s(new Error("密码不能少于5个字符")):s()};return{loginForm:{userName:"",password:"",remember:!1},loginRules:{userName:[{required:!0,trigger:"blur",validator:t}],password:[{required:!0,trigger:"blur",validator:e}]},passwordType:"password",capsTooltip:!1,loading:!1,showDialog:!1}},created:function(){},mounted:function(){""===this.loginForm.userName?this.$refs.userName.focus():""===this.loginForm.password&&this.$refs.password.focus()},destroyed:function(){},methods:Object(i["a"])({checkCapslock:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.shiftKey,s=t.key;s&&1===s.length&&(this.capsTooltip=!!(e&&s>="a"&&s<="z"||!e&&s>="A"&&s<="Z")),"CapsLock"===s&&!0===this.capsTooltip&&(this.capsTooltip=!1)},showPwd:function(){var t=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){t.$refs.password.focus()}))},handleLogin:function(){var t=this,e=this;this.$refs.loginForm.validate((function(s){if(!s)return!1;t.loading=!0,r["a"].login(t.loginForm).then((function(t){t&&1===t.code?(e.setUserName(e.loginForm.userName),e.$router.push({path:"/"})):(e.loading=!1,e.$message.error(t.message))})).catch((function(t){e.loading=!1}))}))}},Object(a["d"])("user",["setUserName"]))},c=l,u=(s("2017"),s("1784"),s("2877")),p=Object(u["a"])(c,o,n,!1,null,"0203566c",null);e["default"]=p.exports},c5d7:function(t,e,s){},cafe:function(t,e,s){}}]);
|
@ -0,0 +1 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-77ccc064"],{4565:function(e,t,n){"use strict";var s=n("6bec"),o=n.n(s);o.a},"5fbe":function(e,t,n){e.exports=n.p+"static/img/logo2.745fd978.png"},"6bec":function(e,t,n){},8812:function(e,t,n){},"970b":function(e,t,n){"use strict";var s=n("8812"),o=n.n(s);o.a},d5c2:function(e,t,n){"use strict";n.r(t);var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"lowin lowin-blue"},[e._m(0),n("div",{staticClass:"lowin-wrapper"},[n("div",{staticClass:"lowin-box lowin-register"},[n("div",{staticClass:"lowin-box-inner"},[n("el-form",{ref:"loginForm",attrs:{model:e.loginForm}},[n("p",[e._v("学之思考试系统")]),n("div",{staticClass:"lowin-group"},[n("label",[e._v("用户名 ")]),n("el-input",{ref:"userName",staticClass:"lowin-input",attrs:{placeholder:"用户名",name:"userName",type:"text",tabindex:"1","auto-complete":"on"},model:{value:e.loginForm.userName,callback:function(t){e.$set(e.loginForm,"userName",t)},expression:"loginForm.userName"}})],1),n("div",{staticClass:"lowin-group password-group"},[n("label",[e._v("密码")]),n("el-input",{ref:"password",staticClass:"lowin-input",attrs:{placeholder:"密码",name:"password",tabindex:"2","auto-complete":"on"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}})],1),n("div",{staticClass:"lowin-group"},[n("label",[e._v("年级 ")]),n("el-select",{staticClass:"lowin-input",attrs:{placeholder:"年级"},model:{value:e.loginForm.userLevel,callback:function(t){e.$set(e.loginForm,"userLevel",t)},expression:"loginForm.userLevel"}},e._l(e.levelEnum,(function(e){return n("el-option",{key:e.key,attrs:{value:e.key,label:e.value}})})),1)],1),n("el-button",{staticClass:"lowin-btn login-btn",attrs:{type:"text"},nativeOn:{click:function(t){return t.preventDefault(),e.handleRegister(t)}}},[e._v("注册")]),n("div",{staticClass:"text-foot"},[e._v(" 已有账号? "),n("router-link",{staticClass:"login-link",attrs:{to:"/login"}},[e._v(" 登录 ")])],1)],1)],1)])]),e._m(1)])},o=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"lowin-brand"},[s("img",{staticStyle:{"margin-top":"12px"},attrs:{src:n("5fbe"),alt:"logo"}})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"account-foot-copyright"},[n("span",[e._v("Copyright © 2020 武汉思维跳跃科技有限公司 版权所有")])])}],i=n("5530"),l=n("2f62"),r=n("b775"),a={register:function(e){return Object(r["b"])("/api/student/user/register",e)}},c={name:"Login",data:function(){return{loginForm:{userName:"",password:"",userLevel:1}}},methods:Object(i["a"])({handleRegister:function(){var e=this;a.register(this.loginForm).then((function(t){t&&1===t.code?e.$router.push({path:"/login"}):e.$message.error(t.message)}))}},Object(l["d"])("user",["setUserName"])),computed:Object(i["a"])({},Object(l["e"])("enumItem",{levelEnum:function(e){return e.user.levelEnum}}))},u=c,p=(n("4565"),n("970b"),n("2877")),m=Object(p["a"])(u,s,o,!1,null,"1af30732",null);t["default"]=m.exports}}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user