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 }> = [
|
||||
{ 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]) {
|
||||
|
||||
@@ -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: '昨天',
|
||||
|
||||
@@ -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[] = [
|
||||
{
|
||||
|
||||
@@ -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[] = [
|
||||
{
|
||||
|
||||
@@ -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',
|
||||
})
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
@@ -145,9 +148,9 @@ const ongoingSubtitle = computed(() => {
|
||||
</text>
|
||||
<view class="home__hi-badge">
|
||||
<image
|
||||
class="home__hi-icon"
|
||||
src="/static/icons/hi.png"
|
||||
mode="aspectFit"
|
||||
class="home__hi-icon"
|
||||
:src="hiIcon"
|
||||
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 |