diff --git a/FRONT_ATTENDANCE/dist.zip b/FRONT_ATTENDANCE/dist.zip new file mode 100644 index 0000000..3b07d03 Binary files /dev/null and b/FRONT_ATTENDANCE/dist.zip differ diff --git a/FRONT_ATTENDANCE/index.html b/FRONT_ATTENDANCE/index.html index 9cc323d..bd5d15d 100644 --- a/FRONT_ATTENDANCE/index.html +++ b/FRONT_ATTENDANCE/index.html @@ -2,7 +2,7 @@ - + 点点小助手 diff --git a/FRONT_ATTENDANCE/public/点名.png b/FRONT_ATTENDANCE/public/点名.png new file mode 100644 index 0000000..e6743a5 Binary files /dev/null and b/FRONT_ATTENDANCE/public/点名.png differ diff --git a/FRONT_ATTENDANCE/src/assets/image/dianming.png b/FRONT_ATTENDANCE/src/assets/image/dianming.png new file mode 100644 index 0000000..9a9dbaf Binary files /dev/null and b/FRONT_ATTENDANCE/src/assets/image/dianming.png differ diff --git a/FRONT_ATTENDANCE/src/assets/image/left-icon.svg b/FRONT_ATTENDANCE/src/assets/image/left-icon.svg new file mode 100644 index 0000000..ef76d12 --- /dev/null +++ b/FRONT_ATTENDANCE/src/assets/image/left-icon.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/FRONT_ATTENDANCE/src/utils/axiosConfig.js b/FRONT_ATTENDANCE/src/utils/axiosConfig.js index 3131352..4c32b6f 100644 --- a/FRONT_ATTENDANCE/src/utils/axiosConfig.js +++ b/FRONT_ATTENDANCE/src/utils/axiosConfig.js @@ -4,7 +4,7 @@ import {getToken} from '@/token/auth' // 注意这里使用了解构赋值来导 // 创建axios实例 const service = axios.create({ - baseURL: ' http://p4ue3i.natappfree.cc/api', // 配置基础URL + baseURL: 'http://hup3hr.natappfree.cc/api', // 配置基础URL timeout: 5000, // 请求超时时间 }); @@ -13,7 +13,7 @@ service.interceptors.request.use( config => { // 在发送请求之前做些什么 const token = getToken(); // 获取token的方式取决于你的应用 - console.log('请求拦截器的token是:' +token) + // console.log('请求拦截器的token是:' +token) console.log('Request Config:', config); if (token) { config.headers['Authorization'] = `Bearer ${token}`; // 设置token diff --git a/FRONT_ATTENDANCE/src/views/beginCall.vue b/FRONT_ATTENDANCE/src/views/beginCall.vue index 9d2e911..d4b2830 100644 --- a/FRONT_ATTENDANCE/src/views/beginCall.vue +++ b/FRONT_ATTENDANCE/src/views/beginCall.vue @@ -56,7 +56,8 @@ import { ref } from 'vue'; console.log('实际接收到的数据:', response.data); } if (this.names.length === 0 || this.names.every(name => name.trim() === '')) { - alert('后端传回的字符串数组全为空'); + alert('请先导入学生名单'); + this.back() // 根据需要,可以设置默认值或者直接返回 // this.names = ['默认值1', '默认值2']; // 设置默认值,如果需要的话 return; // 如果数组为空或全为空字符串,则提前返回,不再执行后续代码 diff --git a/FRONT_ATTENDANCE/src/views/home.vue b/FRONT_ATTENDANCE/src/views/home.vue index c814126..24facce 100644 --- a/FRONT_ATTENDANCE/src/views/home.vue +++ b/FRONT_ATTENDANCE/src/views/home.vue @@ -3,6 +3,8 @@
+
点点小助手
+
@@ -89,6 +91,21 @@ export default { height: 800px; /* background-color: red; */ } +.dian-icon { + position: absolute; + width: 690px; + /* top: 35%; */ + left: 6%; + bottom: 5%; +} +.text-style { + position: absolute; + top: 4%; + left: 5%; + font-size: 73px; + font-weight: bold; + color: #8755F2; +} .selectItem { padding: 25px 130px; border-radius: 50px; diff --git a/FRONT_ATTENDANCE/src/views/importFile.vue b/FRONT_ATTENDANCE/src/views/importFile.vue index 0806b38..3d573fc 100644 --- a/FRONT_ATTENDANCE/src/views/importFile.vue +++ b/FRONT_ATTENDANCE/src/views/importFile.vue @@ -87,7 +87,7 @@ const customUpload = (options) => { formData.append('file', file); console.log('formData是:' + formData) - axios.post('http://p4ue3i.natappfree.cc/api/students/import', formData, { + axios.post('/students/import', formData, { headers: { 'Content-Type': 'multipart/form-data' } diff --git a/FRONT_ATTENDANCE/src/views/login2.vue b/FRONT_ATTENDANCE/src/views/login2.vue index ad4f844..a4c12bd 100644 --- a/FRONT_ATTENDANCE/src/views/login2.vue +++ b/FRONT_ATTENDANCE/src/views/login2.vue @@ -91,7 +91,7 @@