From e9d90e9ea68a2ee82869124ff092dc21f329f2b0 Mon Sep 17 00:00:00 2001
From: yj <2077506045@qq.com>
Date: 星期四, 27 十一月 2025 11:00:22 +0800
Subject: [PATCH] 移动端不显示关闭按钮与相应文字

---
 src/views/exam/paper/personality.vue |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/src/views/exam/paper/personality.vue b/src/views/exam/paper/personality.vue
index 0a0e3ef..7563f2a 100644
--- a/src/views/exam/paper/personality.vue
+++ b/src/views/exam/paper/personality.vue
@@ -493,16 +493,20 @@
       } else {
         _this.answer.verifyStatus = 1
         _this.answer.finish = 1
+        let text = _this.$t('finishPersonalityInfo')
+        if (_this.isMobile()) {
+          text = _this.$t('finishPersonalityInfo_mobile')
+        }
         if (this.form) {
           let productType = this.form.productType
           if (productType === 'API_Fan') {
-            _this.submitAnswer(_this.$t('finishPersonalityInfo_apifan'))
-          } else {
-            _this.submitAnswer(_this.$t('finishPersonalityInfo'))
+            text = _this.$t('finishPersonalityInfo_apifan')
+            if (_this.isMobile()) {
+              text = _this.$t('finishPersonalityInfo_apifan_mobile')
+            }
           }
-        } else {
-          _this.submitAnswer(_this.$t('finishPersonalityInfo'))
         }
+        _this.submitAnswer(text)
       }
     },
     startDo: function () {
@@ -593,6 +597,9 @@
       let _this = this
       return _this.form.titleItems[0].questionItems[_this.order].partOrder !== _this.form.titleItems[0].questionItems[_this.order - 1].partOrder
     },
+    isMobile: function () {
+      return window.innerWidth < 1025
+    },
     ...mapMutations('user', ['setLangType']),
     ...mapMutations('user', ['setLangFlag']),
     ...mapMutations('user', ['getFormDo']),

--
Gitblit v1.9.1