@@ -1,7 +1,7 @@ | |||||
<!-- | <!-- | ||||
* @Date: 2022-08-17 16:19:13 | * @Date: 2022-08-17 16:19:13 | ||||
* @LastEditors: JinxChen | * @LastEditors: JinxChen | ||||
* @LastEditTime: 2023-06-25 16:08:26 | |||||
* @LastEditTime: 2023-06-28 14:16:35 | |||||
* @FilePath: \TelpoH5FrontendWeb\README.md | * @FilePath: \TelpoH5FrontendWeb\README.md | ||||
* @description: 项目说明 | * @description: 项目说明 | ||||
--> | --> | ||||
@@ -553,4 +553,13 @@ update | |||||
`2023.6.27` | `2023.6.27` | ||||
fix | fix | ||||
- 心理监测首页 | - 心理监测首页 | ||||
- 修复 从详情页面返回重新进入详情页面参数传递错误的问题 | |||||
- 修复 从详情页面返回重新进入详情页面参数传递错误的问题 | |||||
## v1.0.70 | |||||
`2023.6.28` | |||||
update | |||||
- 心理监测首页 | |||||
- 优化 路由传参非空判断的问题 | |||||
- 优化 日期传参,当路由存在date参数并且在详情选中有日期时,路由的日期参数变成选中的日期 | |||||
- 修改 日历组件的高度样式 |
@@ -5,7 +5,7 @@ | |||||
* @FilePath: \TelpoH5FrontendWeb\src\config\models.js | * @FilePath: \TelpoH5FrontendWeb\src\config\models.js | ||||
* @description: | * @description: | ||||
*/ | */ | ||||
export const VERSION_MODEL = '1.0.69F'; //版本号 | |||||
export const VERSION_MODEL = '1.0.70F'; //版本号 | |||||
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/', | ||||
@@ -42,6 +42,7 @@ | |||||
<script> | <script> | ||||
import axios from "axios"; | import axios from "axios"; | ||||
import { isNotNull} from "@/utils/index"; | |||||
export default { | export default { | ||||
name: 'psychologicalMain', | name: 'psychologicalMain', | ||||
data(){ | data(){ | ||||
@@ -59,7 +60,7 @@ export default { | |||||
}, | }, | ||||
computed: { | computed: { | ||||
isShowLeft() { | isShowLeft() { | ||||
return this.$route.query.fromUrl !== undefined; | |||||
return isNotNull(this.$route.query.fromUrl); | |||||
} | } | ||||
}, | }, | ||||
created() { | created() { | ||||
@@ -117,7 +118,7 @@ export default { | |||||
}) | }) | ||||
}, | }, | ||||
onNavBack() { | onNavBack() { | ||||
if(this.isShowLeft && this.$route.query.fromUrl !== undefined) { | |||||
if(this.isShowLeft) { | |||||
window.location.href = `${this.$route.query.fromUrl}/#/device`; | window.location.href = `${this.$route.query.fromUrl}/#/device`; | ||||
} else { | } else { | ||||
this.$router.go(-1); | this.$router.go(-1); | ||||
@@ -1000,6 +1000,7 @@ export default { | |||||
// 返回 | // 返回 | ||||
onNavBack() { | onNavBack() { | ||||
this.params.name = ''; | this.params.name = ''; | ||||
this.params.date = this.selectDate || this.params.date; | |||||
this.$router.replace({ | this.$router.replace({ | ||||
name: 'psychologicalMain', | name: 'psychologicalMain', | ||||
query: { | query: { | ||||
@@ -1154,7 +1155,7 @@ export default { | |||||
/* height: 300px; */ | /* height: 300px; */ | ||||
overflow: scroll; | overflow: scroll; | ||||
.van-calendar { | .van-calendar { | ||||
height: 300px; | |||||
height: 350px; | |||||
.van-calendar__days .van-calendar__day { | .van-calendar__days .van-calendar__day { | ||||
width: 27px; | width: 27px; | ||||
height: 27px; | height: 27px; | ||||