feat:更改图标

This commit is contained in:
李伊帆
2026-11-05 15:08:55 +08:00
parent 31fcd273f1
commit aa62bcb380
64 changed files with 81 additions and 35 deletions

9
.hbuilderx/launch.json Normal file
View File

@@ -0,0 +1,9 @@
{
"version" : "1.0",
"configurations" : [
{
"playground" : "standard",
"type" : "uni-app:app-android"
}
]
}

View File

@@ -6,11 +6,11 @@ const props = defineProps<{
}>()
const tabs: Array<{ key: TabKey, label: string, icon: string, activeIcon: string, path: string }> = [
{ key: 'home', label: '首页', icon: '/static/icons/tab-home.png', activeIcon: '/static/icons/tab-home-active.png', path: '/pages/home-index/index' },
{ key: 'case', label: '案例库', icon: '/static/icons/tab-case.png', activeIcon: '/static/icons/tab-case-active.png', path: '/pages/case-library/index' },
{ key: 'message', label: '消息中心', icon: '/static/icons/tab-message.png', activeIcon: '/static/icons/tab-message-active.png', path: '/pages/message-center/index' },
{ key: 'project', label: '项目中心', icon: '/static/icons/tab-project.png', activeIcon: '/static/icons/tab-project-active.png', path: '/pages/project-center/index' },
{ key: 'personal', label: '个人中心', icon: '/static/icons/tab-personal.png', activeIcon: '/static/icons/tab-personal-active.png', path: '/pages/personal-center/index' },
{ key: 'home', label: '首页', icon: '/static/icons/首页.png', activeIcon: '/static/icons/首页选中.png', path: '/pages/home-index/index' },
{ key: 'case', label: '案例库', icon: '/static/icons/案例库.png', activeIcon: '/static/icons/案例库选中.png', path: '/pages/case-library/index' },
{ key: 'message', label: '消息中心', icon: '/static/icons/消息中心.png', activeIcon: '/static/icons/消息中心选中.png', path: '/pages/message-center/index' },
{ key: 'project', label: '项目中心', icon: '/static/icons/项目中心.png', activeIcon: '/static/icons/项目中心选中.png', path: '/pages/project-center/index' },
{ key: 'personal', label: '个人中心', icon: '/static/icons/个人中心.png', activeIcon: '/static/icons/个人中心选中.png', path: '/pages/personal-center/index' },
]
function getTabIcon(tab: typeof tabs[number]) {

View File

@@ -4,7 +4,7 @@ export const MESSAGE_LIST: MessageItem[] = [
{
id: '1',
type: 'service',
icon: '/static/icons/icon-message-service.png',
icon: '/static/icons/message-service.png',
title: '在线客服',
preview: '您好,请问有什么可以帮您的?',
time: '刚刚',
@@ -13,7 +13,7 @@ export const MESSAGE_LIST: MessageItem[] = [
{
id: '2',
type: 'workorder',
icon: '/static/icons/icon-message-workorder.png',
icon: '/static/icons/message-workorder.png',
title: '工单状态通知',
preview: '您的「社区康养服务系统」项目已进入开发阶段,请关注进度',
time: '10:23',
@@ -21,7 +21,7 @@ export const MESSAGE_LIST: MessageItem[] = [
{
id: '3',
type: 'system',
icon: '/static/icons/icon-message-system.png',
icon: '/static/icons/message-system.png',
title: '系统通知',
preview: '平台将于2026年7月31日00:00:00进行系统维护',
time: '昨天',

View File

@@ -1,6 +1,6 @@
import type { StatusNotificationItem } from '@/types/status-notification'
export const STATUS_NOTIFICATION_ICON = '/static/icons/icon-message-workorder.png'
export const STATUS_NOTIFICATION_ICON = '/static/icons/message-workorder.png'
export const STATUS_NOTIFICATION_LIST: StatusNotificationItem[] = [
{

View File

@@ -1,6 +1,6 @@
import type { StatusNotificationItem } from '@/types/status-notification'
export const SYSTEM_NOTIFICATION_ICON = '/static/icons/icon-message-system.png'
export const SYSTEM_NOTIFICATION_ICON = '/static/icons/message-system.png'
export const SYSTEM_NOTIFICATION_LIST: StatusNotificationItem[] = [
{

View File

@@ -1,10 +1,20 @@
<script setup lang="ts">
import { onMounted } from 'vue'
import { isLoggedIn } from '@/utils/auth-guard'
import { ensureAuthClientId } from '@/utils/auth-storage'
const SPLASH_DURATION = 3000
onMounted(() => {
setTimeout(() => {
if (isLoggedIn()) {
ensureAuthClientId()
uni.redirectTo({
url: '/pages/home-index/index',
})
return
}
uni.redirectTo({
url: '/pages/Login/user-login/index',
})

View File

@@ -117,8 +117,9 @@
}
.case-favorites__quick-filter-arrow {
font-size: 20rpx;
color: $color-text-secondary;
width: 20rpx;
height: 20rpx;
margin-left: 4rpx;
}
.case-favorites__filter {

View File

@@ -14,6 +14,7 @@ import { useCaseFavorites } from '@/hooks/use-case-favorites'
import { useCaseIndustries } from '@/hooks/use-case-industries'
import type { CaseCategory, CaseFilterValues, CaseItem } from '@/types/case-library'
import filterIcon from '@/static/icons/icon-filter.svg'
import dropdownIcon from '@/static/icons/dropdown.png'
import { ensureLoggedIn } from '@/utils/auth-guard'
import { navigateBackWithFallback } from '@/utils/navigate-back'
import { cloneCaseFilter, matchCaseFilter } from '@/utils/case-filter'
@@ -254,27 +255,33 @@ function showTimePicker() {
@tap="showIndustryPicker"
>
<text>行业</text>
<text class="case-favorites__quick-filter-arrow">
∨
</text>
<image
class="case-favorites__quick-filter-arrow"
:src="dropdownIcon"
mode="aspectFit"
/>
</view>
<view
class="case-favorites__quick-filter"
@tap="showScalePicker"
>
<text>项目规模</text>
<text class="case-favorites__quick-filter-arrow">
∨
</text>
<image
class="case-favorites__quick-filter-arrow"
:src="dropdownIcon"
mode="aspectFit"
/>
</view>
<view
class="case-favorites__quick-filter"
@tap="showTimePicker"
>
<text>完成时间</text>
<text class="case-favorites__quick-filter-arrow">
∨
</text>
<image
class="case-favorites__quick-filter-arrow"
:src="dropdownIcon"
mode="aspectFit"
/>
</view>
<view
class="case-favorites__filter"

View File

@@ -118,15 +118,13 @@
justify-content: center;
width: 32rpx;
height: 32rpx;
background: #c8cdd4;
border-radius: 50%;
overflow: hidden;
}
.quick-entry-editor__badge-text {
font-size: 22rpx;
font-weight: 600;
line-height: 1;
color: #ffffff;
.quick-entry-editor__badge-icon {
width: 32rpx;
height: 32rpx;
}
.quick-entry-editor__label {

View File

@@ -61,7 +61,11 @@ const emit = defineEmits<{
class="quick-entry-editor__badge"
@tap.stop="emit('remove', item.id)"
>
<img src="@/static/icons/delete.png" alt="close">
<image
class="quick-entry-editor__badge-icon"
src="/static/icons/delete.png"
mode="aspectFit"
/>
</view>
</view>
<text class="quick-entry-editor__label">
@@ -90,7 +94,11 @@ const emit = defineEmits<{
class="quick-entry-editor__badge"
@tap.stop="emit('add', item.id)"
>
<img src="@/static/icons/add.png" alt="close">
<image
class="quick-entry-editor__badge-icon"
src="/static/icons/add.png"
mode="aspectFit"
/>
</view>
</view>
<text class="quick-entry-editor__label">

View File

@@ -34,7 +34,7 @@
display: flex;
align-items: center;
justify-content: space-between;
margin-top:85rpx
margin-top: 24rpx;
}
.home__brand {
@@ -64,6 +64,8 @@
}
.home__message-btn {
position: relative;
z-index: 2;
display: flex;
flex-shrink: 0;
align-items: center;
@@ -72,13 +74,21 @@
height: 64rpx;
margin-left: 16rpx;
border-radius: 16rpx;
overflow: visible;
}
.home__message-icon {
display: block;
width: 57.25rpx;
height: 57.25rpx;
}
.home__hi-icon {
display: block;
width: 45.8rpx;
height: 45.8rpx;
}
.home__greeting-row {
display: flex;
align-items: center;

View File

@@ -14,6 +14,9 @@ import { mapOngoingOverviewToHome } from '@/utils/map-ongoing-overview'
import { mapProjectSubmissionsToServices } from '@/utils/map-project-submission'
import { navigateQuickEntry } from '@/utils/quick-entry-navigate'
import headerBg from '@/static/icons/1.png'
import brandLogoIcon from '@/static/icons/brand-logo.png'
import messageIcon from '@/static/icons/message.png'
import hiIcon from '@/static/icons/hi.png'
import HomeBanner from './components/HomeBanner.vue'
import HomeFloatingActions from './components/HomeFloatingActions.vue'
import ProjectCard from './components/ProjectCard.vue'
@@ -120,7 +123,7 @@ const ongoingSubtitle = computed(() => {
<view class="home__brand">
<image
class="home__logo"
src="/static/icons/logos.png"
:src="brandLogoIcon"
mode="aspectFit"
/>
<text class="home__brand-name">
@@ -133,7 +136,7 @@ const ongoingSubtitle = computed(() => {
>
<image
class="home__message-icon"
src="/static/icons/icon-message.png"
:src="messageIcon"
mode="aspectFit"
/>
</view>
@@ -146,7 +149,7 @@ const ongoingSubtitle = computed(() => {
<view class="home__hi-badge">
<image
class="home__hi-icon"
src="/static/icons/hi.png"
:src="hiIcon"
mode="aspectFit"
/>
</view>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 792 B

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 789 B

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 797 B

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 919 B

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 683 B

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 715 B

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 597 B

After

Width:  |  Height:  |  Size: 932 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 623 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 623 B

After

Width:  |  Height:  |  Size: 989 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 806 B

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 829 B

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 751 B

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 932 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 733 B

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 934 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 938 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 991 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 455 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 507 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 467 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 388 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 679 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 753 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 336 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 779 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 893 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 677 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

BIN
src/static/icons/首页.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 996 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 808 B