diff --git a/README.md b/README.md index 3527899..2d39ce0 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ @@ -425,3 +425,113 @@ feature update - 告警 - 修改 误报文字为 免告警 + +## v1.0.52 +`2023.5.30` +feature +- 增加 心理监测详情页面,抑郁,压力和疲劳当天图表展示 +- 增加 echarts图表依赖 +- 王泽林 + - 增加 心理监测-问卷调查页面 + - 增加 心理监测-建模查询页面 + +## v1.0.53 +`2023.5.30` +update +- 心理监测详情页面 + - 增加 返回功能 + - 修改 页面标题 + +## v1.0.54 +`2023.5.31` +update +- 心理监测详情页面 + - 优化 图表显示内容,两边增加留白区域 + - 优化 7天和30天图表圆角柱形图展示 + +## v1.0.55 +`2023.5.31` +update +- 心理监测详情页面 + - 增加 动态填充uid +- 问卷调查页面 + - 修复 toast无限加载的问题 + +## v1.0.56 +`2023.6.1` +feature +- 增加 一个心理详情汇总页面 + +## v1.0.57 +`2023.6.1` +update +- 心理健康 + - 建模进度查询,问卷调查,心理详情汇总和心理健康抑郁,压力和疲劳详情页面 + - 增加 接口请求时带上从随手精灵传过来的token + +## v1.0.58 +`2023.6.7` +update +- ai语音告警 + - 增加 一个ai语音呼叫中间页 + - 增加 获取long_link的接口 +- vue.config.js + - 增加 关于ai水域告警接口跨域代理设置 + - 因项目接口地址不同,发布线上时取消ai水域告警接口跨域代理,仅在本地调试开启 + +## v1.0.59 +`2023.6.9` +update +- 加油包充值购买 + - 修改 支付成功提示 + + +## v1.0.60 +`2023.6.14` +update +- 心理健康详情页面 + - 修复 历史监测选中非今天的日期后日期显示今天的问题 +- vue.config.js + - 注释 proxy代理相关代码 + +## v1.0.61 +`2023.6.16` +update +- 心理建模进度查询 + - 增加 返回按钮 + +## v1.0.62 +`2023.6.17` +feature +- 心理建模进度查询 + - 增加 具体返回url + +## v1.0.63 +`2023.6.19` +update +- 心理建模进度查询 + - 修改 返回逻辑 + + +## v1.0.64 +`2023.6.21` +update +- 心理建模进度查询 + - 增加 建模中,有2个步骤,如果任一步骤已经完成,则该步骤可以隐藏显示。 + - 修复 图表时间格式转换错误的问题 + - 增加 Advice字段显示 + +## v1.0.65 +`2023.6.22` +update +- 心理监测详情 + - 今天趋势饼状图 + - 修改 百分比显示值,取小数点后面一位 + +## v1.0.66 +`2023.6.25` +update +- 心理监测详情 + - 增加 7天 和 30天数据查看功能 + - 优化 页面样式内容 + - 增加 返回到随手精灵逻辑 diff --git a/package-lock.json b/package-lock.json index c273b21..e7eae5c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,6 +14,7 @@ "clipboard": "^2.0.11", "core-js": "^3.6.5", "dayjs": "^1.11.7", + "echarts": "^5.4.1", "html2canvas": "^1.4.1", "nprogress": "^0.2.0", "rxjs": "^7.8.0", @@ -7174,6 +7175,20 @@ "safer-buffer": "^2.1.0" } }, + "node_modules/echarts": { + "version": "5.4.2", + "resolved": "https://registry.npmjs.org/echarts/-/echarts-5.4.2.tgz", + "integrity": "sha512-2W3vw3oI2tWJdyAz+b8DuWS0nfXtSDqlDmqgin/lfzbkB01cuMEN66KWBlmur3YMp5nEDEEt5s23pllnAzB4EA==", + "dependencies": { + "tslib": "2.3.0", + "zrender": "5.4.3" + } + }, + "node_modules/echarts/node_modules/tslib": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", + "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" + }, "node_modules/editorconfig": { "version": "0.15.3", "resolved": "https://registry.npmjs.org/editorconfig/-/editorconfig-0.15.3.tgz", @@ -20052,6 +20067,19 @@ "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", "dev": true + }, + "node_modules/zrender": { + "version": "5.4.3", + "resolved": "https://registry.npmjs.org/zrender/-/zrender-5.4.3.tgz", + "integrity": "sha512-DRUM4ZLnoaT0PBVvGBDO9oWIDBKFdAVieNWxWwK0niYzJCMwGchRk21/hsE+RKkIveH3XHCyvXcJDkgLVvfizQ==", + "dependencies": { + "tslib": "2.3.0" + } + }, + "node_modules/zrender/node_modules/tslib": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", + "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" } }, "dependencies": { @@ -25702,6 +25730,22 @@ "safer-buffer": "^2.1.0" } }, + "echarts": { + "version": "5.4.2", + "resolved": "https://registry.npmjs.org/echarts/-/echarts-5.4.2.tgz", + "integrity": "sha512-2W3vw3oI2tWJdyAz+b8DuWS0nfXtSDqlDmqgin/lfzbkB01cuMEN66KWBlmur3YMp5nEDEEt5s23pllnAzB4EA==", + "requires": { + "tslib": "2.3.0", + "zrender": "5.4.3" + }, + "dependencies": { + "tslib": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", + "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" + } + } + }, "editorconfig": { "version": "0.15.3", "resolved": "https://registry.npmjs.org/editorconfig/-/editorconfig-0.15.3.tgz", @@ -36093,6 +36137,21 @@ "dev": true } } + }, + "zrender": { + "version": "5.4.3", + "resolved": "https://registry.npmjs.org/zrender/-/zrender-5.4.3.tgz", + "integrity": "sha512-DRUM4ZLnoaT0PBVvGBDO9oWIDBKFdAVieNWxWwK0niYzJCMwGchRk21/hsE+RKkIveH3XHCyvXcJDkgLVvfizQ==", + "requires": { + "tslib": "2.3.0" + }, + "dependencies": { + "tslib": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", + "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" + } + } } } } diff --git a/package.json b/package.json index 2949606..c3e55b7 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ "vue-router": "^3.2.0", "vuex": "^3.4.0", "weixin-js-sdk": "^1.6.0", - "clipboard": "^2.0.11" + "clipboard": "^2.0.11", + "echarts": "^5.4.1" }, "devDependencies": { "@vue/cli-plugin-babel": "^4.5.0", diff --git a/src/assets/css/public.scss b/src/assets/css/public.scss index e8444a8..4985566 100644 --- a/src/assets/css/public.scss +++ b/src/assets/css/public.scss @@ -3,6 +3,8 @@ $blue: #2599ff; $next: #8bc6fa; $red: #ff8c8c; $background: #f2f4f5; +// 灰色线条 +$lineGray: #F5F5F5; $border_color: #d1d1d1; /* 绑定时选择人物关系图片head.png */ $spriteWidthHead: 180; diff --git a/src/assets/img/moderate.png b/src/assets/img/moderate.png new file mode 100644 index 0000000..d106db9 Binary files /dev/null and b/src/assets/img/moderate.png differ diff --git a/src/assets/img/no_data_01.png b/src/assets/img/no_data_01.png new file mode 100644 index 0000000..9a84f95 Binary files /dev/null and b/src/assets/img/no_data_01.png differ diff --git a/src/assets/img/regardless.png b/src/assets/img/regardless.png new file mode 100644 index 0000000..0f3b203 Binary files /dev/null and b/src/assets/img/regardless.png differ diff --git a/src/config/models.js b/src/config/models.js index 53c7907..b3c84c4 100644 --- a/src/config/models.js +++ b/src/config/models.js @@ -1,11 +1,11 @@ /* * @Date: 2021-11-20 10:26:39 * @LastEditors: JinxChen - * @LastEditTime: 2023-05-13 22:16:53 + * @LastEditTime: 2023-06-16 17:19:45 * @FilePath: \TelpoH5FrontendWeb\src\config\models.js * @description: */ -export const VERSION_MODEL = '1.0.51F'; //版本号 +export const VERSION_MODEL = '1.0.66F'; //版本号 export const IMAGE_URL = { production: 'http://zfb.ssjlai.com/web/', test: 'http://zfb.ssjlai.com/web/', @@ -23,4 +23,22 @@ export const BaiduStatisticsModel = { production: "https://hm.baidu.com/hm.js?b33e6f07636c9fd9ec8cfe04979f1664", // 随手精灵百度流量统计 正式环境 test: "https://hm.baidu.com/hm.js?edb76b471e997167b7782c1513382771", // 随手精灵百度流量统计 测试环境 development: "https://hm.baidu.com/hm.js?edb76b471e997167b7782c1513382771", // 随手精灵百度流量统计 测试环境 -} \ No newline at end of file +}; +// 情绪模型 +export const EmotionModel = { + // 抑郁 + depression: { + name: '抑郁', + type: 2 + }, + // 压力 + stress: { + name: '压力', + type: 1 + }, + // 疲劳 + tiredness: { + name: '疲劳', + type: 3 + } +}; \ No newline at end of file diff --git a/src/main.js b/src/main.js index d507f3e..ba11b5f 100644 --- a/src/main.js +++ b/src/main.js @@ -1,7 +1,7 @@ /* * @Date: 2022-01-19 10:08:26 * @LastEditors: JinxChen - * @LastEditTime: 2023-05-10 09:15:16 + * @LastEditTime: 2023-05-30 10:58:58 * @FilePath: \TelpoH5FrontendWeb\src\main.js * @description: */ @@ -14,6 +14,8 @@ import '@/assets/css/reset.scss'; import dayjs from 'dayjs'; // ui库按需引入 import 'vant/lib/index.css'; +// 引入echarts +import * as echarts from 'echarts'; import { BaiduStatisticsModel } from '@/config/models'; import { Button, @@ -55,6 +57,7 @@ import { Tabs, Toast, ActionSheet, + Progress, } from 'vant'; //按需加载vant组件 Vue @@ -97,16 +100,18 @@ Vue .use(Tabs) .use(Toast) .use(ActionSheet) +.use(Progress) Vue.config.productionTip = false; Vue.config.devtools = true; + // 全局配置 loading Toast.setDefaultOptions('success', { - duration: 2500, + duration: 1500, forbidClick: true, }); Toast.setDefaultOptions('loading', { - duration: 0, + duration: 1500, forbidClick: true, }); Dialog.setDefaultOptions({ @@ -115,6 +120,7 @@ Dialog.setDefaultOptions({ }); Vue.config.productionTip = false; Vue.prototype.$dayjs = dayjs; +Vue.prototype.$echarts = echarts; Vue.prototype.$bus = new Vue(); router.afterEach((to, from, next) => { // 创建百度统计js diff --git a/src/router/index.js b/src/router/index.js index 88fa066..56885cd 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,7 +1,21 @@ +/* + * @Date: 2023-06-01 18:41:50 + * @LastEditors: JinxChen + * @LastEditTime: 2023-06-07 10:40:03 + * @FilePath: \TelpoH5FrontendWeb\src\router\index.js + * @description: + */ +/* + * @Date: 2023-05-30 15:37:06 + * @LastEditors: JinxChen + * @LastEditTime: 2023-06-01 09:48:23 + * @FilePath: \TelpoH5FrontendWeb\src\router\index.js + * @description: + */ /* * @Date: 2023-02-25 16:34:35 * @LastEditors: JinxChen - * @LastEditTime: 2023-03-24 14:40:54 + * @LastEditTime: 2023-05-30 11:05:35 * @FilePath: \TelpoH5FrontendWeb\src\router\index.js * @description: */ @@ -31,6 +45,18 @@ 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) }, + + // 健康-心理监测详情,抑郁,压力和疲劳 + { path: '/psychological', name: 'psychological', component: resolve => require(['@/views/health/psychological'], resolve) }, + // 健康-抑郁,压力和疲劳汇总入口 + { path: '/psychologicalMain', name: 'psychologicalMain', component: resolve => require(['@/views/health/psychological-main'], resolve) }, + + // 告警详情-中间页 + { path: '/aiCallAlarm', name: 'aiCallAlarm', component: resolve => require(['@/views/ai-call-alarm'], resolve) }, ]; const router = new VueRouter({ diff --git a/src/store/index.js b/src/store/index.js index 46ea7a6..99df87e 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1,7 +1,7 @@ /* * @Date: 2022-08-17 16:18:02 * @LastEditors: JinxChen - * @LastEditTime: 2023-02-25 15:23:43 + * @LastEditTime: 2023-06-19 11:26:22 * @FilePath: \TelpoH5FrontendWeb\src\store\index.js * @description: */ @@ -19,7 +19,9 @@ export default new Vuex.Store({ wxAuthCode: '', openId: '', appId: '', - isFromWx: null + isFromWx: null, + ssjlToken: '', + fromSsjl: '', }, mutations: { imei(state, imei) { @@ -50,6 +52,14 @@ export default new Vuex.Store({ state.isFromWx = isFromWx; window.localStorage[prefix + 'isFromWx'] = isFromWx; }, + ssjlToken(state, ssjlToken) { + state.ssjlToken = ssjlToken; + window.localStorage[prefix + 'ssjlToken'] = ssjlToken; + }, + fromSsjl(state, fromSsjl) { + state.fromSsjl = fromSsjl; + window.localStorage[prefix + 'fromSsjl'] = fromSsjl; + }, }, getters: { imei: state => { @@ -80,6 +90,14 @@ export default new Vuex.Store({ if (state.isFromWx != '') return state.isFromWx; return window.localStorage[prefix + 'isFromWx'] == null ? '' : window.localStorage[prefix + 'isFromWx']; }, + ssjlToken: state => { + if (state.ssjlToken != '') return state.ssjlToken; + return window.localStorage[prefix + 'ssjlToken'] == null ? '' : window.localStorage[prefix + 'ssjlToken']; + }, + fromSsjl: state => { + if (state.fromSsjl != '') return state.fromSsjl; + return window.localStorage[prefix + 'fromSsjl'] == null ? '' : window.localStorage[prefix + 'fromSsjl']; + }, }, actions: {}, modules: {} diff --git a/src/views/ai-call-alarm/index.vue b/src/views/ai-call-alarm/index.vue new file mode 100644 index 0000000..509c61a --- /dev/null +++ b/src/views/ai-call-alarm/index.vue @@ -0,0 +1,77 @@ + + + + + diff --git a/src/views/health/psychological-main/index.scss b/src/views/health/psychological-main/index.scss new file mode 100644 index 0000000..f132716 --- /dev/null +++ b/src/views/health/psychological-main/index.scss @@ -0,0 +1,98 @@ +.psychological-main-container { + height: 100vh; + width: 100%; + overflow: hidden; + background-color: #F4F8FB; + .nav-bar-title { + display: flex; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + } + .main { + height: calc(100vh - 45px); + background-color: #F4F8FB; + padding: 15px; + .list { + display: flex; + justify-content: space-between; + align-items: center; + background-color: #FFFFFF; + border-radius: 15px; + padding: 10px; + .item { + display: flex; + justify-content: center; + align-items: flex-start; + flex-direction: column; + height: 103px; + width: 93px; + /* margin: 0 5px; + padding: 5px; */ + padding: 5px; + border-radius: 10px; + &.depression { + background: linear-gradient(-29deg, #F2F9FE, #D7E8FD); + } + &.stress { + background: linear-gradient(-29deg, #F9E2E6, #FEF8F4); + } + &.tiredness { + background: linear-gradient(-29deg, #FDFBEE, #FAE4CC); + } + p { + font-size: 16px; + } + .health-value { + font-size: 24px; + font-weight: bold; + } + .health-name { + color: #282828; + font-size: 14px; + } + .health-result { + display: flex; + justify-content: space-between; + align-items: center; + .left { + @include center(); + border-radius: 8px; + padding: 2px 5px; + margin: 6px 0; + &.depression { + background: #BCCDE5; + } + &.stress { + background: #F0D1D4; + } + &.tiredness { + background: #EAD9C5; + } + .result { + font-size: 12px; + color: #ffffff; + } + } + .right { + @include center(); + img { + height: 18px; + width: 18px; + margin-left: 3px + } + } + } + .health-time { + display: flex; + justify-content: flex-start; + align-items: flex-start; + .time { + font-size: 12px; + color: #8B8B8B; + } + } + } + } + } +} \ No newline at end of file diff --git a/src/views/health/psychological-main/index.vue b/src/views/health/psychological-main/index.vue new file mode 100644 index 0000000..441a6d6 --- /dev/null +++ b/src/views/health/psychological-main/index.vue @@ -0,0 +1,160 @@ + + + + + diff --git a/src/views/health/psychological/index.scss b/src/views/health/psychological/index.scss new file mode 100644 index 0000000..ab3c915 --- /dev/null +++ b/src/views/health/psychological/index.scss @@ -0,0 +1,312 @@ +$newBlue: #638EE4; +.psychological-container{ + height: 100vh; + width: 100%; + overflow: hidden; + background-color: #fff; + .main { + height: calc(100vh - 45px); + overflow: scroll; + .top { + flex: 1; + + .tab-bar { + padding: 0 13px 0 13px; + .date-tab-con { + padding: 10px 0; + height: 35px; + display: flex; + justify-content: flex-start; + align-items: center; + .date-tab-list { + display: flex; + justify-content: flex-start; + align-items: center; + flex: 1; + border-radius: 15px; + color: #fff; + .date-tab-item { + height: 35px; + width: 100%; + color: #6D6D6D; + font-size: 18px; + @include center(); + border: 1px solid $newBlue; + &.active { + background-color: $newBlue; + color: #fff; + } + &.notClick { + background-color: $border_color; + color: #fff; + border: 1px solid #fff; + } + } + .date-tab-item:first-child { + border-top-left-radius: 15px; + border-bottom-left-radius: 15px; + } + .date-tab-item:last-child { + border-top-right-radius: 15px; + border-bottom-right-radius: 15px; + } + } + } + } + .title { + display: flex; + justify-content: space-between; + align-items: center; + padding: 16px 16px 16px 13px; + font-size: 18px; + .title-left { + font-weight: bold; + } + } + .monitoring-count { + text-align: left; + padding: 3px 14px; + line-height: 20px; + p { + font-size: 12px; + color: #8B8B8B; + } + } + .pie-chart-con { + flex: 1; + padding: 17px 0 45px 0; + display: flex; + justify-content: space-between; + align-items: flex-start; + .pie-chart-left { + position: relative; + height: 180px; + padding-left: 15px; + width: 40%; + @include center(); + #pieChart { + height: 106px; + width: 106px; + } + } + .pie-chart-right { + height: 180px; + width: 55%; + padding-right: 20px; + @include center(); + .list { + flex-direction: column; + .item { + width: 100%; + display: flex; + justify-content: space-between; + align-items: center; + font-size: 15px; + padding: 9px 0; + .item-left { + display: flex; + justify-content: flex-start; + align-items: center; + padding-right: 10px; + .circle { + height: 12px; + width: 12px; + margin: 0 4px; + } + span { + font-size: 15px; + } + .text { + color: #000; + } + } + .item-right { + display: flex; + justify-content: center; + align-items: center; + } + } + } + } + } + .statistics { + position: relative; + padding: 10px 14px; + .list { + flex: 1; + width: 100%; + display: flex; + justify-content: space-between; + align-items: center; + font-size: 16px; + .item { + @include center(); + width: 58px; + /* height: px2rem(136); */ + flex-direction: column; + .top { + font-size: 12px; + } + .middle { + font-size: 24px; + font-weight: bold; + padding: 16px 5px 11px 5px; + } + .bottom { + font-size: 9px + } + } + } + } + } + .line { + position: relative; + height: 11px; + background-color: $lineGray; + } + .bottom { + flex: 1; + .echart-container { + height: 400px; + background-color:#fff; + padding: 0 5px; + .echart { + height: 400px; + padding: 0 5px; + } + } + .line-gray { + height: 11px; + width: 100%; + background-color: $lineGray; + margin-top: 30px; + } + .result { + .result-con { + height: 100%; + background-color: #fff; + border-radius: 10px; + &.reminder { + padding: 0 16px 20px 16px; + } + .title { + display: flex; + justify-content: flex-start; + align-items: flex-start; + flex-direction: column; + margin-bottom: 10px; + span { + font-size: 18px; + font-weight: bold; + } + .font-28 { + font-weight: 400; + font-size: 13px; + color: #8B8B8B; + text-align: left; + } + .title-no-data { + padding: 34px 0 13px 15px; + } + p { + font-size: 12px; + color: $newBlue; + } + .title-emo { + font-size: 24px; + padding: 14px 0 21px 0; + } + .no-data { + height: 250px; + width: 100%; + @include center(); + flex-direction: column; + img { + height: 110px; + width: 175px; + } + p { + color: #999; + font-size: 12px; + padding: 20px 0 65px 0; + } + } + } + .title-text { + padding: 34px 0 13px 15px; + } + .title-reminder { + padding: 34px 0 0 0; + } + .friendly-reminder, .warm-reminder { + display: flex; + justify-content: flex-start; + align-items: flex-start; + flex-direction: column; + margin-bottom: 10px; + background-color: #F2F2F2; + padding: 20px 19px 19px 14px; + p { + font-weight: bold; + text-align: left; + padding-bottom: 11px; + font-size: 15px; + } + span { + text-align: left; + font-size: 12px; + } + } + .mood-list { + display: grid; + grid-template-columns: repeat(2, 1fr); //定义了一个 2x2 的网格布 + grid-template-rows: repeat(2, 1fr); + gap: 21px; + //width: 100%; + padding: 0 44px 20px 37px; + .item { + width: 137px; + height: 94px; + /* padding: px2rem(47) px2rem(57) px2rem(49) px2rem(57); */ + background-color: #F2F6FF; + @include center(); + flex-direction: column; + p { + font-size: 14px; + padding: 0; + color: #666666; + .day { + padding: 5px; + font-size: 28px; + } + .day-text { + font-size: 12px + } + } + } + } + .mood-list-no-data { + height: 250px; + width: 100%; + .no-data { + @include center(); + flex-direction: column; + img { + height: 110px; + width: 175px; + } + p { + color: #999; + font-size: 12px; + padding: 20px 0 65px 0; + } + } + } + } + } + } + } + .title { + font-size: 16px; + } +} \ No newline at end of file diff --git a/src/views/health/psychological/index.vue b/src/views/health/psychological/index.vue new file mode 100644 index 0000000..bb651f6 --- /dev/null +++ b/src/views/health/psychological/index.vue @@ -0,0 +1,1166 @@ + + + + + + \ No newline at end of file diff --git a/src/views/package-buy/index.vue b/src/views/package-buy/index.vue index 1b20390..ef9f37c 100644 --- a/src/views/package-buy/index.vue +++ b/src/views/package-buy/index.vue @@ -356,8 +356,9 @@ export default { //res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。 if(packageType === 1) { // 加油包不用跳转,直接提示支付成功 + // 2023.06.09 修改充值成功提示如下: that.$toast.success({ - message: '支付成功' + message: '充值成功,请重启设备后,恢复正常使用。' }); } else { that.$router.replace({ diff --git a/src/views/psychological-modeling/index.vue b/src/views/psychological-modeling/index.vue new file mode 100644 index 0000000..2f7b90e --- /dev/null +++ b/src/views/psychological-modeling/index.vue @@ -0,0 +1,321 @@ + + + + + diff --git a/src/views/psychological-questionnaire/index.vue b/src/views/psychological-questionnaire/index.vue new file mode 100644 index 0000000..74b1752 --- /dev/null +++ b/src/views/psychological-questionnaire/index.vue @@ -0,0 +1,345 @@ + + + + + diff --git a/vue.config.js b/vue.config.js index 9e5efb5..088b3fd 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,7 +1,7 @@ /* * @Author: your name * @Date: 2020-04-15 10:00:32 - * @LastEditTime: 2023-02-26 09:19:56 + * @LastEditTime: 2023-06-14 17:10:10 * @LastEditors: JinxChen * @Description: In User Settings Edit * @FilePath: \TelpoH5FrontendWeb\vue.config.js @@ -14,7 +14,24 @@ const pxtorem = require('postcss-pxtorem'); // 把代码中px转为rem const CompressionPlugin = require("compression-webpack-plugin"); const port = process.env.port || process.env.npm_config_port || 8080;/* 7788 */ // dev port - +/* const proxy = process.env.NODE_ENV === 'development' ?{ + // 调试完毕需要把这个代理注释掉,否则发布到线上会有问题产生 + '/api/id': { + target: 'https://id.ssjlai.com/watersoutboundapi/', + changeOrigin: true, + pathRewrite: { + '^/api/id': '' + } + }, + '/api/ai': { + target: 'https://ai.ssjlai.com/watersoutboundapi/', + changeOrigin: true, + pathRewrite: { + '^/api/ai': '' + } + } +} +: null; */ module.exports = { // 注意: 多页面配置 不再使用全路径,单页面时可以开启 publicPath: './',