From 284b6e3829a985937673ac910f093eb397b6cb5c Mon Sep 17 00:00:00 2001 From: lVAL Date: Thu, 7 Jan 2021 17:28:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=93=8D=E5=BA=94=E5=BC=8F?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ePreviewPdf/index.vue | 4 ++-- src/layout/eFooter/eCopy.vue | 16 +++++++--------- src/views/Home/main/eRecommend.vue | 12 ++++++------ src/views/PreviewPdf/index.vue | 23 ++++++++++++++++++++--- src/views/Relation.vue | 1 + 5 files changed, 36 insertions(+), 20 deletions(-) diff --git a/src/components/ePreviewPdf/index.vue b/src/components/ePreviewPdf/index.vue index 6157cba..7b00e3e 100644 --- a/src/components/ePreviewPdf/index.vue +++ b/src/components/ePreviewPdf/index.vue @@ -107,8 +107,8 @@ export default { if (canvas) { canvas.width = width * ratio; canvas.height = height * ratio; - canvas.style.width = width/10 + "em"; - canvas.style.height = height/10 + "em"; + canvas.style.width = width / 10 + "em"; + canvas.style.height = height / 10 + "em"; ctx.setTransform(ratio, 0, 0, ratio, 0, 0); let renderTask = page.render({ diff --git a/src/layout/eFooter/eCopy.vue b/src/layout/eFooter/eCopy.vue index 147b414..3ec7cc0 100644 --- a/src/layout/eFooter/eCopy.vue +++ b/src/layout/eFooter/eCopy.vue @@ -1,16 +1,16 @@ @@ -59,12 +59,10 @@ a { background-color: #e6e6e6; text-align: center; color: #666; + padding: 1em 0; .container { width: 100%; - height: 5em; - display: flex; - justify-content: center; align-items: center; } diff --git a/src/views/Home/main/eRecommend.vue b/src/views/Home/main/eRecommend.vue index 9d48711..0befd79 100644 --- a/src/views/Home/main/eRecommend.vue +++ b/src/views/Home/main/eRecommend.vue @@ -141,35 +141,35 @@ export default { @media (min-width: 320px) { .frame { width: 220px; - height: 180px; + height: 120px; } } @media (min-width: 480px) { .frame { width: 300px; - height: 200px; + height: 180px; } } @media (min-width: 760px) { .frame { - width: 560px; - height: 220px; + width: 600px; + height: 180px; } } @media (min-width: 960px) { .frame { width: 1000px; - height: 260px; + height: 220px; } } @media (min-width: 1200px) { .frame { width: 1100px; - height: 300px; + height: 280px; } } diff --git a/src/views/PreviewPdf/index.vue b/src/views/PreviewPdf/index.vue index aee3038..8d3868a 100644 --- a/src/views/PreviewPdf/index.vue +++ b/src/views/PreviewPdf/index.vue @@ -49,14 +49,31 @@ export default { diff --git a/src/views/Relation.vue b/src/views/Relation.vue index 38617fb..4443252 100644 --- a/src/views/Relation.vue +++ b/src/views/Relation.vue @@ -31,6 +31,7 @@ export default { background: #f7f7f9; padding: 1em; width: 100%; + min-height: 100vh; .container { margin: auto;