Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
lls_program
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-09-26 11:04:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
81acfe3bc567820d8582b1fac146b266e9ca3d9c
81acfe3b
1 parent
6307f260
perf: 优化图片加载性能,为CDN图片添加质量压缩参数
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
16 deletions
src/components/PointsCollector.vue
src/components/TotalPointsDisplay.vue
src/pages/CreateFamily/index.vue
src/pages/Dashboard/index.vue
src/pages/MyFamily/index.vue
src/pages/PosterCheckin/index.vue
src/pages/Welcome/index.vue
src/components/PointsCollector.vue
View file @
81acfe3
...
...
@@ -461,7 +461,7 @@ const handleGoToRewards = () => {
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08);
margin: 32rpx;
overflow: hidden;
background-image: url('https://cdn.ipadbiz.cn/lls_prog/images/dashboard_bg_2.jpg');
background-image: url('https://cdn.ipadbiz.cn/lls_prog/images/dashboard_bg_2.jpg
?imageMogr2/strip/quality/60
');
background-size: cover;
background-position: center bottom;
}
...
...
src/components/TotalPointsDisplay.vue
View file @
81acfe3
...
...
@@ -136,7 +136,7 @@ const handleGoToPointsRule = () => {
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08);
margin: 32rpx;
overflow: hidden;
background-image: url('https://cdn.ipadbiz.cn/lls_prog/images/dashboard_bg_2.jpg');
background-image: url('https://cdn.ipadbiz.cn/lls_prog/images/dashboard_bg_2.jpg
?imageMogr2/strip/quality/60
');
background-size: cover;
background-position: center bottom;
}
...
...
src/pages/CreateFamily/index.vue
View file @
81acfe3
...
...
@@ -195,7 +195,7 @@ import { createFamilyAPI } from '@/api/family';
// 区域信息
import { SHANGHAI_REGION } from '@/utils/config';
const defaultFamilyCoverSvg = 'https://cdn.ipadbiz.cn/lls_prog/images/default-family-cover.png';
const defaultFamilyCoverSvg = 'https://cdn.ipadbiz.cn/lls_prog/images/default-family-cover.png
?imageMogr2/strip/quality/60
';
const familyName = ref('');
const familyIntro = ref('');
const selectedDistrict = ref(null);
...
...
src/pages/Dashboard/index.vue
View file @
81acfe3
<!--
* @Date: 2025-08-27 17:43:45
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-09-2
3 11:08:57
* @LastEditTime: 2025-09-2
6 11:00:45
* @FilePath: /lls_program/src/pages/Dashboard/index.vue
* @Description: 首页
-->
...
...
@@ -183,9 +183,9 @@ import RankingCard from '@/components/RankingCard.vue'
import AdOverlay from '@/components/AdOverlay.vue'
import FamilyAlbum from '@/components/FamilyAlbum.vue';
// 默认家庭封面图
const defaultFamilyCover = 'https://cdn.ipadbiz.cn/lls_prog/images/default-family-cover.png';
const defaultFamilyCover = 'https://cdn.ipadbiz.cn/lls_prog/images/default-family-cover.png
?imageMogr2/strip/quality/60
';
// 默认头像
const defaultAvatar = 'https://cdn.ipadbiz.cn/mlaj/images/icon_1.jpeg
'
const defaultAvatar = 'https://cdn.ipadbiz.cn/mlaj/images/icon_1.jpeg
?imageMogr2/strip/quality/60';
// 接口信息
import { getFamilyDashboardAPI } from '@/api/family'
import { silentAuth, checkUserHasFamily } from '@/utils/authRedirect'
...
...
@@ -420,7 +420,7 @@ const refreshDashboardData = async () => {
}
} else {
console.error('获取Dashboard数据失败:', data);
// 只有在明确的错误情况下才进行家庭状态检查
if (!isRedirecting && (data?.msg?.includes('家庭') || data?.code === 404)) {
// 检查用户是否已加入家庭
...
...
@@ -470,7 +470,7 @@ useLoad(async () => {
useDidShow(async () => {
// 重置跳转标志
isRedirecting = false;
// 获取系统信息
getSystemInfo();
...
...
src/pages/MyFamily/index.vue
View file @
81acfe3
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-09-2
3 09:45:30
* @LastEditTime: 2025-09-2
6 11:00:12
* @FilePath: /lls_program/src/pages/MyFamily/index.vue
* @Description: 我的家庭页面 - 展示用户加入的家庭列表
-->
...
...
@@ -243,9 +243,9 @@ import './index.less';
// 获取接口信息
import { getMyFamiliesAPI, switchCurrentFamilyAPI, deleteFamilyMemberAPI } from '@/api/family';
//
const defaultFamilyCoverSvg = 'https://cdn.ipadbiz.cn/lls_prog/images/default-family-cover.png';
const defaultFamilyCoverSvg = 'https://cdn.ipadbiz.cn/lls_prog/images/default-family-cover.png
?imageMogr2/strip/quality/60
';
// 默认头像
const defaultAvatar = 'https://cdn.ipadbiz.cn/mlaj/images/icon_1.jpeg
'
const defaultAvatar = 'https://cdn.ipadbiz.cn/mlaj/images/icon_1.jpeg
?imageMogr2/strip/quality/60';
// 获取接口数据
// 响应式数据
...
...
src/pages/PosterCheckin/index.vue
View file @
81acfe3
...
...
@@ -147,7 +147,7 @@ import BASE_URL from '@/utils/config'
// 导入获取海报详情的API
import { getPosterDetailAPI, savePosterBackgroundAPI } from '@/api/map'
// 默认背景图
const defaultBackground = 'https://cdn.ipadbiz.cn/lls_prog/images/%E6%B5%B7%E6%8A%A5%E9%BB%98%E8%AE%A4%E8%83%8C%E6%99%AF%E5%9B%BE1.png'
const defaultBackground = 'https://cdn.ipadbiz.cn/lls_prog/images/%E6%B5%B7%E6%8A%A5%E9%BB%98%E8%AE%A4%E8%83%8C%E6%99%AF%E5%9B%BE1.png
?imageMogr2/strip/quality/60
'
// 页面状态
const posterPath = ref('') // 生成的海报路径
...
...
@@ -267,10 +267,10 @@ const updatePosterList = () => {
description: ''
},
activity: {
logo: detail.main_slogan || 'https://cdn.ipadbiz.cn/lls_prog/images/%E6%B5%B7%E6%8A%A5%E5%B7%A6%E4%B8%8A%E8%A7%92logo.png',
logo: detail.main_slogan || 'https://cdn.ipadbiz.cn/lls_prog/images/%E6%B5%B7%E6%8A%A5%E5%B7%A6%E4%B8%8A%E8%A7%92logo.png
?imageMogr2/strip/quality/60
',
},
level: {
logo: detail.sub_slogan || 'https://cdn.ipadbiz.cn/lls_prog/images/%E6%B5%B7%E6%8A%A5%E5%8F%B3%E4%B8%8B%E8%A7%92icon.png',
logo: detail.sub_slogan || 'https://cdn.ipadbiz.cn/lls_prog/images/%E6%B5%B7%E6%8A%A5%E5%8F%B3%E4%B8%8B%E8%A7%92icon.png
?imageMogr2/strip/quality/60
',
name: detail.name || '海报打卡活动',
},
qrcode: qrcode_url,
...
...
src/pages/Welcome/index.vue
View file @
81acfe3
<!--
* @Date: 2025-08-27 17:43:45
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-09-
19 14:00:38
* @LastEditTime: 2025-09-
26 10:58:50
* @FilePath: /lls_program/src/pages/Welcome/index.vue
* @Description: 欢迎页
-->
...
...
@@ -153,7 +153,7 @@ import { getUserProfileAPI } from '@/api/user';
// 导入主题颜色
import { THEME_COLORS } from '@/utils/config';
const welcomeHomeImg = 'https://cdn.ipadbiz.cn/lls_prog/images/welcome_home_1.png';
const welcomeHomeImg = 'https://cdn.ipadbiz.cn/lls_prog/images/welcome_home_1.png
?imageMogr2/strip/quality/60
';
const userAge = ref(null);
const userInfo = ref({});
...
...
Please
register
or
login
to post a comment