From 9a5ee579920433b02facf92a3d6b31a3c7787321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com> Date: Wed, 1 Mar 2023 00:26:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B2=89=E6=B5=B8=E5=BC=8F?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 38 ++++++ src/components/layout/layout.vue | 5 +- src/pages/auth/auth.vue | 181 ++++++++++++++--------------- src/pages/index/index.vue | 123 ++++++++++---------- src/pages/member/member.vue | 28 ++--- src/static/temp/{member => }/1.png | Bin 6 files changed, 201 insertions(+), 174 deletions(-) rename src/static/temp/{member => }/1.png (100%) diff --git a/src/App.vue b/src/App.vue index c78aabb..3c3425f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -57,4 +57,42 @@ export default { .placeholder-style-4 { color: #999999; } +// 沉浸样式 +.immerse-image { + width: 100%; + line-height: 0; + .image { + width: 100%; + height: 590rpx; + } +} +.immerse-main { + position: absolute; + top: 0; + width: 100%; + box-sizing: border-box; + .head-title { + width: 100%; + text-align: center; + padding: 30rpx 0 40rpx 0; + .title { + font-size: 56rpx; + font-weight: bold; + font-style: italic; + color: #ffffff; + line-height: 56rpx; + } + .color { + color: #ffce25; + } + .desc { + display: block; + font-size: 24rpx; + font-weight: bold; + color: #ffffff; + line-height: 24rpx; + margin-top: 42rpx; + } + } +} diff --git a/src/components/layout/layout.vue b/src/components/layout/layout.vue index a1e5db9..6a15bd8 100644 --- a/src/components/layout/layout.vue +++ b/src/components/layout/layout.vue @@ -94,9 +94,10 @@ export default { this.header.pt = 0; this.header.height = this.$utils.rpx2px(headerHeight * 2); // #endif + let safePt = this.header.pt + this.header.height; + this.$emit("input", safePt); if (this.hasPaddingTop) { - this.bodyPt = this.header.pt + this.header.height; - this.$emit("input", this.bodyPt); + this.bodyPt = safePt; } }, methods: { diff --git a/src/pages/auth/auth.vue b/src/pages/auth/auth.vue index e7f0c09..3ffe577 100644 --- a/src/pages/auth/auth.vue +++ b/src/pages/auth/auth.vue @@ -1,90 +1,96 @@