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 @@ ...@@ -5,7 +5,7 @@
:is-footer="false" :is-footer="false"
position="bottom" position="bottom"
:title="currentView == 'brand' ? '请选择车品牌' : '请选择车系'" :title="currentView == 'brand' ? '请选择车品牌' : '请选择车系'"
:z-index="10076" :z-index="dynamicZIndex"
@close="handleMessageBoxClose"> @close="handleMessageBoxClose">
<scroll-view class="select-box" <scroll-view class="select-box"
:show-scrollbar="false" :show-scrollbar="false"
...@@ -104,6 +104,11 @@ const currentView = ref<"brand" | "series">("brand"); ...@@ -104,6 +104,11 @@ const currentView = ref<"brand" | "series">("brand");
const selectedBrandIndex = ref<number>(-1); const selectedBrandIndex = ref<number>(-1);
// 当前车系列表(根据选中品牌动态变化) // 当前车系列表(根据选中品牌动态变化)
const currentCarList = ref<Array<any>>([]); 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 watchStatus = computed<boolean>(() => {
const status = state.user?.historyStatus; const status = state.user?.historyStatus;
if (status == null) { if (status == null) {
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
</view> </view>
<scroll-view class="list" <scroll-view class="list"
direction="vertical" direction="vertical"
:show-scrollbar="true"> :show-scrollbar="false">
<AccountList v-if="stepIndex == 0" <AccountList v-if="stepIndex == 0"
ref="accountRef" ref="accountRef"
@choose-account="chooseAccount" /> @choose-account="chooseAccount" />
...@@ -169,14 +169,12 @@ const chooseMerchant = (userInfo: any): void => { ...@@ -169,14 +169,12 @@ const chooseMerchant = (userInfo: any): void => {
height: 100%; height: 100%;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
.bg { .bg {
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 100%; height: 100%;
left: 0; left: 0;
top: 0; top: 0;
.bg-image { .bg-image {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -193,8 +191,7 @@ const chooseMerchant = (userInfo: any): void => { ...@@ -193,8 +191,7 @@ const chooseMerchant = (userInfo: any): void => {
box-sizing: border-box; box-sizing: border-box;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
position: relative; display: flex;
.nav-wrap { .nav-wrap {
width: 100%; width: 100%;
height: 66px; height: 66px;
...@@ -217,7 +214,6 @@ const chooseMerchant = (userInfo: any): void => { ...@@ -217,7 +214,6 @@ const chooseMerchant = (userInfo: any): void => {
} }
.step-box { .step-box {
position: absolute;
height: 44px; height: 44px;
border-radius: 14px; border-radius: 14px;
background: transparent; background: transparent;
...@@ -226,7 +222,6 @@ const chooseMerchant = (userInfo: any): void => { ...@@ -226,7 +222,6 @@ const chooseMerchant = (userInfo: any): void => {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
box-sizing: border-box; box-sizing: border-box;
.step-item { .step-item {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
...@@ -284,14 +279,15 @@ const chooseMerchant = (userInfo: any): void => { ...@@ -284,14 +279,15 @@ const chooseMerchant = (userInfo: any): void => {
} }
.content-box { .content-box {
position: absolute; position:absolute;
top:60px;
flex: 1; flex: 1;
width: 86%; width: 86%;
box-sizing: border-box; box-sizing: border-box;
margin: 0 auto 2px; margin: 0 10px 2px;
padding-top: 0; padding-top: 0;
border-radius: 20px; border-radius: 20px;
background: rgba(255, 255, 255, 0.36); //ba ckground: rgba(255, 255, 255, 0.36);
flex-direction: column; flex-direction: column;
overflow: hidden; overflow: hidden;
min-height: 0; min-height: 0;
...@@ -300,7 +296,6 @@ const chooseMerchant = (userInfo: any): void => { ...@@ -300,7 +296,6 @@ const chooseMerchant = (userInfo: any): void => {
.search-box { .search-box {
margin: 0 12px 12px; margin: 0 12px 12px;
position: relative; position: relative;
.search-input { .search-input {
width: 100%; width: 100%;
height: 42px; height: 42px;
...@@ -310,7 +305,6 @@ const chooseMerchant = (userInfo: any): void => { ...@@ -310,7 +305,6 @@ const chooseMerchant = (userInfo: any): void => {
padding: 0 8px; padding: 0 8px;
position: relative; position: relative;
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
.input { .input {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!