Pārlūkot izejas kodu

update

- 问卷调查
    - 增加 答题完成返回错误后如果是从随手精灵公众号调过来的用户,则第8 11题文字变红
test
JinxChen pirms 1 gada
vecāks
revīzija
9a5e43f7e2
3 mainītis faili ar 29 papildinājumiem un 8 dzēšanām
  1. +9
    -2
      README.md
  2. +2
    -2
      src/config/models.js
  3. +18
    -4
      src/views/psychological-questionnaire/index.vue

+ 9
- 2
README.md Parādīt failu

@@ -1,7 +1,7 @@
<!--
* @Date: 2022-08-17 16:19:13
* @LastEditors: JinxChen
* @LastEditTime: 2023-09-16 09:24:37
* @LastEditTime: 2023-10-09 09:47:52
* @FilePath: \TelpoH5FrontendWeb\README.md
* @description: 项目说明
-->
@@ -711,4 +711,11 @@ update
`2023.9.25`
update
- 问卷调查
- 修改 答题完成后返回方法,修复使用浏览器原生返回方法可能会导致页面返回异常
- 修改 答题完成后返回方法,修复使用浏览器原生返回方法可能会导致页面返回异常


## v1.0.89
`2023.10.9`
update
- 问卷调查
- 增加 答题完成返回错误后如果是从随手精灵公众号调过来的用户,则第8 11题文字变红

+ 2
- 2
src/config/models.js Parādīt failu

@@ -1,11 +1,11 @@
/*
* @Date: 2021-11-20 10:26:39
* @LastEditors: JinxChen
* @LastEditTime: 2023-09-25 09:15:41
* @LastEditTime: 2023-10-09 09:38:30
* @FilePath: \TelpoH5FrontendWeb\src\config\models.js
* @description:
*/
export const VERSION_MODEL = '1.0.88F'; //版本号
export const VERSION_MODEL = '1.0.89F'; //版本号
export const IMAGE_URL = {
production: 'http://zfb.ssjlai.com/web/',
test: 'http://zfb.ssjlai.com/web/',


+ 18
- 4
src/views/psychological-questionnaire/index.vue Parādīt failu

@@ -22,7 +22,7 @@
</div>
<div class="list_box">
<div class="item" v-for="(item, index) in topic" :key="index">
<div class="label">
<div :class="['label', {error: (isError && fromSsjl && item.Id == '8') || (isError && fromSsjl && item.Id == '11')}]">
<span>{{ item.Title }}</span>
<span>({{ item.Type }})</span>
</div>
@@ -38,6 +38,7 @@
:key="idx"
:title="ite.label"
@click="onRadio(index, ite.value)"
:title-class="[{cellTitle: (isError && fromSsjl && item.Id == '8') || (isError && fromSsjl && item.Id == '11')}]"
>
<template #right-icon>
<van-radio :name="ite.value" />
@@ -89,7 +90,9 @@ export default {
keyCode: '',
title: '',
topic: [], //题目列表
select: [],
select: [],
isError: null, //是否是答题错误
fromSsjl: this.$store.getters.fromSsjl
}
},
mounted() {
@@ -201,7 +204,8 @@ export default {
data: temp,
}, this.$store.getters.ssjlToken)
if (re.success) {
this.$toast('问卷提交成功', 3000)
this.$toast('问卷提交成功', 3000);
this.isError = false;
setTimeout(() => {
// 2023.09.25 使用此返回方法可能会导致页面返回异常,故使用路由跳转到指定页面
this.$router.replace({
@@ -210,7 +214,6 @@ export default {
uid: this.uid
}
})
/* window.history.back(-1); */
}, 3000)
} else {
//this.$toast(re.msg);
@@ -218,6 +221,7 @@ export default {
message: re.msg,
showCancelButton: false,
});
this.isError = true;
}
},
onRadio(index, value) {
@@ -337,7 +341,17 @@ export default {

.label {
font-size: 4vw;
&.error {
color: red;
}
}
.van-cell {
.van-cell__title {
&.cellTitle {
color: red;
}
}
}
}
}



Notiek ielāde…
Atcelt
Saglabāt