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 @@