From beb353c7238d7eea256d0e64710ed4ffea9fd015 Mon Sep 17 00:00:00 2001 From: linzhijie <1003392067@qq.com> Date: 星期一, 22 五月 2023 11:41:37 +0800 Subject: [PATCH] H5适配 --- src/views/report/reportH5.vue | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/report/reportH5.vue b/src/views/report/reportH5.vue index eac5a4e..b2bed31 100644 --- a/src/views/report/reportH5.vue +++ b/src/views/report/reportH5.vue @@ -2,8 +2,9 @@ <div id="app" style="margin:auto"> <div class="report"> <el-image :src="require('@/assets/report/page1.jpg')"></el-image> - <div class="word" style="left: 25%;top: 68.6%;font-size: 0.8rem;color: #313157">{{ data.questionnaireTaker }}</div> - <div class="word" style="left: 28.5%;top: 71.2%;font-size: 0.8rem;color: #313157">{{ data.reportGenerationDate }}</div> + <div class="word" style="left: 12%;top: 66.8%;color: #313157;font-weight:bold">娴嬭瘯鑰咃細{{ data.questionnaireTaker }}</div> + <div class="word" style="left: 12%;top: 69.2%;color: #313157;font-weight:bold">娴嬭瘯鏃堕棿锛歿{ data.reportGenerationDate }}</div> + <div class="word" style="left: 12%;top: 71.5%;color: #313157;font-weight:bold">甯告ā锛氫腑鍥藉ぇ瀛︾敓</div> </div> <div class="report"> <el-image :src="require('@/assets/report/page2.png')"></el-image> @@ -52,10 +53,10 @@ </div> </div> <div class="report"> - <div v-if="data.condition != null"> + <div v-if="data.condition != null && data.condition != ''"> <el-image :src="require('@/assets/report/page4.png')"></el-image> </div> - <div v-if="data.condition == null"> + <div v-if="data.condition == null || data.condition == ''"> <el-image :src="require('@/assets/report/page4-1.png')"></el-image> </div> </div> @@ -67,13 +68,13 @@ <script> import examPaperApi from '@/api/examPaper' +import '@/styles/h5font.scss' export default { name: 'reportH5', data () { return { tokenId: this.$route.query.tokenId, - condition: true, data: { occ1L: '鍦拌川鍕樻帰宸ョ▼鎶�鏈汉鍛橈紙姣斿鍦拌川鐭夸骇璋冩煡宸ョ▼鎶�鏈汉鍛橈級', occ3L: '鐭垮北宸ョ▼鎶�鏈汉鍛橈紙姣斿閫夌熆涓庣熆鐗╁姞宸ュ伐绋嬫妧鏈汉鍛橈級', -- Gitblit v1.9.1