style: 统一全局字号层级,首页快捷入口改为单行

正文统一 28rpx,小字整体上调一级;快捷入口所有项目单行等分展示。
This commit is contained in:
lik
2026-11-10 21:13:34 +08:00
parent 3bca677f30
commit 1d8af0cb26
17 changed files with 132 additions and 142 deletions
+11 -11
View File
@@ -10,22 +10,22 @@ function resolveDisplayStatus(order) {
return order?.status || 'pending'
}
// 快捷入口:type=quick 为快捷操作(琥珀浅色系),type=function 为功能入口(暖铜主色系),分行显示。
// 快捷入口:琥珀浅色系为快捷操作,暖铜主色系为功能入口,统一在一行内展示。
// 管理员与陪诊员共用同一套入口配置,但陪诊员不展示档案/客户等管理员能力
const ADMIN_ENTRIES = [
{ type: 'quick', icon: 'add-circle', name: '增加预约', url: '/pages/order/orderEdit', color: '#E8A96B' },
{ type: 'quick', icon: 'file-add', name: '增加档案', url: '/pages/healthprofile/profileInfo', color: '#E8A96B' },
{ type: 'quick', icon: 'lightbulb-circle-filled', name: 'AI办公', url: '/pages/ai/index', isTab: true, color: '#E8A96B' },
{ type: 'function', icon: 'bill', name: '预约订单', url: '/pages/order/index', isTab: true, color: '#C26A2E' },
{ type: 'function', icon: 'heart', name: '健康档案', url: '/pages/healthprofile/index', color: '#C26A2E' },
{ type: 'function', icon: 'user', name: '注册用户', url: '/pages/customer/index', color: '#C26A2E' },
{ type: 'function', icon: 'user-circle', name: '个人信息', url: '/pages/me/index', color: '#C26A2E' }
{ icon: 'add-circle', name: '增加预约', url: '/pages/order/orderEdit', color: '#E8A96B' },
{ icon: 'file-add', name: '增加档案', url: '/pages/healthprofile/profileInfo', color: '#E8A96B' },
{ icon: 'lightbulb-circle-filled', name: 'AI办公', url: '/pages/ai/index', isTab: true, color: '#E8A96B' },
{ icon: 'bill', name: '预约订单', url: '/pages/order/index', isTab: true, color: '#C26A2E' },
{ icon: 'heart', name: '健康档案', url: '/pages/healthprofile/index', color: '#C26A2E' },
{ icon: 'user', name: '注册用户', url: '/pages/customer/index', color: '#C26A2E' },
{ icon: 'user-circle', name: '个人信息', url: '/pages/me/index', color: '#C26A2E' }
]
const ATTENDANT_ENTRIES = [
{ type: 'quick', icon: 'lightbulb-circle-filled', name: 'AI办公', url: '/pages/ai/index', isTab: true, color: '#E8A96B' },
{ type: 'function', icon: 'bill', name: '预约订单', url: '/pages/order/index', isTab: true, color: '#C26A2E' },
{ type: 'function', icon: 'user-circle', name: '个人信息', url: '/pages/me/index', color: '#C26A2E' }
{ icon: 'lightbulb-circle-filled', name: 'AI办公', url: '/pages/ai/index', isTab: true, color: '#E8A96B' },
{ icon: 'bill', name: '预约订单', url: '/pages/order/index', isTab: true, color: '#C26A2E' },
{ icon: 'user-circle', name: '个人信息', url: '/pages/me/index', color: '#C26A2E' }
]
Page({
+4 -14
View File
@@ -55,21 +55,11 @@
<view class="section">
<text class="section-title">快捷入口</text>
<view class="quick-grid card">
<view class="quick-row">
<view class="quick-item" wx:for="{{quickEntries}}" wx:key="name" wx:if="{{item.type === 'quick'}}" bindtap="onEntryTap" data-index="{{index}}">
<view class="quick-icon" style="background-color: {{item.color}}1a;">
<t-icon name="{{item.icon}}" size="40rpx" color="{{item.color}}" />
</view>
<text class="quick-label">{{item.name}}</text>
</view>
</view>
<view class="quick-row">
<view class="quick-item" wx:for="{{quickEntries}}" wx:key="name" wx:if="{{item.type === 'function'}}" bindtap="onEntryTap" data-index="{{index}}">
<view class="quick-icon" style="background-color: {{item.color}}1a;">
<t-icon name="{{item.icon}}" size="40rpx" color="{{item.color}}" />
</view>
<text class="quick-label">{{item.name}}</text>
<view class="quick-item" wx:for="{{quickEntries}}" wx:key="name" bindtap="onEntryTap" data-index="{{index}}">
<view class="quick-icon" style="background-color: {{item.color}}1a;">
<t-icon name="{{item.icon}}" size="36rpx" color="{{item.color}}" />
</view>
<text class="quick-label">{{item.name}}</text>
</view>
</view>
</view>
+22 -26
View File
@@ -107,14 +107,14 @@ page {
}
.level-text {
font-size: 20rpx;
font-size: 22rpx;
color: #ffffff;
}
.greeting {
display: block;
margin-top: 8rpx;
font-size: 22rpx;
font-size: 24rpx;
color: rgba(255, 255, 255, 0.65);
}
@@ -131,7 +131,7 @@ page {
.intern-tip-text {
margin-left: 12rpx;
font-size: 24rpx;
font-size: 26rpx;
line-height: 1.5;
color: #8A5A32;
}
@@ -146,7 +146,7 @@ page {
}
.switch-text {
font-size: 24rpx;
font-size: 26rpx;
margin-right: 10rpx;
color: #ffffff;
}
@@ -201,7 +201,7 @@ page {
}
.stat-label {
font-size: 24rpx;
font-size: 26rpx;
color: rgba(255, 255, 255, 0.75);
}
@@ -213,7 +213,7 @@ page {
}
.stat-unit {
font-size: 26rpx;
font-size: 28rpx;
margin-right: 4rpx;
}
@@ -260,7 +260,7 @@ page {
.view-all {
display: flex;
align-items: center;
font-size: 24rpx;
font-size: 26rpx;
color: #A3988B;
}
@@ -274,22 +274,17 @@ page {
.quick-grid {
margin-top: 16rpx;
padding: 32rpx 8rpx 8rpx;
padding: 32rpx 0;
display: flex;
flex-wrap: wrap;
}
.quick-row {
display: flex;
width: 100%;
flex-wrap: nowrap;
}
.quick-item {
width: 25%;
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 32rpx;
transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
@@ -299,19 +294,20 @@ page {
}
.quick-icon {
width: 88rpx;
height: 88rpx;
border-radius: 26rpx;
width: 72rpx;
height: 72rpx;
border-radius: 22rpx;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 14rpx;
margin-bottom: 12rpx;
box-shadow: inset 0 2rpx 4rpx rgba(255, 255, 255, 0.8), 0 4rpx 10rpx rgba(90, 62, 42, 0.06);
}
.quick-label {
font-size: 26rpx;
font-size: 24rpx;
color: #5C5044;
white-space: nowrap;
}
/* === 订单列表 === */
@@ -348,7 +344,7 @@ page {
}
.order-service {
font-size: 26rpx;
font-size: 28rpx;
font-weight: 500;
color: #C26A2E;
flex: 1;
@@ -358,7 +354,7 @@ page {
}
.status-tag {
font-size: 22rpx;
font-size: 24rpx;
padding: 6rpx 20rpx;
border-radius: 30rpx;
font-weight: 500;
@@ -403,7 +399,7 @@ page {
}
.order-hospital {
font-size: 26rpx;
font-size: 28rpx;
color: #8A8078;
flex: 1;
overflow: hidden;
@@ -413,7 +409,7 @@ page {
}
.order-time {
font-size: 26rpx;
font-size: 28rpx;
color: #A3988B;
flex-shrink: 0;
}
@@ -432,6 +428,6 @@ page {
.empty-text {
margin-top: 16rpx;
font-size: 26rpx;
font-size: 28rpx;
color: #C7BDB2;
}