@@ -5,8 +5,7 @@ | |||||
* @FilePath: \TelpoH5FrontendWeb\src\config\models.js | * @FilePath: \TelpoH5FrontendWeb\src\config\models.js | ||||
* @description: | * @description: | ||||
*/ | */ | ||||
import store from '@/store' | |||||
export const VERSION_MODEL = '1.0.115F'; //版本号 | |||||
export const VERSION_MODEL = '1.0.117F'; //版本号 | |||||
export const IMAGE_URL = { | export const IMAGE_URL = { | ||||
production: 'http://zfb.ssjlai.com/web/', | production: 'http://zfb.ssjlai.com/web/', | ||||
test: 'http://zfb.ssjlai.com/web/', | test: 'http://zfb.ssjlai.com/web/', | ||||
@@ -26,19 +25,17 @@ export const BaiduStatisticsModel = { | |||||
development: "https://hm.baidu.com/hm.js?edb76b471e997167b7782c1513382771", // 随手精灵百度流量统计 测试环境 | development: "https://hm.baidu.com/hm.js?edb76b471e997167b7782c1513382771", // 随手精灵百度流量统计 测试环境 | ||||
}; | }; | ||||
const appTypeList = ['1']; | |||||
// 焦虑文字 | |||||
export const anxietyText = appTypeList.indexOf(store.getters.appType) >-1 ? `焦虑`: `抑郁` | |||||
// 抑郁文字 | |||||
export const EmotionModel = { | export const EmotionModel = { | ||||
// 抑郁 | // 抑郁 | ||||
depression: { | depression: { | ||||
name: anxietyText, | |||||
name: '抑郁', | |||||
type: 2, | type: 2, | ||||
title1: `${anxietyText}倾向`, | |||||
article1: `<p>设备所检测的是个体的${anxietyText}倾向。通过将个人的生理特征(脉搏波、心率变异性等)和行为习惯(运动、作息等)与临床诊断为${anxietyText}症的患者的相应特征进行对比,判断出个体的${anxietyText}倾向(即${anxietyText}症的可能性)程度。${anxietyText}倾向持续的时间越长、程度越严重,代表患有${anxietyText}症的风险就越大。</p>`, | |||||
title2: `${anxietyText}倾向算法原理`, | |||||
article2: `<p>1.研究发现,${anxietyText}症等情绪障碍可能会引起个体外周生理系统反应的钝化,因此患者可能在面临危险、压力等应激状态下表现出较低的生理反应唤醒水平。这一点能够通过皮肤电、心率变异性等生理特征的周期性变化来判断。</p> | |||||
<p>2.${anxietyText}症等情绪障碍的患者会出现明显的失眠、运动少、和生物钟紊乱,算法能够有效分析判断出这些异常的行为特征。</p>` | |||||
title1: `抑郁倾向`, | |||||
article1: `<p>设备所检测的是个体的抑郁倾向。通过将个人的生理特征(脉搏波、心率变异性等)和行为习惯(运动、作息等)与临床诊断为抑郁症的患者的相应特征进行对比,判断出个体的抑郁倾向(即抑郁症的可能性)程度。抑郁倾向持续的时间越长、程度越严重,代表患有抑郁症的风险就越大。</p>`, | |||||
title2: `抑郁倾向算法原理`, | |||||
article2: `<p>1.研究发现,抑郁症等情绪障碍可能会引起个体外周生理系统反应的钝化,因此患者可能在面临危险、压力等应激状态下表现出较低的生理反应唤醒水平。这一点能够通过皮肤电、心率变异性等生理特征的周期性变化来判断。</p> | |||||
<p>2.抑郁症等情绪障碍的患者会出现明显的失眠、运动少、和生物钟紊乱,算法能够有效分析判断出这些异常的行为特征。</p>` | |||||
}, | }, | ||||
// 压力 | // 压力 | ||||
@@ -685,16 +685,16 @@ export default { | |||||
/* return `正常连续佩戴手表,每半小时计算一个${this.emoName}分值,睡眠期间不进行计算。` */ | /* return `正常连续佩戴手表,每半小时计算一个${this.emoName}分值,睡眠期间不进行计算。` */ | ||||
}, | }, | ||||
title1() { | title1() { | ||||
return this.params.name ? EmotionModel[this.params.name].title1 : '' | |||||
return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].title1, '抑郁', '焦虑') : '' | |||||
}, | }, | ||||
article1() { | article1() { | ||||
return this.params.name ? EmotionModel[this.params.name].article1 : '' | |||||
return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].article1, '抑郁', '焦虑') : '' | |||||
}, | }, | ||||
title2() { | title2() { | ||||
return this.params.name ? EmotionModel[this.params.name].title2 : '' | |||||
return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].title2, '抑郁', '焦虑') : '' | |||||
}, | }, | ||||
article2() { | article2() { | ||||
return this.params.name ? EmotionModel[this.params.name].article2 : '' | |||||
return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].article2, '抑郁', '焦虑') : '' | |||||
}, | }, | ||||
// 当前情绪颜色 | // 当前情绪颜色 | ||||
currentColor() { | currentColor() { | ||||
@@ -744,7 +744,7 @@ export default { | |||||
loadParams() { | loadParams() { | ||||
let params = this.$route.query; | let params = this.$route.query; | ||||
if (params) { | if (params) { | ||||
this.emoName = EmotionModel[params.name].name; | |||||
this.emoName = this.$replaceAll(EmotionModel[params.name].name, '抑郁', '焦虑'); | |||||
this.emoType = EmotionModel[params.name].type; | this.emoType = EmotionModel[params.name].type; | ||||
this.uid = params.uid; | this.uid = params.uid; | ||||
this.routeDate = params.date; | this.routeDate = params.date; | ||||
@@ -152,7 +152,6 @@ | |||||
</template> | </template> | ||||
<script> | <script> | ||||
import { anxietyText } from "@/config/models"; | |||||
import { isNotNull } from "@/utils/index"; | import { isNotNull } from "@/utils/index"; | ||||
import axios from "axios"; | import axios from "axios"; | ||||
import APICore from "@/api/core"; | import APICore from "@/api/core"; | ||||
@@ -649,7 +648,7 @@ export default { | |||||
title = "压力"; | title = "压力"; | ||||
break; | break; | ||||
case 2: | case 2: | ||||
title = anxietyText; | |||||
title = this.$replaceAll('抑郁', '抑郁', '焦虑') | |||||
break; | break; | ||||
case 3: | case 3: | ||||
title = "疲劳"; | title = "疲劳"; | ||||