Переглянути джерело

修改版本生物反馈,认知干预

plg 9 місяців тому
батько
коміт
54bc8741eb

+ 4 - 4
src/main/index.js

@@ -63,11 +63,11 @@ let jar_time = null;
 //设置访问路径
 //打包访问的路径
 
-let serveUrl = "./resources/exe"
-let serveUrlJar = '\\resources\\exe'
+// let serveUrl = "./resources/exe"
+// let serveUrlJar = '\\resources\\exe'
 //本地访问的路径
-// let serveUrl = "./exe"
-// let serveUrlJar = '\\exe'
+let serveUrl = "./exe"
+let serveUrlJar = '\\exe'
 /**
  * Set `__static` path to static files in production
  * https://simulatedgreg.gitbooks.io/electron-vue/content/en/using-static-assets.html

BIN
src/renderer/assets/newImage/relax1 - 副本.png


BIN
src/renderer/assets/newImage/relax1.png


BIN
src/renderer/assets/newImage/yingji.png


+ 17 - 8
src/renderer/components/Relax.vue

@@ -2,20 +2,27 @@
   <div class="relax-bg">
     <el-row class="mainTable-top-two">
       <div class="menu_list">
-        <div class="menu_item1" @click="pageUrl('/menu/scaleListResult')">
+        <!-- <div class="menu_item1" @click="pageUrl('/menu/scaleListResult')">
           <img src="../assets/newImage/relax1.png" alt="" />
-        </div>
+        </div> -->
         <div class="section_tow">
+          <div class="menu_item" @click="pageUrl('/menu/scaleListResult')" style="margin:0 0 6.66vh 2.8vw">
+            <img src="../assets/newImage/relax1.png" alt="" />
+          </div>
+      
           <div class="menu_item" @click="pageUrl('/menu/musicRelax')" style="margin:0 0 6.66vh 2.8vw">
             <img src="../assets/newImage/relax2.png" alt="" />
           </div>
-          <div class="menu_item" @click="pageUrl('/menu/video')" style="margin:0 0 6.66vh 1vw">
+          <div class="menu_item" @click="pageUrl('/menu/video')" style="margin:0 0 6.66vh 2.8vw">
             <img src="../assets/newImage/relax3.png" alt="" />
           </div>
-          <div class="menu_item" @click="pageUrl('/menu/psychologicalClinic')">
+          <div class="menu_item" @click="pageUrl('/menu/video1')" style="margin:0 0 6.66vh 2.8vw">
+            <img src="../assets/newImage/yingji.png" alt="" />
+          </div>
+          <div class="menu_item" @click="pageUrl('/menu/psychologicalClinic')" style="margin:0 0 6.66vh 2.8vw">
             <img src="../assets/newImage/relax4.png" alt="" />
           </div>
-          <div class="menu_item" @click="pageUrl('/menu/healthKnowledge')">
+          <div class="menu_item" @click="pageUrl('/menu/healthKnowledge')" style="margin:0 0 6.66vh 2.8vw">
             <img src="../assets/newImage/relax5.png" alt="" />
           </div>
         </div>
@@ -172,15 +179,17 @@ export default {
   display: flex;
   justify-content: center;
   align-items: center;
-  width: 77.9vw;
+  /* width: 77.9vw; */
   height: 84.8vh;
   background: url(../assets/newImage/relax_bg.png) no-repeat center;
   background-size: cover;
-  margin-left: 3.2vw;
+  /* margin-left: 3.2vw; */
+  margin: 0px 2vw;
 }
 
 .section_tow {
-  width: 46.87vw;
+  justify-content: center;
+  /* width: 46.87vw; */
   display: flex;
   flex-wrap: wrap;
 }

+ 19 - 16
src/renderer/components/treatDepression.vue

@@ -744,35 +744,38 @@ export default {
               // let str = sessionStorage.getItem("testResults");
               if (that.interveneId == 2) {
                 let str = sessionStorage.getItem("testResultsScore");
-                if (str <= 52) {
+                if (str <= 4) {
                   result.question =
-                    "您的情绪状态在正常范围内。请继续保持积极心态,关注生活中的美好,预防抑郁情绪。如有需要,随时与我沟通,共同守护您的心理健康。";
-                } else if (str >= 53 && str <= 62) {
+                    "您的情绪状态得分在正常范围内。请继续保持积极心态,关注生活中的美好,预防抑郁情绪。如有需要,随时与我沟通,一起守护您的心理健康。";
+                } else if (str >= 5 && str <= 9) {
                   result.question =
-                    "您可能正经历轻度抑郁。请放心,我会为您提供专业的心理支持,帮助您学习情绪调节技巧,及时缓解抑郁情绪。我们一起努力,让心情重回明朗。";
-                } else if (str >= 63 && str <= 72) {
+                    "您可能正经历轻度抑郁。请放心,我会为您提供专业的心理支持,帮助您调节情绪,及时缓解抑郁情绪。我们一起努力,让心情重回明朗。";
+                } else if (str >= 10 && str <= 14) {
                   result.question =
-                    "您的抑郁症状已较为明显。我强烈建议您接受专业的心理治疗,如CBT等,以改善当前状况。我会与您并肩作战,共同应对这个挑战,助您早日走出阴霾。";
-                } else if (str >= 73) {
+                    "您的抑郁情绪较为明显。我强烈建议您接受专业的心理治疗,以改善当前状况。我会与您并肩作战,共同应对这个挑战,助您早日走出阴霾。";
+                } else if (str >= 15 && str <= 19) {
                   result.question =
-                    "您可能正面临严重的抑郁症状。这是一个紧急状况,我强烈建议您立即寻求专业医疗帮助,包括药物治疗和精神评估。我会全力支持您,与您共度难关,直至您重拾生活的希望。";
+                    "您可能正面临严重的抑郁情绪。面对生活中的阴霾与挑战,我真诚地建议您考虑咨询心理医生或精神科医生,把自己从不适的情绪中分离出来。";
+                } else if (str >= 20) {
+                  result.question =
+                    "您的抑郁程度较为严重。";
                 }
               }
 
               if (that.interveneId == 1) {
                 let str = sessionStorage.getItem("testResultsScore");
-                if (str <= 49) {
+                if (str <= 4) {
                   result.question =
-                    "您的得分在正常范围内,显示您目前的焦虑水平是正常的。请继续保持心态平和,有效管理压力。如有任何焦虑情绪出现,请及时与我沟通,共同守护您的心理健康。";
-                } else if (str >= 50 && str <= 59) {
+                    "您的情绪状态得分在正常范围内。请继续保持心态平和,有效管理压力。如有需要,随时与我沟通,一起守护您的心理健康。";
+                } else if (str >= 5 && str <= 9) {
                   result.question =
-                    "您可能有轻度焦虑。请放心,我会提供专业的心理支持,帮助您学习应对焦虑的技巧。一起努力,让您的心情更加轻松自在。";
-                } else if (str >= 60 && str <= 69) {
+                    "您可能正经历轻度焦虑。请放心,我会为您提供专业的心理支持,帮助您学习应对焦虑的技巧。一起努力,让您的心情更加轻松自在。";
+                } else if (str >= 10 && str <= 14) {
                   result.question =
-                    "您的焦虑症状已较明显。我建议您接受系统的心理咨询,如放松训练、认知重构等,以减轻焦虑对您生活的影响。我会与您同行,共克时艰。";
-                } else if (str >= 70) {
+                    "您的焦虑情绪较为明显。我建议您接受系统的心理咨询,以减轻焦虑对您生活的影响。我也会与您同行,共克困难。";
+                } else if (str >= 15) {
                   result.question =
-                    "您可能正面临严重的焦虑症状。我强烈建议您立即寻求专业医疗和心理援助。我会全力支持您,与您一起应对这个挑战,直至您重获内心安宁。";
+                    "您目前有较为严重的焦虑情绪。我真诚地希望您接受专业的医疗和心理援助。我会全力支持您,与您一起应对这个挑战,直至您重获内心安宁。";
                 }
               }
 

+ 123 - 0
src/renderer/components/video1.vue

@@ -0,0 +1,123 @@
+<template>
+    <div class="main_right_height">
+        <TopDes :flag='true' topDesFont='应激放松训练'></TopDes>
+        <el-row class="mainTable-top-two">
+            <div v-for="item in list" :key="item.index" class="item_warp" :style="{visibility:item.id==1? 'visible':'hidden'}">
+                <div class="mainTable-tab">
+                    <img class="item_cover" :src="item.imageUrl" alt="">
+                    <img class="play_icon" @click="goVideo(item.url, item.id)"
+                        src="../assets/newImage/play_bt_xlfs.png" />
+                </div>
+                <span class="mainTable-tab-p">{{ item.name }}</span>
+            </div>
+        </el-row>
+    </div>
+</template>
+<script>
+export default {
+    data() {
+        return {
+            list: [
+                {
+                    name: "应激放松训练",
+                    url: "/video/5月30日.mov",
+                    id: 1,
+                    imageUrl: require("../assets/newImage/sp_pic1.png"),
+                },
+                {
+                    name: "腹式呼吸介绍",
+                    url: "/video/腹式呼吸介绍.mp4",
+                    id: 2,
+                    imageUrl: require("../assets/newImage/sp_pic2.png"),
+                },
+                {
+                    name: "呼吸放松练习15分钟",
+                    url: "/video/呼吸放松练习15分钟.mp4",
+                    id: 3,
+                    imageUrl: require("../assets/newImage/sp_pic3.png"),
+                },
+                {
+                    name: "深度放松练习--腹式呼吸",
+                    url: "/video/深度放松练习--腹式呼吸.mp4",
+                    id: 4,
+                    imageUrl: require("../assets/newImage/sp_pic4.png"),
+                },
+            ],
+        };
+    },
+    methods: {
+        goBack() {
+            this.$router.go(-1);
+        },
+        goVideo(url, id) {
+            this.$router.push({
+                path: "/menu/VideoDetail",
+                query: { url: url, id: id },
+            });
+        },
+    },
+};
+</script>
+<style>
+.activeColor {
+    background: url(../assets/newImage/login_bg.png) no-repeat;
+}
+</style>
+<style scoped>
+.mainTable-top {
+    margin-top: 5%;
+}
+
+.mainTable-top-two {
+    display: flex;
+    margin-bottom: 30px;
+}
+
+.item_warp {
+    flex: 1;
+    margin: 0 1.6vw;
+}
+
+.mainTable-tab {
+    position: relative;
+    text-align: center;
+    background-size: cover;
+}
+
+.mainTable-tab-p {
+    display: block;
+    padding-left: 8px;
+    margin-top: 10px;
+    margin-bottom: 25px;
+    font-size: 1.25vw;
+    font-weight: 400;
+    text-align: left;
+}
+
+.musicTitle {
+    display: block;
+    font-size: 18px;
+    color: #57acbb;
+    margin-bottom: 5px;
+}
+
+.main_right_height {
+    height: 100vh !important;
+    background: #ffffff;
+    display: block !important;
+    overflow-y: auto !important;
+}
+
+.item_cover {
+    width: 100%;
+    height: auto;
+}
+
+.play_icon {
+    width: 4.1vw;
+    position: absolute;
+    left: 50%;
+    top: 50%;
+    transform: translate(-50%, -50%);
+}
+</style>

+ 6 - 0
src/renderer/router/index.js

@@ -14,6 +14,7 @@ import AnimationDes from '@/components/AnimationDes'
 import AnimationDouble from '@/components/AnimationDouble'
 import MusicRelax from '@/components/MusicRelax'
 import Video from '@/components/Video'
+import Video1 from '@/components/Video1'
 import VideoDetail from '@/components/VideoDetail'
 import Menu from '@/components/Menu'
 import ScaleDetail from '@/components/ScaleDetail'
@@ -90,6 +91,11 @@ if (result != '0') {
           name: 'video',
           component: Video
         },
+        {
+          path: 'video1',
+          name: 'video1',
+          component: Video1
+        },
         {
           path: 'videoDetail',
           name: 'videoDetail',

BIN
static/run/Build/Bulid.data


BIN
static/run/Build/Bulid.wasm


BIN
static/saiche/Build/Bulid.data


BIN
static/saiche/Build/Bulid.wasm


BIN
static/video/5月30日.mov