fix: 🐛 删除我的顶部背景栏配置项

master
lemon橪 2023-01-13 11:04:25 +08:00
parent 7c71375b6c
commit 815118d496
2 changed files with 2 additions and 4 deletions

View File

@ -22,6 +22,5 @@ export default {
mainColor: "#ff3c2a", // 主题色
lightColor: "#ff6b35", // 高亮主题色
aiderLightColor: "#ff9f28", // 辅助高亮颜色
defaultUserTopBackground:"/static/img/main-bg.png", // 我的页面用户背景 渲染的大小: 750 × 443 px 渲染时的宽高比: 750443
defaultUserPhoto:"/static/missing-face.png" // 默认用户头像
};

View File

@ -4,7 +4,7 @@
<view class="status_bar">
<!-- 这里是状态栏 -->
</view>
<view class="header" :style="{'background-image':`url(${backGroundImage})`}" @click="userDetail">
<view class="header" @click="userDetail">
<view class="head-1">
<image :src="userInfo.face || userImage"></image>
</view>
@ -86,7 +86,6 @@ export default {
data() {
return {
configs,
backGroundImage:configs.defaultUserTopBackground,
userImage:configs.defaultUserPhoto,
coverTransform: "translateY(0px)",
coverTransition: "0s",
@ -173,7 +172,7 @@ body {
background-size: cover;
border-bottom-left-radius: 30rpx;
border-bottom-right-radius: 30rpx;
// background-image: url("/static/img/main-bg.png");
background-image: url("/static/img/main-bg.png");
background-position: bottom;
background-repeat: no-repeat;
color: #ffffff;