[测评系统]--前端(用户答题页面)
yj
2025-11-27 e9d90e9ea68a2ee82869124ff092dc21f329f2b0
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>