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..acb4d61 --- /dev/null +++ b/src/views/psychological-questionnaire/index.vue @@ -0,0 +1,342 @@ + + + + + + + + + {{ select.length }}/{{ topic.length }} + + + {{ title }} + + + + + {{ item.Title }} + ({{ item.Type }}) + + + + + + + + + + + + + + + + + + + + + + + 提交问卷 + + + + + + +