From 045fd081397aa5d78145b803199a9ac0a5b83451 Mon Sep 17 00:00:00 2001
From: "DESKTOP-V763RJ7\\Administrator" <835606593@qq.com>
Date: Fri, 6 Feb 2026 14:00:01 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AD=98=E6=A1=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.trae/rules/project_rules.md | 11 +-
config.js | 4 +-
pages.json | 12 +
pages/index/index.vue | 748 ++++++++--------------------
pages/mine/mine.vue | 68 ++-
pages/point-record/point-record.vue | 357 +++++++++++++
pages/records/records.vue | 658 ++++++++++++++++++++++++
utils/api.js | 20 +
8 files changed, 1313 insertions(+), 565 deletions(-)
create mode 100644 pages/point-record/point-record.vue
create mode 100644 pages/records/records.vue
diff --git a/.trae/rules/project_rules.md b/.trae/rules/project_rules.md
index b35b1f2..02ef5ef 100644
--- a/.trae/rules/project_rules.md
+++ b/.trae/rules/project_rules.md
@@ -1,4 +1,13 @@
1. 本项目是用Uni APP构建的
2. 务必保证代码可维护性,做好模块划分
3. 不要过度理解需求,尽量保持需求的简单性
-4. 保持最小修改,不要大刀阔斧的改动代码
\ No newline at end of file
+4. 保持最小修改,不要大刀阔斧的改动代码
+5. 接口的返回格式统一为
+ ```json
+ {
+ "code": 0,
+ "msg": "success",
+ "data": {}
+ }
+ ```
+ 我给你描述的返回值均是指data字段
\ No newline at end of file
diff --git a/config.js b/config.js
index 630c7fe..4eca334 100644
--- a/config.js
+++ b/config.js
@@ -8,7 +8,9 @@ const config = {
getCategoryQuestion: '/qgdzs/open/category/question',
answerCategoryQuestion: '/qgdzs/open/category/answer',
getQuicklyQuestion: '/qgdzs/open/quickly/question',
- answerQuicklyQuestion: '/qgdzs/open/quickly/answer'
+ answerQuicklyQuestion: '/qgdzs/open/quickly/answer',
+ getPointInfo: '/qgdzs/auth/point/info',
+ getPointRecord: '/qgdzs/auth/point/record'
},
timeout: 30000
}
diff --git a/pages.json b/pages.json
index f4f3ad7..bc2163c 100644
--- a/pages.json
+++ b/pages.json
@@ -43,11 +43,23 @@
"navigationBarTitleText": "类目题目"
}
},
+ {
+ "path": "pages/records/records",
+ "style": {
+ "navigationBarTitleText": "答题记录"
+ }
+ },
{
"path": "pages/quick/quick",
"style": {
"navigationBarTitleText": "快速答题"
}
+ },
+ {
+ "path": "pages/point-record/point-record",
+ "style": {
+ "navigationBarTitleText": "学识分记录"
+ }
}
],
"globalStyle": {
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 30e2da0..967589d 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,98 +1,58 @@
-
+
-
-
- 🔐
- 需要登录
- 登录后才会记录答题记录
+
+
+ 🎯
+ 开始答题
+ 选择一种答题模式
-
-
-
- {{ record.question }}
-
+
+
+
+ 🎲
+ 随机答题
+ 随机抽取题目
+
+
+ 📚
+ 类目答题
+ 按分类答题
+
+
+ ⚡
+ 快速答题
+ 限时挑战
-
-
- 📝
- 暂无答题记录
- 快去答题吧!
-
-
-
- 加载中...
-
-
-
- 没有更多了
-
-
-
-
- 加载中...
-
-
-
-
- {{ detailQuestion.category }}
-
-
- {{ getDifficultyText(detailQuestion.difficulty) }}
-
-
-
- {{ detailQuestion.question }}
-
-
-
- {{ option }}
-
-
-
- 解析:
- {{ detailQuestion.explanation }}
-
-
+
+
+ 💡
+ 每日答题,提升学识分
+
+
+ 🏆
+ 解锁更高等级,展示你的知识水平
-
+
diff --git a/pages/point-record/point-record.vue b/pages/point-record/point-record.vue
new file mode 100644
index 0000000..f11c98f
--- /dev/null
+++ b/pages/point-record/point-record.vue
@@ -0,0 +1,357 @@
+
+
+
+
+
+
+ 🔐
+ 需要登录
+ 登录后才会记录学识分获取记录
+
+
+
+
+
+
+
+
+ 📊
+ 暂无学识分记录
+ 参与答题获取学识分
+
+
+
+ 加载中...
+
+
+
+ 没有更多了
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/records/records.vue b/pages/records/records.vue
new file mode 100644
index 0000000..d405d3e
--- /dev/null
+++ b/pages/records/records.vue
@@ -0,0 +1,658 @@
+
+
+
+
+
+
+ 🔐
+ 需要登录
+ 登录后才会记录答题记录
+
+
+
+
+ {{ record.question }}
+
+
+
+
+ 📝
+ 暂无答题记录
+ 快去答题吧!
+
+
+
+ 加载中...
+
+
+
+ 没有更多了
+
+
+
+
+
+
+
+ 加载中...
+
+
+
+
+ {{ detailQuestion.category }}
+
+
+ {{ getDifficultyText(detailQuestion.difficulty) }}
+
+
+
+ {{ detailQuestion.question }}
+
+
+
+ {{ option }}
+
+
+
+ 解析:
+ {{ detailQuestion.explanation }}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/utils/api.js b/utils/api.js
index e20e95b..55ef488 100644
--- a/utils/api.js
+++ b/utils/api.js
@@ -254,6 +254,26 @@ const api = {
})
},
+ getPointInfo() {
+ return request({
+ url: config.api.getPointInfo,
+ method: 'POST',
+ noAuthModal: true
+ })
+ },
+
+ getPointRecord(page = 1, pageSize = 10) {
+ return request({
+ url: config.api.getPointRecord,
+ method: 'POST',
+ data: {
+ page,
+ page_size: pageSize
+ },
+ noAuthModal: true
+ })
+ },
+
getAllCategory() {
return request({
url: config.api.getAllCategory,