Commit 8eaee81a by liimin

style(ui): 优化组件样式和 z-index 计算

- 为 CarBrands 组件添加动态 z-index 计算,确保弹窗层级正确
- 将 accountItems 页面滚动条设置为隐藏
- 移除 accountItems 页面多余的位置定位样式
- 调整 content-box 的位置和边距样式
- 注释掉背景透明度样式避免视觉干扰
- 整理 ReceptionHome 和 center 页面的多余空行和注释
- 优化 ReceptionCenter 页面的布局样式和间距设置
1 parent bf9d8bf0
......@@ -5,7 +5,7 @@
:is-footer="false"
position="bottom"
:title="currentView == 'brand' ? '请选择车品牌' : '请选择车系'"
:z-index="10076"
:z-index="dynamicZIndex"
@close="handleMessageBoxClose">
<scroll-view class="select-box"
:show-scrollbar="false"
......@@ -104,6 +104,11 @@ const currentView = ref<"brand" | "series">("brand");
const selectedBrandIndex = ref<number>(-1);
// 当前车系列表(根据选中品牌动态变化)
const currentCarList = ref<Array<any>>([]);
// 动态计算 z-index,确保始终在最上层(高于 ToolBox 的 10073)
const dynamicZIndex = computed<number>(() => {
return 10090 + (currentView.value == "series" ? 1 : 0);
});
const watchStatus = computed<boolean>(() => {
const status = state.user?.historyStatus;
if (status == null) {
......
......@@ -57,7 +57,7 @@
</view>
<scroll-view class="list"
direction="vertical"
:show-scrollbar="true">
:show-scrollbar="false">
<AccountList v-if="stepIndex == 0"
ref="accountRef"
@choose-account="chooseAccount" />
......@@ -169,14 +169,12 @@ const chooseMerchant = (userInfo: any): void => {
height: 100%;
position: relative;
overflow: hidden;
.bg {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
.bg-image {
width: 100%;
height: 100%;
......@@ -193,8 +191,7 @@ const chooseMerchant = (userInfo: any): void => {
box-sizing: border-box;
flex-direction: column;
align-items: center;
position: relative;
display: flex;
.nav-wrap {
width: 100%;
height: 66px;
......@@ -217,7 +214,6 @@ const chooseMerchant = (userInfo: any): void => {
}
.step-box {
position: absolute;
height: 44px;
border-radius: 14px;
background: transparent;
......@@ -226,7 +222,6 @@ const chooseMerchant = (userInfo: any): void => {
align-items: center;
justify-content: center;
box-sizing: border-box;
.step-item {
display: flex;
flex-direction: row;
......@@ -284,14 +279,15 @@ const chooseMerchant = (userInfo: any): void => {
}
.content-box {
position: absolute;
position:absolute;
top:60px;
flex: 1;
width: 86%;
box-sizing: border-box;
margin: 0 auto 2px;
margin: 0 10px 2px;
padding-top: 0;
border-radius: 20px;
background: rgba(255, 255, 255, 0.36);
//ba ckground: rgba(255, 255, 255, 0.36);
flex-direction: column;
overflow: hidden;
min-height: 0;
......@@ -300,7 +296,6 @@ const chooseMerchant = (userInfo: any): void => {
.search-box {
margin: 0 12px 12px;
position: relative;
.search-input {
width: 100%;
height: 42px;
......@@ -310,7 +305,6 @@ const chooseMerchant = (userInfo: any): void => {
padding: 0 8px;
position: relative;
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
.input {
display: flex;
flex-direction: row;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!