fix(miniprogram): left-align headers, raise workbench bar, drop dashboard username

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-09-12 19:01:37 +08:00
1 parent 335dd842be
commit aa2da07c99
23 files changed
+40 -48

No files matched your search

@@ -5,8 +5,8 @@
<view class="topbar-back" @click="onBack">
<text class="topbar-back-icon">‹</text>
</view>
<text class="topbar-title">{{ pageTitle }}</text>
</view>
<text class="topbar-title">{{ pageTitle }}</text>
<view class="topbar-right" />
</view>
+1 -1
View File
@@ -5,8 +5,8 @@
<view class="topbar-back" @click="onBack">
<text class="topbar-back-icon">‹</text>
</view>
<text class="topbar-title">费用项目管理</text>
</view>
<text class="topbar-title">费用项目管理</text>
<view class="topbar-right" />
</view>
+1 -1
View File
@@ -5,8 +5,8 @@
<view class="topbar-back" @click="goBack">
<text class="topbar-back-icon">‹</text>
</view>
<text class="topbar-title">备用金申请</text>
</view>
<text class="topbar-title">备用金申请</text>
<view class="topbar-right" />
</view>
+1 -1
View File
@@ -5,8 +5,8 @@
<view class="topbar-back" @click="goBack">
<text class="topbar-back-icon">‹</text>
</view>
<text class="topbar-title">备用金详情</text>
</view>
<text class="topbar-title">备用金详情</text>
<view class="topbar-right" />
</view>
+1 -1
View File
@@ -5,8 +5,8 @@
<view class="topbar-back" @click="goBack">
<text class="topbar-back-icon">‹</text>
</view>
<text class="topbar-title">备用金申请</text>
</view>
<text class="topbar-title">备用金申请</text>
<view class="topbar-right" />
</view>
+1 -1
View File
@@ -5,8 +5,8 @@
<view class="topbar-back" @click="goBack">
<text class="topbar-back-icon">‹</text>
</view>
<text class="topbar-title">全部申请单</text>
</view>
<text class="topbar-title">全部申请单</text>
<view class="topbar-right" />
</view>
+2 -2
View File
@@ -5,10 +5,10 @@
<view class="topbar-back" @click="onBack">
<text class="topbar-back-icon">‹</text>
</view>
</view>
<text class="topbar-title">{{
<text class="topbar-title">{{
detailUser ? detailUser.ownerUserName || '发票夹详情' : '发票夹管理'
}}</text>
</view>
<view class="topbar-right" />
</view>
+1 -1
View File
@@ -5,8 +5,8 @@
<view class="topbar-back" @click="goBack">
<text class="topbar-back-icon">‹</text>
</view>
<text class="topbar-title">我的发票夹</text>
</view>
<text class="topbar-title">我的发票夹</text>
<view class="topbar-right" />
</view>
+1 -1
View File
@@ -5,8 +5,8 @@
<view class="topbar-back" @click="goBack">
<text class="topbar-back-icon">‹</text>
</view>
<text class="topbar-title">我的申请单</text>
</view>
<text class="topbar-title">我的申请单</text>
<view class="topbar-right" />
</view>
+1 -1
View File
@@ -5,8 +5,8 @@
<view class="topbar-back" @click="goBack">
<text class="topbar-back-icon">‹</text>
</view>
<text class="topbar-title">报销申请</text>
</view>
<text class="topbar-title">报销申请</text>
<view class="topbar-right" />
</view>
+1 -1
View File
@@ -5,8 +5,8 @@
<view class="topbar-back" @click="goBack">
<text class="topbar-back-icon">‹</text>
</view>
<text class="topbar-title">报销详情</text>
</view>
<text class="topbar-title">报销详情</text>
<view class="topbar-right" />
</view>
+1 -1
View File
@@ -5,8 +5,8 @@
<view class="topbar-back" @click="goBack">
<text class="topbar-back-icon">‹</text>
</view>
<text class="topbar-title">报销申请</text>
</view>
<text class="topbar-title">报销申请</text>
<view class="topbar-right" />
</view>
+1 -4
View File
@@ -6,8 +6,7 @@
<text class="db-header__back" @click="goWorkbench">←</text>
<text class="db-header__title">仪表盘</text>
</view>
<text class="db-header__user">{{ username }}</text>
<view />
<view /><!-- 胶囊占位 -->
</view>
</view>
@@ -72,8 +71,6 @@ const outboundByCargo = ref([])
const inboundByPartner = ref([])
const outboundByPartner = ref([])
const username = computed(() => userStore.userInfo?.username || userStore.userInfo?.realName || '用户')
const inboundCount = computed(() => {
const set = new Set()
inboundByCargo.value.forEach((i) => {
+1 -2
View File
@@ -6,8 +6,7 @@
<text class="db-header__back" @click="goBack">←</text>
<text class="db-header__title">{{ title }}</text>
</view>
<view />
<view />
<view /><!-- 胶囊占位 -->
</view>
</view>
+1 -2
View File
@@ -6,8 +6,7 @@
<text class="db-header__back" @click="goBack">←</text>
<text class="db-header__title">出入库管理</text>
</view>
<view />
<view />
<view /><!-- 胶囊占位 -->
</view>
</view>
+1 -2
View File
@@ -6,8 +6,7 @@
<text class="db-header__back" @click="goBack">←</text>
<text class="db-header__title">{{ title }}</text>
</view>
<view />
<view />
<view /><!-- 胶囊占位 -->
</view>
</view>
+1 -2
View File
@@ -6,8 +6,7 @@
<text class="db-header__back" @click="goBack">←</text>
<text class="db-header__title">计划管理</text>
</view>
<view />
<view />
<view /><!-- 胶囊占位 -->
</view>
</view>
+1 -2
View File
@@ -6,8 +6,7 @@
<text class="db-header__back" @click="goBack">←</text>
<text class="db-header__title">{{ title }}</text>
</view>
<view />
<view />
<view /><!-- 胶囊占位 -->
</view>
</view>
+1 -2
View File
@@ -6,8 +6,7 @@
<text class="db-header__back" @click="goBack">←</text>
<text class="db-header__title">地磅单管理</text>
</view>
<view />
<view />
<view /><!-- 胶囊占位 -->
</view>
</view>
+6 -4
View File
@@ -76,7 +76,7 @@
top: 0;
z-index: 50;
display: grid;
grid-template-columns: minmax(0, 1fr) auto var(--sq-capsule-right-safe, 96px);
grid-template-columns: minmax(0, 1fr) var(--sq-capsule-right-safe, 96px);
align-items: center;
height: var(--sq-header-height, calc(44px + 44px));
padding: var(--sq-safe-top, 44px) 12px 0;
@@ -110,6 +110,7 @@
display: flex;
align-items: center;
justify-content: flex-start;
gap: 4px;
min-width: 0;
}
@@ -121,6 +122,7 @@
justify-content: center;
color: var(--text);
border-radius: 10px;
flex-shrink: 0;
}
.bx-page .topbar-back:active {
@@ -134,11 +136,10 @@
}
.bx-page .topbar-title {
justify-self: center;
text-align: center;
text-align: left;
font-size: 17px;
font-weight: 800;
max-width: 220px;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -146,6 +147,7 @@
.bx-page .topbar-right {
min-width: 0;
min-height: 1px;
}
/* Search */
+4 -11
View File
@@ -22,7 +22,7 @@
.db-header__nav {
height: var(--sq-nav-height, 44px);
display: grid;
grid-template-columns: auto minmax(0, 1fr) var(--sq-capsule-right-safe, 96px);
grid-template-columns: minmax(0, 1fr) var(--sq-capsule-right-safe, 96px);
align-items: center;
padding: 0 12px 0 8px;
box-sizing: border-box;
@@ -31,6 +31,7 @@
.db-header__left {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 8px;
min-width: 0;
}
@@ -39,27 +40,19 @@
font-size: 20px;
color: #333;
padding: 4px 8px;
flex-shrink: 0;
}
.db-header__title {
font-size: 17px;
font-weight: 700;
color: #111827;
text-align: left;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.db-header__user {
font-size: 12px;
color: #6b7280;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: right;
padding-right: 4px;
}
.db-search-wrap {
padding: 8px 12px 0;
background: #fff;
+1
View File
@@ -9,6 +9,7 @@
align-items: center;
justify-content: space-between;
gap: 24rpx;
width: 100%;
}
.mp-subpage-back {
+9 -4
View File
@@ -49,16 +49,17 @@ page {
}
.mp-header--workbench {
/* 去掉魔法 40px 双叠加;仅用 safe-top + 内容间距 */
padding-top: calc(48rpx + var(--sq-safe-top, env(safe-area-inset-top, 0px)));
padding-bottom: 56rpx;
min-height: calc(200rpx + var(--sq-safe-top, 0px));
/* 加高头部:标题左、用户信息右,并避开胶囊 */
padding-top: calc(72rpx + var(--sq-safe-top, env(safe-area-inset-top, 0px)));
padding-bottom: 72rpx;
min-height: calc(280rpx + var(--sq-safe-top, 0px));
box-sizing: border-box;
}
.mp-header__main {
flex: 1;
min-width: 0;
text-align: left;
}
.mp-header__title {
@@ -66,6 +67,7 @@ page {
font-size: 36rpx;
font-weight: 700;
line-height: 1.3;
text-align: left;
}
.mp-header__meta {
@@ -73,6 +75,7 @@ page {
font-size: 24rpx;
opacity: 0.9;
line-height: 1.4;
text-align: left;
}
.mp-header__user-stack {
@@ -83,6 +86,8 @@ page {
gap: 8rpx;
flex-shrink: 0;
max-width: 42%;
text-align: right;
margin-left: auto;
}
.mp-header__user-name {