feat:更改图标
9
.hbuilderx/launch.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"version" : "1.0",
|
||||||
|
"configurations" : [
|
||||||
|
{
|
||||||
|
"playground" : "standard",
|
||||||
|
"type" : "uni-app:app-android"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -6,11 +6,11 @@ const props = defineProps<{
|
|||||||
}>()
|
}>()
|
||||||
|
|
||||||
const tabs: Array<{ key: TabKey, label: string, icon: string, activeIcon: string, path: string }> = [
|
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: 'home', label: '首页', icon: '/static/icons/首页.png', activeIcon: '/static/icons/首页选中.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: 'case', label: '案例库', icon: '/static/icons/案例库.png', activeIcon: '/static/icons/案例库选中.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: 'message', label: '消息中心', icon: '/static/icons/消息中心.png', activeIcon: '/static/icons/消息中心选中.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: 'project', label: '项目中心', icon: '/static/icons/项目中心.png', activeIcon: '/static/icons/项目中心选中.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: 'personal', label: '个人中心', icon: '/static/icons/个人中心.png', activeIcon: '/static/icons/个人中心选中.png', path: '/pages/personal-center/index' },
|
||||||
]
|
]
|
||||||
|
|
||||||
function getTabIcon(tab: typeof tabs[number]) {
|
function getTabIcon(tab: typeof tabs[number]) {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ export const MESSAGE_LIST: MessageItem[] = [
|
|||||||
{
|
{
|
||||||
id: '1',
|
id: '1',
|
||||||
type: 'service',
|
type: 'service',
|
||||||
icon: '/static/icons/icon-message-service.png',
|
icon: '/static/icons/message-service.png',
|
||||||
title: '在线客服',
|
title: '在线客服',
|
||||||
preview: '您好,请问有什么可以帮您的?',
|
preview: '您好,请问有什么可以帮您的?',
|
||||||
time: '刚刚',
|
time: '刚刚',
|
||||||
@@ -13,7 +13,7 @@ export const MESSAGE_LIST: MessageItem[] = [
|
|||||||
{
|
{
|
||||||
id: '2',
|
id: '2',
|
||||||
type: 'workorder',
|
type: 'workorder',
|
||||||
icon: '/static/icons/icon-message-workorder.png',
|
icon: '/static/icons/message-workorder.png',
|
||||||
title: '工单状态通知',
|
title: '工单状态通知',
|
||||||
preview: '您的「社区康养服务系统」项目已进入开发阶段,请关注进度',
|
preview: '您的「社区康养服务系统」项目已进入开发阶段,请关注进度',
|
||||||
time: '10:23',
|
time: '10:23',
|
||||||
@@ -21,7 +21,7 @@ export const MESSAGE_LIST: MessageItem[] = [
|
|||||||
{
|
{
|
||||||
id: '3',
|
id: '3',
|
||||||
type: 'system',
|
type: 'system',
|
||||||
icon: '/static/icons/icon-message-system.png',
|
icon: '/static/icons/message-system.png',
|
||||||
title: '系统通知',
|
title: '系统通知',
|
||||||
preview: '平台将于2026年7月31日00:00:00进行系统维护',
|
preview: '平台将于2026年7月31日00:00:00进行系统维护',
|
||||||
time: '昨天',
|
time: '昨天',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { StatusNotificationItem } from '@/types/status-notification'
|
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[] = [
|
export const STATUS_NOTIFICATION_LIST: StatusNotificationItem[] = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { StatusNotificationItem } from '@/types/status-notification'
|
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[] = [
|
export const SYSTEM_NOTIFICATION_LIST: StatusNotificationItem[] = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,20 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted } from 'vue'
|
import { onMounted } from 'vue'
|
||||||
|
import { isLoggedIn } from '@/utils/auth-guard'
|
||||||
|
import { ensureAuthClientId } from '@/utils/auth-storage'
|
||||||
|
|
||||||
const SPLASH_DURATION = 3000
|
const SPLASH_DURATION = 3000
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
if (isLoggedIn()) {
|
||||||
|
ensureAuthClientId()
|
||||||
|
uni.redirectTo({
|
||||||
|
url: '/pages/home-index/index',
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url: '/pages/Login/user-login/index',
|
url: '/pages/Login/user-login/index',
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -117,8 +117,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.case-favorites__quick-filter-arrow {
|
.case-favorites__quick-filter-arrow {
|
||||||
font-size: 20rpx;
|
width: 20rpx;
|
||||||
color: $color-text-secondary;
|
height: 20rpx;
|
||||||
|
margin-left: 4rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.case-favorites__filter {
|
.case-favorites__filter {
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import { useCaseFavorites } from '@/hooks/use-case-favorites'
|
|||||||
import { useCaseIndustries } from '@/hooks/use-case-industries'
|
import { useCaseIndustries } from '@/hooks/use-case-industries'
|
||||||
import type { CaseCategory, CaseFilterValues, CaseItem } from '@/types/case-library'
|
import type { CaseCategory, CaseFilterValues, CaseItem } from '@/types/case-library'
|
||||||
import filterIcon from '@/static/icons/icon-filter.svg'
|
import filterIcon from '@/static/icons/icon-filter.svg'
|
||||||
|
import dropdownIcon from '@/static/icons/dropdown.png'
|
||||||
import { ensureLoggedIn } from '@/utils/auth-guard'
|
import { ensureLoggedIn } from '@/utils/auth-guard'
|
||||||
import { navigateBackWithFallback } from '@/utils/navigate-back'
|
import { navigateBackWithFallback } from '@/utils/navigate-back'
|
||||||
import { cloneCaseFilter, matchCaseFilter } from '@/utils/case-filter'
|
import { cloneCaseFilter, matchCaseFilter } from '@/utils/case-filter'
|
||||||
@@ -254,27 +255,33 @@ function showTimePicker() {
|
|||||||
@tap="showIndustryPicker"
|
@tap="showIndustryPicker"
|
||||||
>
|
>
|
||||||
<text>行业</text>
|
<text>行业</text>
|
||||||
<text class="case-favorites__quick-filter-arrow">
|
<image
|
||||||
∨
|
class="case-favorites__quick-filter-arrow"
|
||||||
</text>
|
:src="dropdownIcon"
|
||||||
|
mode="aspectFit"
|
||||||
|
/>
|
||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
class="case-favorites__quick-filter"
|
class="case-favorites__quick-filter"
|
||||||
@tap="showScalePicker"
|
@tap="showScalePicker"
|
||||||
>
|
>
|
||||||
<text>项目规模</text>
|
<text>项目规模</text>
|
||||||
<text class="case-favorites__quick-filter-arrow">
|
<image
|
||||||
∨
|
class="case-favorites__quick-filter-arrow"
|
||||||
</text>
|
:src="dropdownIcon"
|
||||||
|
mode="aspectFit"
|
||||||
|
/>
|
||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
class="case-favorites__quick-filter"
|
class="case-favorites__quick-filter"
|
||||||
@tap="showTimePicker"
|
@tap="showTimePicker"
|
||||||
>
|
>
|
||||||
<text>完成时间</text>
|
<text>完成时间</text>
|
||||||
<text class="case-favorites__quick-filter-arrow">
|
<image
|
||||||
∨
|
class="case-favorites__quick-filter-arrow"
|
||||||
</text>
|
:src="dropdownIcon"
|
||||||
|
mode="aspectFit"
|
||||||
|
/>
|
||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
class="case-favorites__filter"
|
class="case-favorites__filter"
|
||||||
|
|||||||
@@ -118,15 +118,13 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 32rpx;
|
width: 32rpx;
|
||||||
height: 32rpx;
|
height: 32rpx;
|
||||||
background: #c8cdd4;
|
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.quick-entry-editor__badge-text {
|
.quick-entry-editor__badge-icon {
|
||||||
font-size: 22rpx;
|
width: 32rpx;
|
||||||
font-weight: 600;
|
height: 32rpx;
|
||||||
line-height: 1;
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.quick-entry-editor__label {
|
.quick-entry-editor__label {
|
||||||
|
|||||||
@@ -61,7 +61,11 @@ const emit = defineEmits<{
|
|||||||
class="quick-entry-editor__badge"
|
class="quick-entry-editor__badge"
|
||||||
@tap.stop="emit('remove', item.id)"
|
@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>
|
||||||
</view>
|
</view>
|
||||||
<text class="quick-entry-editor__label">
|
<text class="quick-entry-editor__label">
|
||||||
@@ -90,7 +94,11 @@ const emit = defineEmits<{
|
|||||||
class="quick-entry-editor__badge"
|
class="quick-entry-editor__badge"
|
||||||
@tap.stop="emit('add', item.id)"
|
@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>
|
||||||
</view>
|
</view>
|
||||||
<text class="quick-entry-editor__label">
|
<text class="quick-entry-editor__label">
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-top:85rpx
|
margin-top: 24rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.home__brand {
|
.home__brand {
|
||||||
@@ -64,6 +64,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.home__message-btn {
|
.home__message-btn {
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -72,13 +74,21 @@
|
|||||||
height: 64rpx;
|
height: 64rpx;
|
||||||
margin-left: 16rpx;
|
margin-left: 16rpx;
|
||||||
border-radius: 16rpx;
|
border-radius: 16rpx;
|
||||||
|
overflow: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
.home__message-icon {
|
.home__message-icon {
|
||||||
|
display: block;
|
||||||
width: 57.25rpx;
|
width: 57.25rpx;
|
||||||
height: 57.25rpx;
|
height: 57.25rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.home__hi-icon {
|
||||||
|
display: block;
|
||||||
|
width: 45.8rpx;
|
||||||
|
height: 45.8rpx;
|
||||||
|
}
|
||||||
|
|
||||||
.home__greeting-row {
|
.home__greeting-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
@@ -14,6 +14,9 @@ import { mapOngoingOverviewToHome } from '@/utils/map-ongoing-overview'
|
|||||||
import { mapProjectSubmissionsToServices } from '@/utils/map-project-submission'
|
import { mapProjectSubmissionsToServices } from '@/utils/map-project-submission'
|
||||||
import { navigateQuickEntry } from '@/utils/quick-entry-navigate'
|
import { navigateQuickEntry } from '@/utils/quick-entry-navigate'
|
||||||
import headerBg from '@/static/icons/1.png'
|
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 HomeBanner from './components/HomeBanner.vue'
|
||||||
import HomeFloatingActions from './components/HomeFloatingActions.vue'
|
import HomeFloatingActions from './components/HomeFloatingActions.vue'
|
||||||
import ProjectCard from './components/ProjectCard.vue'
|
import ProjectCard from './components/ProjectCard.vue'
|
||||||
@@ -120,7 +123,7 @@ const ongoingSubtitle = computed(() => {
|
|||||||
<view class="home__brand">
|
<view class="home__brand">
|
||||||
<image
|
<image
|
||||||
class="home__logo"
|
class="home__logo"
|
||||||
src="/static/icons/logos.png"
|
:src="brandLogoIcon"
|
||||||
mode="aspectFit"
|
mode="aspectFit"
|
||||||
/>
|
/>
|
||||||
<text class="home__brand-name">
|
<text class="home__brand-name">
|
||||||
@@ -133,7 +136,7 @@ const ongoingSubtitle = computed(() => {
|
|||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
class="home__message-icon"
|
class="home__message-icon"
|
||||||
src="/static/icons/icon-message.png"
|
:src="messageIcon"
|
||||||
mode="aspectFit"
|
mode="aspectFit"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
@@ -146,7 +149,7 @@ const ongoingSubtitle = computed(() => {
|
|||||||
<view class="home__hi-badge">
|
<view class="home__hi-badge">
|
||||||
<image
|
<image
|
||||||
class="home__hi-icon"
|
class="home__hi-icon"
|
||||||
src="/static/icons/hi.png"
|
:src="hiIcon"
|
||||||
mode="aspectFit"
|
mode="aspectFit"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 792 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 789 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 797 B After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 919 B After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 683 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 715 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 597 B After Width: | Height: | Size: 932 B |
|
Before Width: | Height: | Size: 623 B After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 623 B After Width: | Height: | Size: 989 B |
|
Before Width: | Height: | Size: 806 B After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 829 B After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 751 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.5 KiB |
BIN
src/static/icons/brand-logo.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.8 KiB |
BIN
src/static/icons/dropdown.png
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 932 B |
|
Before Width: | Height: | Size: 733 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 934 B |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
BIN
src/static/icons/message-service.png
Normal file
|
After Width: | Height: | Size: 9.3 KiB |
BIN
src/static/icons/message-system.png
Normal file
|
After Width: | Height: | Size: 9.1 KiB |
BIN
src/static/icons/message-workorder.png
Normal file
|
After Width: | Height: | Size: 9.5 KiB |
BIN
src/static/icons/message.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 938 B |
|
Before Width: | Height: | Size: 991 B |
|
Before Width: | Height: | Size: 455 B |
|
Before Width: | Height: | Size: 507 B |
|
Before Width: | Height: | Size: 467 B |
|
Before Width: | Height: | Size: 388 B |
|
Before Width: | Height: | Size: 679 B |
|
Before Width: | Height: | Size: 753 B |
|
Before Width: | Height: | Size: 336 B |
|
Before Width: | Height: | Size: 364 B |
BIN
src/static/icons/个人中心.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/static/icons/个人中心选中.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/static/icons/案例库.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
src/static/icons/案例库选中.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
src/static/icons/消息中心.png
Normal file
|
After Width: | Height: | Size: 779 B |
BIN
src/static/icons/消息中心选中.png
Normal file
|
After Width: | Height: | Size: 893 B |
BIN
src/static/icons/项目中心.png
Normal file
|
After Width: | Height: | Size: 677 B |
BIN
src/static/icons/项目中心选中.png
Normal file
|
After Width: | Height: | Size: 614 B |
BIN
src/static/icons/首页.png
Normal file
|
After Width: | Height: | Size: 996 B |
BIN
src/static/icons/首页选中.png
Normal file
|
After Width: | Height: | Size: 808 B |