style: 统一替换橙色渐变主题色并重构导航栏组件
- 新增 back-white.svg 和 home.svg 图标文件 - 重构 YjyfNavBar 组件,默认主题改为橙色,使用 SVG 图标 - 统一各页面导航栏为自定义组件,替换原生导航栏 - 调整所有页面背景色为 #F5F6F8,统一视觉风格 - 优化渐变背景为 135deg 线性渐变,消除分层断层 - 更新 pages.json 配置,所有页面使用自定义导航样式
这个提交包含在:
@@ -37,11 +37,11 @@
|
||||
<view class="nav-left" :style="{ width: leftWidth + 'px' }">
|
||||
<slot name="left">
|
||||
<view class="back-btn clickable-hover" v-if="canBack" @tap="handleBack">
|
||||
<text class="back-icon" :class="'icon-' + theme">‹</text>
|
||||
<image class="back-svg-icon" :src="theme === 'white' ? '/static/icons/back.svg' : '/static/icons/back-white.svg'" mode="aspectFit" />
|
||||
<text class="back-text" v-if="backText" :class="'icon-' + theme">{{ backText }}</text>
|
||||
</view>
|
||||
<view class="home-btn clickable-hover" v-else-if="canHome" @tap="handleHome">
|
||||
<text class="home-icon" :class="'icon-' + theme">⌂</text>
|
||||
<image class="home-svg-icon" :src="theme === 'white' ? '/static/icons/home.svg' : '/static/icons/home-white.svg'" mode="aspectFit" />
|
||||
</view>
|
||||
</slot>
|
||||
</view>
|
||||
@@ -72,7 +72,7 @@
|
||||
title: { type: String, default: '' },
|
||||
theme: {
|
||||
type: String,
|
||||
default: 'white', // 'white' 白底黑字 | 'orange' 橙金渐变白字 | 'transparent' 透明
|
||||
default: 'orange', // 统一默认为品牌主题色 'orange'
|
||||
validator: (v) => ['white', 'orange', 'transparent'].includes(v)
|
||||
},
|
||||
customBackground: { type: String, default: '' },
|
||||
@@ -93,7 +93,11 @@
|
||||
'pages/index/index',
|
||||
'pages/order/list',
|
||||
'pages/message/message',
|
||||
'pages/mine/mine'
|
||||
'pages/mine/mine',
|
||||
'pages/master/hall',
|
||||
'pages/master/orders',
|
||||
'pages/master/workbench',
|
||||
'pages/merchant/workbench'
|
||||
];
|
||||
|
||||
// 安全区域与各尺寸响应式变量
|
||||
@@ -328,6 +332,12 @@
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.back-svg-icon, .home-svg-icon {
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.back-text {
|
||||
font-size: 26rpx;
|
||||
margin-left: 4rpx;
|
||||
@@ -353,7 +363,7 @@
|
||||
background: #FFFFFF;
|
||||
}
|
||||
.theme-white.has-border {
|
||||
border-bottom: 1rpx solid #EFEFEF;
|
||||
border-bottom: 1rpx solid #F0F0F2;
|
||||
}
|
||||
.icon-white {
|
||||
color: #1F1F1F;
|
||||
@@ -364,7 +374,8 @@
|
||||
|
||||
/* 2. 橙金渐变主题 (orange) */
|
||||
.theme-orange {
|
||||
background: linear-gradient(135deg, #FF9436 0%, #F0710D 100%);
|
||||
background: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%);
|
||||
box-shadow: 0 4rpx 16rpx rgba(240, 113, 13, 0.12);
|
||||
}
|
||||
.icon-orange {
|
||||
color: #FFFFFF;
|
||||
|
||||
在新工单中引用
屏蔽一个用户