修复沉浸问题
This commit is contained in:
parent
7bc02b24df
commit
8f4fab2ff4
|
@ -62,6 +62,8 @@ export default {
|
||||||
}
|
}
|
||||||
// 沉浸样式
|
// 沉浸样式
|
||||||
.immerse-image {
|
.immerse-image {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
.image {
|
.image {
|
||||||
|
@ -70,8 +72,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.immerse-main {
|
.immerse-main {
|
||||||
position: absolute;
|
position: relative;
|
||||||
top: 0;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
.head-title {
|
.head-title {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page-layout" :style="{ backgroundColor: backgroundColor, minHeight: minHeight, paddingBottom: layoutPb + 'px' }">
|
<view class="page-layout" :style="{ backgroundColor: backgroundColor, minHeight: minHeight }">
|
||||||
<view
|
<view
|
||||||
class="page-header"
|
class="page-header"
|
||||||
:class="[textColor]"
|
:class="[textColor]"
|
||||||
|
@ -75,10 +75,6 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: "dark",
|
default: "dark",
|
||||||
},
|
},
|
||||||
layoutPb: {
|
|
||||||
type: Number,
|
|
||||||
default: 0,
|
|
||||||
},
|
|
||||||
hasPaddingTop: {
|
hasPaddingTop: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<view class="immerse-image">
|
<view class="immerse-image">
|
||||||
<image class="image" :src="backgroundImage" mode="aspectFill" />
|
<image class="image" :src="backgroundImage" mode="aspectFill" />
|
||||||
</view>
|
</view>
|
||||||
<view class="immerse-main" :style="{ top: safePt + utils.rpx2px(20) + 'px' }">
|
<view class="immerse-main" :style="{ paddingTop: safePt + utils.rpx2px(20) + 'px' }">
|
||||||
<view class="head-title">
|
<view class="head-title">
|
||||||
<text class="title">熊熊建材安装<text class="color">师傅版</text></text>
|
<text class="title">熊熊建材安装<text class="color">师傅版</text></text>
|
||||||
<text class="desc">将好师傅交给用户让好服务走进万家 </text>
|
<text class="desc">将好师傅交给用户让好服务走进万家 </text>
|
||||||
|
@ -168,7 +168,9 @@ export default {
|
||||||
.auth-container {
|
.auth-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-bottom: 30rpx;
|
}
|
||||||
|
.immerse-main {
|
||||||
|
padding-bottom: 20rpx;
|
||||||
}
|
}
|
||||||
.section {
|
.section {
|
||||||
width: 710rpx;
|
width: 710rpx;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<view class="immerse-image">
|
<view class="immerse-image">
|
||||||
<image class="image" :src="backgroundImage" mode="aspectFill" />
|
<image class="image" :src="backgroundImage" mode="aspectFill" />
|
||||||
</view>
|
</view>
|
||||||
<view class="immerse-main" :style="{ top: safePt + utils.rpx2px(20) + 'px' }">
|
<view class="immerse-main" :style="{ paddingTop: safePt + utils.rpx2px(20) + 'px' }">
|
||||||
<view class="head-title">
|
<view class="head-title">
|
||||||
<text class="title">熊熊建材安装<text class="color">师傅版</text></text>
|
<text class="title">熊熊建材安装<text class="color">师傅版</text></text>
|
||||||
<text class="desc">将好师傅交给用户让好服务走进万家 </text>
|
<text class="desc">将好师傅交给用户让好服务走进万家 </text>
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<app-layout v-model="safePt" btnType="unset" headerBackgroundColor="unset" :hasPaddingTop="false" :layoutPb="utils.rpx2px(40)">
|
<app-layout v-model="safePt" btnType="unset" headerBackgroundColor="unset" :hasPaddingTop="false">
|
||||||
<view class="member-container">
|
<view class="member-container">
|
||||||
<view class="immerse-image">
|
<view class="immerse-image">
|
||||||
<image class="image" :src="backgroundImage" mode="aspectFill" />
|
<image class="image" :src="backgroundImage" mode="aspectFill" />
|
||||||
</view>
|
</view>
|
||||||
<view class="immerse-main" :style="{ top: safePt + utils.rpx2px(20) + 'px' }">
|
<view class="immerse-main" :style="{ paddingTop: safePt + utils.rpx2px(20) + 'px' }">
|
||||||
<view class="head">
|
<view class="head">
|
||||||
<view class="headimg">
|
<view class="headimg">
|
||||||
<image class="image" :src="userInfo.headimg" mode="aspectFill" />
|
<image class="image" :src="userInfo.headimg" mode="aspectFill" />
|
||||||
|
@ -134,7 +134,7 @@ export default {
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.immerse-main {
|
.immerse-main {
|
||||||
padding: 0 20rpx;
|
padding: 0 20rpx 20rpx;
|
||||||
}
|
}
|
||||||
.member-container {
|
.member-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
Loading…
Reference in New Issue