提交 72d747e5 authored 作者: Yroc's avatar Yroc

'学生登录'

上级 c1e017b4
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: AnthonyD * @Author: AnthonyD
* @Date: 2023-02-22 11:31:31 * @Date: 2023-02-22 11:31:31
* @Last Modified by: AnthonyD * @Last Modified by: AnthonyD
* @Last Modified time: 2023-03-20 18:43:23 * @Last Modified time: 2023-03-21 09:25:08
*/ */
</script> </script>
<template> <template>
...@@ -89,8 +89,8 @@ ...@@ -89,8 +89,8 @@
style="background-color: #e6a23c; float: right" style="background-color: #e6a23c; float: right"
:disabled="time > 0" :disabled="time > 0"
> >
{{ timer ? '重新发送' + time + 's' : '获取验证码' }}
<i class="el-icon-loading" v-if="is_loading"></i> <i class="el-icon-loading" v-if="is_loading"></i>
{{ timer ? '重新发送' + time + 's' : '获取验证码' }}
</el-button> </el-button>
</el-col> </el-col>
</el-row> </el-row>
...@@ -289,6 +289,7 @@ export default { ...@@ -289,6 +289,7 @@ export default {
// .catch(() => { // .catch(() => {
// this.loading = false; // this.loading = false;
// }); // });
if (this.activeName == 'account') { if (this.activeName == 'account') {
this.$store this.$store
.dispatch('user/AccountLogin', this.$refs.user_login.loginForm) .dispatch('user/AccountLogin', this.$refs.user_login.loginForm)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: AnthonyD * @Author: AnthonyD
* @Date: 2023-03-01 16:25:21 * @Date: 2023-03-01 16:25:21
* @Last Modified by: AnthonyD * @Last Modified by: AnthonyD
* @Last Modified time: 2023-03-17 11:25:26 * @Last Modified time: 2023-03-21 09:57:21
*/ */
</script> </script>
...@@ -298,6 +298,8 @@ export default { ...@@ -298,6 +298,8 @@ export default {
// }); // });
// }, // },
handleAvatarSuccess(res, file) { handleAvatarSuccess(res, file) {
console.log(this.is_loading);
console.log(res);
if (res.code == 200 && res.message) { if (res.code == 200 && res.message) {
this.is_loading = false; this.is_loading = false;
this.test_results.test_results_image = res.status; this.test_results.test_results_image = res.status;
...@@ -307,9 +309,13 @@ export default { ...@@ -307,9 +309,13 @@ export default {
res.message[this.test_result_sub_data[i].id]; res.message[this.test_result_sub_data[i].id];
} }
} }
} else if (res.err_code == 201) {
this.is_loading = false;
this.$message.error(res.message);
} }
}, },
uploadSubmit(event, file, fileList) { uploadSubmit(event, file, fileList) {
console.log(file);
this.is_loading = true; this.is_loading = true;
}, },
}, },
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论