From 71a19a2e9925c79ab312f6fb02c01ad0ccfd281f Mon Sep 17 00:00:00 2001 From: Juria <2304110814@qq.com> Date: Tue, 8 Oct 2024 11:57:55 +0800 Subject: [PATCH] final --- .eslintrc.js => 前端/.eslintrc.js | 0 .gitignore => 前端/.gitignore | 0 app.js => 前端/app.js | 0 app.json => 前端/app.json | 0 app.wxss => 前端/app.wxss | 0 {pages => 前端/pages}/add_stu/add_stu.js | 0 {pages => 前端/pages}/add_stu/add_stu.json | 0 {pages => 前端/pages}/add_stu/add_stu.wxml | 0 {pages => 前端/pages}/add_stu/add_stu.wxss | 0 {pages => 前端/pages}/call_roll/call_roll.js | 8 ++++++-- {pages => 前端/pages}/call_roll/call_roll.json | 0 {pages => 前端/pages}/call_roll/call_roll.wxml | 0 {pages => 前端/pages}/call_roll/call_roll.wxss | 4 +++- .../pages}/classSelector/classSelector.js | 0 .../pages}/classSelector/classSelector.json | 0 .../pages}/classSelector/classSelector.wxml | 0 .../pages}/classSelector/classSelector.wxss | 0 .../pages}/class_manage/class_manage.js | 0 .../pages}/class_manage/class_manage.json | 0 .../pages}/class_manage/class_manage.wxml | 0 .../pages}/class_manage/class_manage.wxss | 0 .../pages}/class_message/class_message.js | 0 .../pages}/class_message/class_message.json | 0 .../pages}/class_message/class_message.wxml | 0 .../pages}/class_message/class_message.wxss | 4 ++-- {pages => 前端/pages}/function/function.js | 0 {pages => 前端/pages}/function/function.json | 0 {pages => 前端/pages}/function/function.wxml | 0 {pages => 前端/pages}/function/function.wxss | 0 {pages => 前端/pages}/images/add_stu.png | Bin {pages => 前端/pages}/images/arrow_icon.png | Bin {pages => 前端/pages}/images/call_roll.png | Bin {pages => 前端/pages}/images/class_manage.png | Bin {pages => 前端/pages}/images/class_message.png | Bin 前端/pages/images/eggs.png | Bin 0 -> 3908 bytes {pages => 前端/pages}/images/function.png | Bin {pages => 前端/pages}/images/record.png | Bin {pages => 前端/pages}/images/welcome.png | Bin {pages => 前端/pages}/index/index.js | 0 {pages => 前端/pages}/index/index.json | 0 {pages => 前端/pages}/index/index.wxml | 0 {pages => 前端/pages}/index/index.wxss | 0 {pages => 前端/pages}/logs/logs.js | 0 {pages => 前端/pages}/logs/logs.json | 0 {pages => 前端/pages}/logs/logs.wxml | 0 {pages => 前端/pages}/logs/logs.wxss | 0 {pages => 前端/pages}/record/record.js | 0 {pages => 前端/pages}/record/record.json | 0 {pages => 前端/pages}/record/record.wxml | 0 {pages => 前端/pages}/record/record.wxss | 4 ++-- {pages => 前端/pages}/welcome/welcome.js | 0 {pages => 前端/pages}/welcome/welcome.json | 0 {pages => 前端/pages}/welcome/welcome.wxml | 0 {pages => 前端/pages}/welcome/welcome.wxss | 0 .../project.config.json | 0 .../project.private.config.json | 0 sitemap.json => 前端/sitemap.json | 0 {utils => 前端/utils}/util.js | 0 pom.xml => 后端/pom.xml | 0 .../src}/main/java/com/demo/DemoApplication.java | 0 .../com/demo/controller/ClazzController.java | 0 .../com/demo/controller/ExcelController.java | 0 .../com/demo/controller/StudentController.java | 0 .../src}/main/java/com/demo/entity/Clazz.java | 0 .../src}/main/java/com/demo/entity/Student.java | 0 .../main/java/com/demo/mapper/ClazzMapper.java | 0 .../main/java/com/demo/mapper/StudentMapper.java | 0 .../src}/main/resources/application.yml | 0 .../test/java/com/demo/DemoApplicationTests.java | 0 69 files changed, 13 insertions(+), 7 deletions(-) rename .eslintrc.js => 前端/.eslintrc.js (100%) rename .gitignore => 前端/.gitignore (100%) rename app.js => 前端/app.js (100%) rename app.json => 前端/app.json (100%) rename app.wxss => 前端/app.wxss (100%) rename {pages => 前端/pages}/add_stu/add_stu.js (100%) rename {pages => 前端/pages}/add_stu/add_stu.json (100%) rename {pages => 前端/pages}/add_stu/add_stu.wxml (100%) rename {pages => 前端/pages}/add_stu/add_stu.wxss (100%) rename {pages => 前端/pages}/call_roll/call_roll.js (94%) rename {pages => 前端/pages}/call_roll/call_roll.json (100%) rename {pages => 前端/pages}/call_roll/call_roll.wxml (100%) rename {pages => 前端/pages}/call_roll/call_roll.wxss (97%) rename {pages => 前端/pages}/classSelector/classSelector.js (100%) rename {pages => 前端/pages}/classSelector/classSelector.json (100%) rename {pages => 前端/pages}/classSelector/classSelector.wxml (100%) rename {pages => 前端/pages}/classSelector/classSelector.wxss (100%) rename {pages => 前端/pages}/class_manage/class_manage.js (100%) rename {pages => 前端/pages}/class_manage/class_manage.json (100%) rename {pages => 前端/pages}/class_manage/class_manage.wxml (100%) rename {pages => 前端/pages}/class_manage/class_manage.wxss (100%) rename {pages => 前端/pages}/class_message/class_message.js (100%) rename {pages => 前端/pages}/class_message/class_message.json (100%) rename {pages => 前端/pages}/class_message/class_message.wxml (100%) rename {pages => 前端/pages}/class_message/class_message.wxss (93%) rename {pages => 前端/pages}/function/function.js (100%) rename {pages => 前端/pages}/function/function.json (100%) rename {pages => 前端/pages}/function/function.wxml (100%) rename {pages => 前端/pages}/function/function.wxss (100%) rename {pages => 前端/pages}/images/add_stu.png (100%) rename {pages => 前端/pages}/images/arrow_icon.png (100%) rename {pages => 前端/pages}/images/call_roll.png (100%) rename {pages => 前端/pages}/images/class_manage.png (100%) rename {pages => 前端/pages}/images/class_message.png (100%) create mode 100644 前端/pages/images/eggs.png rename {pages => 前端/pages}/images/function.png (100%) rename {pages => 前端/pages}/images/record.png (100%) rename {pages => 前端/pages}/images/welcome.png (100%) rename {pages => 前端/pages}/index/index.js (100%) rename {pages => 前端/pages}/index/index.json (100%) rename {pages => 前端/pages}/index/index.wxml (100%) rename {pages => 前端/pages}/index/index.wxss (100%) rename {pages => 前端/pages}/logs/logs.js (100%) rename {pages => 前端/pages}/logs/logs.json (100%) rename {pages => 前端/pages}/logs/logs.wxml (100%) rename {pages => 前端/pages}/logs/logs.wxss (100%) rename {pages => 前端/pages}/record/record.js (100%) rename {pages => 前端/pages}/record/record.json (100%) rename {pages => 前端/pages}/record/record.wxml (100%) rename {pages => 前端/pages}/record/record.wxss (94%) rename {pages => 前端/pages}/welcome/welcome.js (100%) rename {pages => 前端/pages}/welcome/welcome.json (100%) rename {pages => 前端/pages}/welcome/welcome.wxml (100%) rename {pages => 前端/pages}/welcome/welcome.wxss (100%) rename project.config.json => 前端/project.config.json (100%) rename project.private.config.json => 前端/project.private.config.json (100%) rename sitemap.json => 前端/sitemap.json (100%) rename {utils => 前端/utils}/util.js (100%) rename pom.xml => 后端/pom.xml (100%) rename {src => 后端/src}/main/java/com/demo/DemoApplication.java (100%) rename {src => 后端/src}/main/java/com/demo/controller/ClazzController.java (100%) rename {src => 后端/src}/main/java/com/demo/controller/ExcelController.java (100%) rename {src => 后端/src}/main/java/com/demo/controller/StudentController.java (100%) rename {src => 后端/src}/main/java/com/demo/entity/Clazz.java (100%) rename {src => 后端/src}/main/java/com/demo/entity/Student.java (100%) rename {src => 后端/src}/main/java/com/demo/mapper/ClazzMapper.java (100%) rename {src => 后端/src}/main/java/com/demo/mapper/StudentMapper.java (100%) rename {src => 后端/src}/main/resources/application.yml (100%) rename {src => 后端/src}/test/java/com/demo/DemoApplicationTests.java (100%) diff --git a/.eslintrc.js b/前端/.eslintrc.js similarity index 100% rename from .eslintrc.js rename to 前端/.eslintrc.js diff --git a/.gitignore b/前端/.gitignore similarity index 100% rename from .gitignore rename to 前端/.gitignore diff --git a/app.js b/前端/app.js similarity index 100% rename from app.js rename to 前端/app.js diff --git a/app.json b/前端/app.json similarity index 100% rename from app.json rename to 前端/app.json diff --git a/app.wxss b/前端/app.wxss similarity index 100% rename from app.wxss rename to 前端/app.wxss diff --git a/pages/add_stu/add_stu.js b/前端/pages/add_stu/add_stu.js similarity index 100% rename from pages/add_stu/add_stu.js rename to 前端/pages/add_stu/add_stu.js diff --git a/pages/add_stu/add_stu.json b/前端/pages/add_stu/add_stu.json similarity index 100% rename from pages/add_stu/add_stu.json rename to 前端/pages/add_stu/add_stu.json diff --git a/pages/add_stu/add_stu.wxml b/前端/pages/add_stu/add_stu.wxml similarity index 100% rename from pages/add_stu/add_stu.wxml rename to 前端/pages/add_stu/add_stu.wxml diff --git a/pages/add_stu/add_stu.wxss b/前端/pages/add_stu/add_stu.wxss similarity index 100% rename from pages/add_stu/add_stu.wxss rename to 前端/pages/add_stu/add_stu.wxss diff --git a/pages/call_roll/call_roll.js b/前端/pages/call_roll/call_roll.js similarity index 94% rename from pages/call_roll/call_roll.js rename to 前端/pages/call_roll/call_roll.js index 8589fd4..6eb7325 100644 --- a/pages/call_roll/call_roll.js +++ b/前端/pages/call_roll/call_roll.js @@ -25,7 +25,7 @@ Page({ ], rolling: false, // 控制是否滚动 currentStudentIndex: 0, // 当前选中学生索引 - currentStudentName: "", // 当前显示的学生名称 + currentStudentName: "开始点名", // 当前显示的学生名称 rollInterval: null, // 随机点名的定时器 point: 1, // 设置的积分 }, @@ -132,9 +132,13 @@ Page({ confirmPoint: function() { const Point = parseInt(this.data.point); const id = this.data.students[this.data.currentStudentIndex].id; - const finalPoint = this.data.students[this.data.currentStudentIndex].point + Point; + let finalPoint = this.data.students[this.data.currentStudentIndex].point + Point; if(finalPoint % 13 === 0){ finalPoint += 1; //积分等于13的整数倍加一分 + wx.showToast({ + title: '恭喜您触发彩蛋,积分额外+1', + icon: '/pages/images/eggs.png' + }); } // this.data.students[this.data.currentStudentIndex].point += point; 不会重新渲染视图 this.setData({ diff --git a/pages/call_roll/call_roll.json b/前端/pages/call_roll/call_roll.json similarity index 100% rename from pages/call_roll/call_roll.json rename to 前端/pages/call_roll/call_roll.json diff --git a/pages/call_roll/call_roll.wxml b/前端/pages/call_roll/call_roll.wxml similarity index 100% rename from pages/call_roll/call_roll.wxml rename to 前端/pages/call_roll/call_roll.wxml diff --git a/pages/call_roll/call_roll.wxss b/前端/pages/call_roll/call_roll.wxss similarity index 97% rename from pages/call_roll/call_roll.wxss rename to 前端/pages/call_roll/call_roll.wxss index 50e0d7d..e2a7427 100644 --- a/pages/call_roll/call_roll.wxss +++ b/前端/pages/call_roll/call_roll.wxss @@ -33,6 +33,8 @@ } .student-list button{ + position: absolute; + top: 100rpx; background-color: rgba(234, 0, 255, 0.171); } @@ -49,7 +51,7 @@ .student-name { position: absolute; top: 100rpx; - left: 280rpx; + left: 220rpx; font-size: 80rpx; text-align: center; margin: 20rpx 0; diff --git a/pages/classSelector/classSelector.js b/前端/pages/classSelector/classSelector.js similarity index 100% rename from pages/classSelector/classSelector.js rename to 前端/pages/classSelector/classSelector.js diff --git a/pages/classSelector/classSelector.json b/前端/pages/classSelector/classSelector.json similarity index 100% rename from pages/classSelector/classSelector.json rename to 前端/pages/classSelector/classSelector.json diff --git a/pages/classSelector/classSelector.wxml b/前端/pages/classSelector/classSelector.wxml similarity index 100% rename from pages/classSelector/classSelector.wxml rename to 前端/pages/classSelector/classSelector.wxml diff --git a/pages/classSelector/classSelector.wxss b/前端/pages/classSelector/classSelector.wxss similarity index 100% rename from pages/classSelector/classSelector.wxss rename to 前端/pages/classSelector/classSelector.wxss diff --git a/pages/class_manage/class_manage.js b/前端/pages/class_manage/class_manage.js similarity index 100% rename from pages/class_manage/class_manage.js rename to 前端/pages/class_manage/class_manage.js diff --git a/pages/class_manage/class_manage.json b/前端/pages/class_manage/class_manage.json similarity index 100% rename from pages/class_manage/class_manage.json rename to 前端/pages/class_manage/class_manage.json diff --git a/pages/class_manage/class_manage.wxml b/前端/pages/class_manage/class_manage.wxml similarity index 100% rename from pages/class_manage/class_manage.wxml rename to 前端/pages/class_manage/class_manage.wxml diff --git a/pages/class_manage/class_manage.wxss b/前端/pages/class_manage/class_manage.wxss similarity index 100% rename from pages/class_manage/class_manage.wxss rename to 前端/pages/class_manage/class_manage.wxss diff --git a/pages/class_message/class_message.js b/前端/pages/class_message/class_message.js similarity index 100% rename from pages/class_message/class_message.js rename to 前端/pages/class_message/class_message.js diff --git a/pages/class_message/class_message.json b/前端/pages/class_message/class_message.json similarity index 100% rename from pages/class_message/class_message.json rename to 前端/pages/class_message/class_message.json diff --git a/pages/class_message/class_message.wxml b/前端/pages/class_message/class_message.wxml similarity index 100% rename from pages/class_message/class_message.wxml rename to 前端/pages/class_message/class_message.wxml diff --git a/pages/class_message/class_message.wxss b/前端/pages/class_message/class_message.wxss similarity index 93% rename from pages/class_message/class_message.wxss rename to 前端/pages/class_message/class_message.wxss index 30c2abe..f99a11c 100644 --- a/pages/class_message/class_message.wxss +++ b/前端/pages/class_message/class_message.wxss @@ -28,11 +28,11 @@ } .stu_list .id { position: relative; - left: 80rpx; + left: 50rpx; } .stu_list .name { position: relative; - left: 300rpx; + left: 150rpx; } diff --git a/pages/function/function.js b/前端/pages/function/function.js similarity index 100% rename from pages/function/function.js rename to 前端/pages/function/function.js diff --git a/pages/function/function.json b/前端/pages/function/function.json similarity index 100% rename from pages/function/function.json rename to 前端/pages/function/function.json diff --git a/pages/function/function.wxml b/前端/pages/function/function.wxml similarity index 100% rename from pages/function/function.wxml rename to 前端/pages/function/function.wxml diff --git a/pages/function/function.wxss b/前端/pages/function/function.wxss similarity index 100% rename from pages/function/function.wxss rename to 前端/pages/function/function.wxss diff --git a/pages/images/add_stu.png b/前端/pages/images/add_stu.png similarity index 100% rename from pages/images/add_stu.png rename to 前端/pages/images/add_stu.png diff --git a/pages/images/arrow_icon.png b/前端/pages/images/arrow_icon.png similarity index 100% rename from pages/images/arrow_icon.png rename to 前端/pages/images/arrow_icon.png diff --git a/pages/images/call_roll.png b/前端/pages/images/call_roll.png similarity index 100% rename from pages/images/call_roll.png rename to 前端/pages/images/call_roll.png diff --git a/pages/images/class_manage.png b/前端/pages/images/class_manage.png similarity index 100% rename from pages/images/class_manage.png rename to 前端/pages/images/class_manage.png diff --git a/pages/images/class_message.png b/前端/pages/images/class_message.png similarity index 100% rename from pages/images/class_message.png rename to 前端/pages/images/class_message.png diff --git a/前端/pages/images/eggs.png b/前端/pages/images/eggs.png new file mode 100644 index 0000000000000000000000000000000000000000..5bae9490f1c58f43dd442e3b1564982815faeb80 GIT binary patch literal 3908 zcmV-K54-S*P)Px@{z*hZRCr$PoxiRnIT6NtB?3Yu2ndiCasu99LA(O_3^4(ZFz_VHJ_$P+DH$28 zL;w;20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