[测评系统]--前端(用户答题页面)
yj
2025-11-27 e9d90e9ea68a2ee82869124ff092dc21f329f2b0
移动端不显示关闭按钮与相应文字
5个文件已修改
41 ■■■■ 已修改文件
src/lang/en.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/lang/th.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/lang/zh.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/paper/finish.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/paper/personality.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/lang/en.js
@@ -63,6 +63,9 @@
  partRemailTime: 'Remaining Time:',
  finishIntelligenceInfo: 'You have completed the cognitive ability test questionnaire, the data has been successfully uploaded to the server, and has been saved. Thank you.',
  finishPersonalityInfo: 'You have completed the personality questionnaire, and the data has been successfully uploaded to the server and saved. ',
  finishPersonalityInfo_mobile: 'You have completed the personality questionnaire, and the data has been successfully uploaded to the server and saved. ',
  finishPersonalityInfo_apifan: 'You have completed the personality questionnaire, and the data has been successfully uploaded to the server and saved. ',
  finishPersonalityInfo_apifan_mobile: 'You have completed the personality questionnaire, and the data has been successfully uploaded to the server and saved. ',
  finishCareerInterestsInfo: 'You have completed the Career Interests questionnaire, and the data has been successfully uploaded to the server and saved. ',
  finishPersonalityDownInfo: 'You may click the button below to download your test report.',
  finishViewReportInfo: 'You can click on the button below to view your result report.',
src/lang/th.js
@@ -63,6 +63,9 @@
  partRemailTime: 'Remaining Time:',
  finishIntelligenceInfo: 'You have completed the cognitive ability test questionnaire, the data has been successfully uploaded to the server, and has been saved. Thank you.',
  finishPersonalityInfo: 'You have completed the personality quetionnaire, and the data has been successfully uploaded to the server and saved. ',
  finishPersonalityInfo_mobile: 'You have completed the personality quetionnaire, and the data has been successfully uploaded to the server and saved. ',
  finishPersonalityInfo_apifan: 'You have completed the personality quetionnaire, and the data has been successfully uploaded to the server and saved. ',
  finishPersonalityInfo_apifan_mobile: 'You have completed the personality quetionnaire, and the data has been successfully uploaded to the server and saved. ',
  finishCareerInterestsInfo: 'You have completed the Career Interests quetionnaire, and the data has been successfully uploaded to the server and saved. ',
  finishPersonalityDownInfo: 'You may click the button below to download your test report.',
  finishViewReportInfo: 'You can click on the button below to view your result report.',
src/lang/zh.js
@@ -63,7 +63,9 @@
  partRemailTime: '剩余时间:',
  finishIntelligenceInfo: '您已经完成了认知能力测试问卷,数据已经成功地上传至服务器,并已经保存好。谢谢。',
  finishPersonalityInfo: '您已经完成了人格测试问卷,数据已经成功地上传至服务器,并已经保存好。现在您可以点击下面的“关闭”按钮关闭页面',
  finishPersonalityInfo_mobile: '您已经完成了人格测试问卷,数据已经成功地上传至服务器,并已经保存好。',
  finishPersonalityInfo_apifan: '您已经完成了人格测试问卷,数据已经成功地上传至服务器,已经保存好。现在您可以点击下面的“关闭”按钮关闭页面。',
  finishPersonalityInfo_apifan_mobile: '您已经完成了人格测试问卷,数据已经成功地上传至服务器,已经保存好。',
  finishCareerInterestsInfo: '您已经完成了职业兴趣问卷,数据已经成功地上传至服务器,并已经保存好。',
  finishPersonalityDownInfo: '您可以点击下面按钮下载您的结果报告。',
  finishViewReportInfo: '您可以点击下面按钮查看您的结果报告。',
src/views/exam/paper/finish.vue
@@ -6,7 +6,7 @@
      <el-main class="align-center">
        <H2 v-if="content!==null && content.trim()!==''">{{content}}</H2>
        <H2 v-else>{{$t('finishMsg')}}</H2>
        <el-button type="danger" @click="closePage" round>{{$t('close')}}</el-button>
        <el-button class="close-page" type="danger" @click="closePage" round>{{$t('close')}}</el-button>
        <!-- 新增下载报告提示语 -->
        <H2 v-if ="downDisable">{{$t('finishPersonalityDownInfo')}}</H2>
        <el-button type="success" v-if ="downDisable" @click="downReport" round>{{$t('down')}}</el-button>
@@ -85,11 +85,11 @@
    viewReportH5: function () {
      let _this = this
      _this.$router.push({ path: '/report/h5', query: { tokenId: _this.tokenId } })
    },
    isMobile () {
      let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)
      return flag
    }
    // isMobile () {
    //   let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)
    //   return flag
    // }
  },
  computed: {
  }
@@ -113,4 +113,10 @@
    padding-left: 25px;
    padding-right: 25px;
  }
  @media (max-width: 1024px) {
  .close-page {
    display: none;
  }
}
</style>
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']),