Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8392e9a1
authored
Apr 10, 2026
by
岑成威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:样式处理
1 parent
feca21ab
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
7 deletions
apps/uniappX/uniapp-x-tape/components/HomeFrame/TabbarLandscape.uvue
apps/uniappX/uniapp-x-tape/components/HomeFrame/styles/common.scss
apps/uniappX/uniapp-x-tape/components/HomeFrame/TabbarLandscape.uvue
View file @
8392e9a
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
<image class="home-tabbar-bg-img"
<image class="home-tabbar-bg-img"
mode="aspectFill"
mode="aspectFill"
src="/static/images/home/left-bg.png" />
src="/static/images/home/left-bg.png" />
<view class="hf-landscape-column">
<view class="user-box user-box-clickable hf-landscape-user"
<view class="user-box user-box-clickable hf-landscape-user"
@click="emit('jumpPersonCenter')">
@click="emit('jumpPersonCenter')">
<view class="hf-landscape-profile">
<view class="hf-landscape-profile">
...
@@ -16,9 +17,9 @@
...
@@ -16,9 +17,9 @@
<text class="hf-landscape-name">{{ userName }}</text>
<text class="hf-landscape-name">{{ userName }}</text>
</view>
</view>
</view>
</view>
<view class="landscape-tabbar
-wrap">
<view class="landscape-tabbar-wrap hf-landscape-tab
-wrap">
<view class="landscape-un-tabbar landscape-vertical-tabs"
<view class="landscape-un-tabbar landscape-vertical-tabs"
:style="landscapeTabbarRoot
Style">
:style="landscapeTabsMerged
Style">
<view v-for="(item, index) in tabs"
<view v-for="(item, index) in tabs"
:key="index"
:key="index"
class="landscape-vertical-tabs__item"
class="landscape-vertical-tabs__item"
...
@@ -49,6 +50,7 @@
...
@@ -49,6 +50,7 @@
src="/static/images/home/setting.png" />
src="/static/images/home/setting.png" />
</view>
</view>
</view>
</view>
</view>
<CenterPopup :list="sceneTypeList"
<CenterPopup :list="sceneTypeList"
title="选择场景"
title="选择场景"
:visible="showScenePopup"
:visible="showScenePopup"
...
@@ -104,6 +106,12 @@ const avatarText = computed((): string => {
...
@@ -104,6 +106,12 @@ const avatarText = computed((): string => {
return s.substring(0, 1);
return s.substring(0, 1);
});
});
/** 与 tabbarShared 内联样式叠加:去掉左右 padding,由外层 hf-landscape-column 统一对称留白,三段共中轴 */
const landscapeTabsMergedStyle = computed((): string => {
const b = props.landscapeTabbarRootStyle;
return `${b};padding-left:0;padding-right:0;`;
});
const iconImageStyle = computed((): any => {
const iconImageStyle = computed((): any => {
const s = props.landscapeTabbarIconSize;
const s = props.landscapeTabbarIconSize;
return {
return {
...
@@ -128,6 +136,20 @@ function onTabItemClick(index: number): void {
...
@@ -128,6 +136,20 @@ function onTabItemClick(index: number): void {
<style scoped lang="scss">
<style scoped lang="scss">
@import "./styles/common.scss";
@import "./styles/common.scss";
/* 横屏侧栏主列:顶/左右/底对称留白,子块共一条竖直中轴 */
.hf-landscape-column {
flex: 1;
min-height: 0;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
box-sizing: border-box;
padding: 14px 10px 20px;
position: relative;
z-index: 1;
}
/* 横屏侧栏:用户区 / Tab / 底按钮同一竖直中轴 */
/* 横屏侧栏:用户区 / Tab / 底按钮同一竖直中轴 */
.hf-landscape-user {
.hf-landscape-user {
width: 100%;
width: 100%;
...
@@ -135,7 +157,8 @@ function onTabItemClick(index: number): void {
...
@@ -135,7 +157,8 @@ function onTabItemClick(index: number): void {
flex-direction: column;
flex-direction: column;
align-items: center;
align-items: center;
box-sizing: border-box;
box-sizing: border-box;
padding-top: 20px;
padding-top: 0;
flex-shrink: 0;
}
}
.hf-landscape-profile {
.hf-landscape-profile {
...
@@ -145,7 +168,7 @@ function onTabItemClick(index: number): void {
...
@@ -145,7 +168,7 @@ function onTabItemClick(index: number): void {
align-items: center;
align-items: center;
}
}
/* 与 MyCenterMain .name 一致 */
/* 与 MyCenterMain .name 一致
;与 Tab 文案同宽便于视觉对齐
*/
.hf-landscape-name {
.hf-landscape-name {
margin-top: 10px;
margin-top: 10px;
font-size: 19px;
font-size: 19px;
...
@@ -153,18 +176,31 @@ function onTabItemClick(index: number): void {
...
@@ -153,18 +176,31 @@ function onTabItemClick(index: number): void {
color: #1a2433;
color: #1a2433;
line-height: 24px;
line-height: 24px;
text-align: center;
text-align: center;
max-width: 108px;
width: 100%;
max-width: 104px;
overflow: hidden;
overflow: hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
white-space: nowrap;
}
}
.hf-landscape-tab-wrap {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 0;
}
.hf-landscape-footer {
.hf-landscape-footer {
width: 100%;
width: 100%;
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
align-items: center;
align-items: center;
box-sizing: border-box;
box-sizing: border-box;
flex-shrink: 0;
margin-top: auto;
padding-bottom: 0;
}
}
.hf-landscape-footer-btn {
.hf-landscape-footer-btn {
...
@@ -225,7 +261,8 @@ function onTabItemClick(index: number): void {
...
@@ -225,7 +261,8 @@ function onTabItemClick(index: number): void {
font-size: 12px;
font-size: 12px;
color: #8a98b5;
color: #8a98b5;
text-align: center;
text-align: center;
max-width: 96px;
width: 100%;
max-width: 104px;
overflow: hidden;
overflow: hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
white-space: nowrap;
...
...
apps/uniappX/uniapp-x-tape/components/HomeFrame/styles/common.scss
View file @
8392e9a
...
@@ -407,7 +407,7 @@
...
@@ -407,7 +407,7 @@
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
position
:
relative
;
position
:
relative
;
width
:
120px
;
//
width: 120px;
flex-shrink
:
0
;
flex-shrink
:
0
;
background-image
:
linear-gradient
(
to
bottom
,
#e8f0fe
,
#e8ecf5
);
background-image
:
linear-gradient
(
to
bottom
,
#e8f0fe
,
#e8ecf5
);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment