From 7eebd7981c1f5d2c569556d1e87f7818cef18cce Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期四, 21 八月 2025 13:15:15 +0800 Subject: [PATCH] 1.样式修改 --- src/pages/sales/salesAccount/index.vue | 78 ++------------------------------------ 1 files changed, 5 insertions(+), 73 deletions(-) diff --git a/src/pages/sales/salesAccount/index.vue b/src/pages/sales/salesAccount/index.vue index e4756ed..92f3557 100644 --- a/src/pages/sales/salesAccount/index.vue +++ b/src/pages/sales/salesAccount/index.vue @@ -1,14 +1,7 @@ <template> <view class="sales-account"> - <!-- 椤甸潰澶撮儴 --> - <van-nav-bar - title="閿�鍞彴璐�" - left-text="杩斿洖" - left-arrow - @click-left="goBack" - fixed - placeholder - /> + <!-- 浣跨敤閫氱敤椤甸潰澶撮儴缁勪欢 --> + <PageHeader title="閿�鍞彴璐�" @back="goBack" /> <!-- 鎼滅储鍜岀瓫閫夊尯鍩� --> <view class="search-filter-section"> @@ -103,6 +96,7 @@ import { onShow } from '@dcloudio/uni-app'; import {ledgerListPage} from "@/api/salesManagement/salesLedger"; import useUserStore from "@/store/modules/user"; +import PageHeader from "@/components/PageHeader.vue"; const userStore = useUserStore() // 鎼滅储鍏抽敭璇� @@ -195,70 +189,7 @@ position: relative; } -.page-header { - background: #ffffff; - padding: 16px 20px; - display: flex; - align-items: center; - justify-content: space-between; - border-bottom: 1px solid #f0f0f0; - position: sticky; - /* 鍏煎 iOS 鍒樻捣/鐏靛姩宀涘畨鍏ㄥ尯 */ - padding-top: env(safe-area-inset-top); - top: 0; - z-index: 100; -} -.header-left { - display: flex; - align-items: center; - gap: 8px; -} - -.nav-icon { - width: 24px; - height: 24px; - background: #2979ff; - border-radius: 4px; - display: flex; - align-items: center; - justify-content: center; -} - -.nav-text { - font-size: 14px; - color: #2979ff; - font-weight: 500; -} - -.header-center { - flex: 1; - text-align: center; -} - -.page-title { - font-size: 18px; - font-weight: 600; - color: #333; -} - -.header-right { - display: flex; - align-items: center; -} - -.status-bar { - display: flex; - align-items: center; - gap: 4px; -} - -.signal, .wifi, .battery { - width: 16px; - height: 8px; - background: #333; - border-radius: 2px; -} .search-filter-section { padding: 10px 20px; @@ -405,7 +336,7 @@ .fab-button { position: fixed; - bottom: 30px; + bottom: calc(30px + env(safe-area-inset-bottom)); right: 30px; width: 56px; height: 56px; @@ -416,5 +347,6 @@ justify-content: center; box-shadow: 0 4px 16px rgba(41, 121, 255, 0.3); z-index: 1000; + /* 纭繚娴姩鎸夐挳涓嶈搴曢儴瀹夊叏鍖哄煙閬尅 */ } </style> -- Gitblit v1.9.3