From 2be8372d3b0c3aeca88ecd28f9f7c0ddcfb81878 Mon Sep 17 00:00:00 2001 From: wzl <1720360649@qq.com> Date: Wed, 20 Dec 2023 14:03:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8F=90=E4=BA=A4=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=EF=BC=8C=E4=BD=A9=E6=88=B4=E4=BB=BB=E5=8A=A1=E9=9D=99?= =?UTF-8?q?=E6=80=81=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/router.config.js | 12 ++ src/views/development/index.vue | 20 ++- src/views/development/taskSubmission.vue | 158 +++++++++++++++++++++++ src/views/development/taskWearing.vue | 43 ++++++ 4 files changed, 230 insertions(+), 3 deletions(-) create mode 100644 src/views/development/taskSubmission.vue create mode 100644 src/views/development/taskWearing.vue diff --git a/src/router/router.config.js b/src/router/router.config.js index 69475c2..b932617 100644 --- a/src/router/router.config.js +++ b/src/router/router.config.js @@ -62,6 +62,18 @@ export const constantRouterMap = [ component: () => import('@/views/development/taskDetail'), meta: { title: '任务详情', keepAlive: false } }, + { + path: '/taskSubmission', + name: 'taskSubmission', + component: () => import('@/views/development/taskSubmission'), + meta: { title: '提交任务', keepAlive: false } + }, + { + path: '/taskWearing', + name: 'taskWearing', + component: () => import('@/views/development/taskWearing'), + meta: { title: '佩戴任务', keepAlive: false } + }, { path: '/familyNumber', name: 'familyNumber', diff --git a/src/views/development/index.vue b/src/views/development/index.vue index 673e103..c08e4c4 100644 --- a/src/views/development/index.vue +++ b/src/views/development/index.vue @@ -23,7 +23,7 @@
{{ task.detail }}
-
+
{{ item.title }}
查看进度
@@ -108,11 +108,11 @@ export default { taskList: [ { title: '格言朗读', - status: 0 + status: 1 }, { title: '佩戴习惯', - status: 1 + status: 0 } ] }, @@ -147,6 +147,20 @@ export default { created() {}, mounted() {}, methods: { + toTask(item) { + console.log(item); + if (item.status === 0) { + this.$router.push({ + name: 'taskWearing', + params: {} + }); + } else { + this.$router.push({ + name: 'taskSubmission', + params: {} + }); + } + }, toDetail(item, task) { console.log(item); console.log(task); diff --git a/src/views/development/taskSubmission.vue b/src/views/development/taskSubmission.vue new file mode 100644 index 0000000..c757080 --- /dev/null +++ b/src/views/development/taskSubmission.vue @@ -0,0 +1,158 @@ + + + + + diff --git a/src/views/development/taskWearing.vue b/src/views/development/taskWearing.vue new file mode 100644 index 0000000..ade2b5b --- /dev/null +++ b/src/views/development/taskWearing.vue @@ -0,0 +1,43 @@ + + + + +