From 8bfc89d08c5c1b426517abc27b7ceb6da998269d Mon Sep 17 00:00:00 2001 From: WN <56852884+1720360649@users.noreply.github.com> Date: Fri, 26 May 2023 16:39:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=83=E7=90=86=E7=9B=91=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 2 + src/router/index.js | 5 + src/views/psychological-modeling/index.vue | 286 +++++++++++++++ .../psychological-questionnaire/index.vue | 337 ++++++++++++++++++ 4 files changed, 630 insertions(+) create mode 100644 src/views/psychological-modeling/index.vue create mode 100644 src/views/psychological-questionnaire/index.vue diff --git a/src/main.js b/src/main.js index d507f3e..2a4d95f 100644 --- a/src/main.js +++ b/src/main.js @@ -55,6 +55,7 @@ import { Tabs, Toast, ActionSheet, + Progress, } from 'vant'; //按需加载vant组件 Vue @@ -97,6 +98,7 @@ Vue .use(Tabs) .use(Toast) .use(ActionSheet) +.use(Progress) Vue.config.productionTip = false; Vue.config.devtools = true; diff --git a/src/router/index.js b/src/router/index.js index 88fa066..c9b781c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -31,6 +31,11 @@ const routes = [ { path: '/cardActive', name: 'cardActive', component: resolve => require(['@/views/card-active'], resolve) }, { path: '/alarmDetails', name: 'alarmDetails', component: resolve => require(['@/views/alarm/alarm-details'], resolve) }, + + // 心理监测 + { path: '/PsychologicalModeling', name: 'PsychologicalModeling', component: resolve => require(['@/views/psychological-modeling'], resolve) }, + { path: '/PsychologicalQuestionnaire', name: 'PsychologicalQuestionnaire', component: resolve => require(['@/views/psychological-questionnaire'], resolve) }, + ]; const router = new VueRouter({ diff --git a/src/views/psychological-modeling/index.vue b/src/views/psychological-modeling/index.vue new file mode 100644 index 0000000..0f7c642 --- /dev/null +++ b/src/views/psychological-modeling/index.vue @@ -0,0 +1,286 @@ + + + + + + + + 温馨提醒: + + 首次佩戴,需完成以下2步,建立情绪模型。完成初始化建模后,将为您计算抑郁、压力、疲劳分值。 + + + + + + 第一步 + + 连续佩戴两小时 + + + 已完成 + + 待完成 + + + + + + 请连续佩戴不低于2小时,有助于为您输出更加精准的情绪分析指标。 + + + + 第二步 + + 情绪初始化评估 + + + 已完成 + + 待完成 + + + 完成一次“情绪初始化评估”,有助于建立您的个人情绪模型。 + + + + 情绪初始化评估 + + + + + + + + diff --git a/src/views/psychological-questionnaire/index.vue b/src/views/psychological-questionnaire/index.vue new file mode 100644 index 0000000..27b1504 --- /dev/null +++ b/src/views/psychological-questionnaire/index.vue @@ -0,0 +1,337 @@ + + + + + + + + + {{ select.length }}/{{ topic.length }} + + + {{ title }} + + + + + {{ item.Title }} + ({{ item.Type }}) + + + + + + + + + + + + + + + + + + + + + + + 提交问卷 + + + + + + +