Browse Source

update

- 问卷调查
    - 增加 答题完成返回错误后如果是从随手精灵公众号调过来的用户,则第8 11题文字变红
test
JinxChen 1 year ago
parent
commit
9a5e43f7e2
3 changed files with 29 additions and 8 deletions
  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 View File

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


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

+ 2
- 2
src/config/models.js View File

@@ -1,11 +1,11 @@
/* /*
* @Date: 2021-11-20 10:26:39 * @Date: 2021-11-20 10:26:39
* @LastEditors: JinxChen * @LastEditors: JinxChen
* @LastEditTime: 2023-09-25 09:15:41
* @LastEditTime: 2023-10-09 09:38:30
* @FilePath: \TelpoH5FrontendWeb\src\config\models.js * @FilePath: \TelpoH5FrontendWeb\src\config\models.js
* @description: * @description:
*/ */
export const VERSION_MODEL = '1.0.88F'; //版本号
export const VERSION_MODEL = '1.0.89F'; //版本号
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/',


+ 18
- 4
src/views/psychological-questionnaire/index.vue View File

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


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




Loading…
Cancel
Save