From f419c34c3425b779ec96dd5755f066914caf7e6a Mon Sep 17 00:00:00 2001 From: wzl <1720360649@qq.com> Date: Fri, 29 Dec 2023 17:56:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E4=BB=BB=E5=8A=A1=E8=BF=9B?= =?UTF-8?q?=E5=BA=A6=E4=BB=BB=E5=8A=A1=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/development.js | 17 +++++- src/views/development/index.vue | 2 +- src/views/development/taskDetail.vue | 18 +++--- src/views/development/taskWearing.vue | 80 ++++++++++++--------------- 4 files changed, 64 insertions(+), 53 deletions(-) diff --git a/src/api/development.js b/src/api/development.js index e51492a..5d44ab6 100644 --- a/src/api/development.js +++ b/src/api/development.js @@ -18,7 +18,8 @@ export const apiDevelopment = { LevelDetail, CurrentTask, UploadFile, - SubmitTask + SubmitTask, + TaskDetail }; export default apiDevelopment; @@ -71,6 +72,20 @@ function CurrentTask() { }); } +/** + * 任务详情 + */ +function TaskDetail(params) { + return http({ + url: '/api/Task/TaskDetail', + method: 'get', + params: { + personId: personId, + ...params + } + }); +} + /** * 提交任务 */ diff --git a/src/views/development/index.vue b/src/views/development/index.vue index 7d14bb1..71483a1 100644 --- a/src/views/development/index.vue +++ b/src/views/development/index.vue @@ -21,7 +21,7 @@ {{ task.planName }} {{ task.levelLv }} -
{{ task.serialNumber }}
+
{{ task.target }}
diff --git a/src/views/development/taskDetail.vue b/src/views/development/taskDetail.vue index 49af06e..7fe95b1 100644 --- a/src/views/development/taskDetail.vue +++ b/src/views/development/taskDetail.vue @@ -8,9 +8,11 @@
-
-
离完成任务解锁奖励
-
又近了一步!
+
+
+
离完成任务解锁奖励
+
又近了一步!
+
你今天整体状态优秀,身体压力状态较小,能很好应对今 日工作生活中的挑战,请继续保持优秀状态。相信自己, @@ -19,14 +21,16 @@
-
{{ detail.taskData.finishCount }}
+
{{ detail.taskData.finishCount }}
-
未开始
+
已完成
+
任务即将达成
+
未开始
未解锁
-
{{detail.completionDesc}}
+
未知
目标
{{ detail.target }}
@@ -68,7 +72,7 @@ export default { setTimeout(() => { this.$router.back(); }, 2000); - return + return; } this.initData(); }, diff --git a/src/views/development/taskWearing.vue b/src/views/development/taskWearing.vue index 3374db5..fec5a35 100644 --- a/src/views/development/taskWearing.vue +++ b/src/views/development/taskWearing.vue @@ -1,6 +1,6 @@