From b1f4b07417ce38dcff3f0b2a9fa0fef9ab183b28 Mon Sep 17 00:00:00 2001
From: 阳洁 <2077506045@qq.com>
Date: 星期四, 22 二月 2024 15:48:08 +0800
Subject: [PATCH] 1. 人格问卷答题目选项增加边框 2. API-Fan事中提示语解析变量 3. 答题完毕的提示语修改 4. 答题完毕页面增加关闭页面按钮

---
 src/views/demography/login.vue |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/views/demography/login.vue b/src/views/demography/login.vue
index 407a505..1ff3a41 100644
--- a/src/views/demography/login.vue
+++ b/src/views/demography/login.vue
@@ -18,8 +18,8 @@
       parasInfos: [],
       parasInfoIds: {},
       formDo: {},
-      statusInfo: { '2': this.$t('statusInfo2'), '3': this.$t('statusInfo3'), '4': this.$t('statusInfo4') },
-      doUrl: null
+      reportTemplateType: null,
+      statusInfo: { '2': this.$t('statusInfo2'), '3': this.$t('statusInfo3'), '4': this.$t('statusInfo4') }
     }
   },
   created () {
@@ -36,7 +36,8 @@
       } else if (re.response.status !== '1') {
         _this.$router.push({ path: '/exam/exception', query: { name: '', content: _this.statusInfo[re.response.status] } })
       } else {
-        _this.doUrl = re.response.doUrl
+        // _this.doUrl = re.response.doUrl
+        _this.reportTemplateType = re.response.productType
         _this.setMemberTocken(_this.paraMemberToken)
         _this.setDoUrl(re.response.doUrl)
         _this.setReportTemplateId(re.response.reportTemplateId)
@@ -60,6 +61,14 @@
               return
             }
 
+            // APIFan鍋氱壒娈婂鐞� 鍙湁涓枃
+            if (_this.reportTemplateType === 'APIFan') {
+              _this.$i18n.locale = 'zh'
+              _this.setLangType('Chinese')
+              _this.$router.push({ path: '/demography/fill/index', query: { demographyMenber: _this.memberToken, isStart: false } })
+              return
+            }
+
             // 鍏堥�夋嫨瀵嗙爜
             _this.$router.push({ path: '/demography/fill/langOption', query: { langSelectValue: _this.langType } })
             _this.setMemberTocken(_this.paraMemberToken)

--
Gitblit v1.9.1