xvying 2 years ago
parent
commit
77c87c660d

+ 1 - 1
online/index.html

@@ -2,4 +2,4 @@
                 display: none;
             }</style><script>document.addEventListener('DOMContentLoaded', function() {
 				document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
-			})</script><link rel=stylesheet href=/h5-teacher/static/index.css></head><body><noscript><strong>本站点必须要开启JavaScript才能运行</strong></noscript><div id=app></div><script>/*BAIDU_STAT*/</script><script src=/h5-teacher/static/js/chunk-vendors.46cc4b09.js></script><script src=/h5-teacher/static/js/index.9e146d94.js></script></body></html>
+			})</script><link rel=stylesheet href=/h5-teacher/static/index.css></head><body><noscript><strong>本站点必须要开启JavaScript才能运行</strong></noscript><div id=app></div><script>/*BAIDU_STAT*/</script><script src=/h5-teacher/static/js/chunk-vendors.46cc4b09.js></script><script src=/h5-teacher/static/js/index.a005c5f6.js></script></body></html>

File diff suppressed because it is too large
+ 0 - 0
online/static/js/index.a005c5f6.js


File diff suppressed because it is too large
+ 0 - 0
online/static/js/pages-login-index.01abd35f.js


File diff suppressed because it is too large
+ 0 - 0
online/static/js/pages-login-index.bd699912.js


+ 4 - 2
pages/login/index.vue

@@ -88,13 +88,15 @@
 				
 				
 				this.$u.post('/base/auth/login', {
-					username: btoa(JSON.stringify(data))
+					username: this.username,
+					password: btoa(JSON.stringify(this.password)),
+					role_id: 2
 				}).then(res => {
 					if (res.code == 200) {
 						console.log(res, '登陆成功')
 						this.$u.vuex('vuex_login', {
 							account: this.username,
-							password: this.username,
+							password: this.password,
 						})
 						this.$u.vuex('vuex_token', 'bearer ' + res.data.token);
 						this.$u.vuex('vuex_user', res.data.user);

+ 1 - 1
unpackage/dist/build/h5/index.html

@@ -2,4 +2,4 @@
                 display: none;
             }</style><script>document.addEventListener('DOMContentLoaded', function() {
 				document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
-			})</script><link rel=stylesheet href=/h5-teacher/static/index.css></head><body><noscript><strong>本站点必须要开启JavaScript才能运行</strong></noscript><div id=app></div><script>/*BAIDU_STAT*/</script><script src=/h5-teacher/static/js/chunk-vendors.46cc4b09.js></script><script src=/h5-teacher/static/js/index.9e146d94.js></script></body></html>
+			})</script><link rel=stylesheet href=/h5-teacher/static/index.css></head><body><noscript><strong>本站点必须要开启JavaScript才能运行</strong></noscript><div id=app></div><script>/*BAIDU_STAT*/</script><script src=/h5-teacher/static/js/chunk-vendors.46cc4b09.js></script><script src=/h5-teacher/static/js/index.a005c5f6.js></script></body></html>

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/static/js/index.a005c5f6.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-login-index.01abd35f.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/h5/static/js/pages-login-index.bd699912.js


Some files were not shown because too many files changed in this diff