hookehuyr

perf: 优化图片加载性能,为CDN图片添加质量压缩参数

...@@ -461,7 +461,7 @@ const handleGoToRewards = () => { ...@@ -461,7 +461,7 @@ const handleGoToRewards = () => {
461 box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08); 461 box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08);
462 margin: 32rpx; 462 margin: 32rpx;
463 overflow: hidden; 463 overflow: hidden;
464 - background-image: url('https://cdn.ipadbiz.cn/lls_prog/images/dashboard_bg_2.jpg'); 464 + background-image: url('https://cdn.ipadbiz.cn/lls_prog/images/dashboard_bg_2.jpg?imageMogr2/strip/quality/60');
465 background-size: cover; 465 background-size: cover;
466 background-position: center bottom; 466 background-position: center bottom;
467 } 467 }
......
...@@ -136,7 +136,7 @@ const handleGoToPointsRule = () => { ...@@ -136,7 +136,7 @@ const handleGoToPointsRule = () => {
136 box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08); 136 box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08);
137 margin: 32rpx; 137 margin: 32rpx;
138 overflow: hidden; 138 overflow: hidden;
139 - background-image: url('https://cdn.ipadbiz.cn/lls_prog/images/dashboard_bg_2.jpg'); 139 + background-image: url('https://cdn.ipadbiz.cn/lls_prog/images/dashboard_bg_2.jpg?imageMogr2/strip/quality/60');
140 background-size: cover; 140 background-size: cover;
141 background-position: center bottom; 141 background-position: center bottom;
142 } 142 }
......
...@@ -195,7 +195,7 @@ import { createFamilyAPI } from '@/api/family'; ...@@ -195,7 +195,7 @@ import { createFamilyAPI } from '@/api/family';
195 // 区域信息 195 // 区域信息
196 import { SHANGHAI_REGION } from '@/utils/config'; 196 import { SHANGHAI_REGION } from '@/utils/config';
197 197
198 -const defaultFamilyCoverSvg = 'https://cdn.ipadbiz.cn/lls_prog/images/default-family-cover.png'; 198 +const defaultFamilyCoverSvg = 'https://cdn.ipadbiz.cn/lls_prog/images/default-family-cover.png?imageMogr2/strip/quality/60';
199 const familyName = ref(''); 199 const familyName = ref('');
200 const familyIntro = ref(''); 200 const familyIntro = ref('');
201 const selectedDistrict = ref(null); 201 const selectedDistrict = ref(null);
......
1 <!-- 1 <!--
2 * @Date: 2025-08-27 17:43:45 2 * @Date: 2025-08-27 17:43:45
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-09-23 11:08:57 4 + * @LastEditTime: 2025-09-26 11:00:45
5 * @FilePath: /lls_program/src/pages/Dashboard/index.vue 5 * @FilePath: /lls_program/src/pages/Dashboard/index.vue
6 * @Description: 首页 6 * @Description: 首页
7 --> 7 -->
...@@ -183,9 +183,9 @@ import RankingCard from '@/components/RankingCard.vue' ...@@ -183,9 +183,9 @@ import RankingCard from '@/components/RankingCard.vue'
183 import AdOverlay from '@/components/AdOverlay.vue' 183 import AdOverlay from '@/components/AdOverlay.vue'
184 import FamilyAlbum from '@/components/FamilyAlbum.vue'; 184 import FamilyAlbum from '@/components/FamilyAlbum.vue';
185 // 默认家庭封面图 185 // 默认家庭封面图
186 -const defaultFamilyCover = 'https://cdn.ipadbiz.cn/lls_prog/images/default-family-cover.png'; 186 +const defaultFamilyCover = 'https://cdn.ipadbiz.cn/lls_prog/images/default-family-cover.png?imageMogr2/strip/quality/60';
187 // 默认头像 187 // 默认头像
188 -const defaultAvatar = 'https://cdn.ipadbiz.cn/mlaj/images/icon_1.jpeg' 188 +const defaultAvatar = 'https://cdn.ipadbiz.cn/mlaj/images/icon_1.jpeg?imageMogr2/strip/quality/60';
189 // 接口信息 189 // 接口信息
190 import { getFamilyDashboardAPI } from '@/api/family' 190 import { getFamilyDashboardAPI } from '@/api/family'
191 import { silentAuth, checkUserHasFamily } from '@/utils/authRedirect' 191 import { silentAuth, checkUserHasFamily } from '@/utils/authRedirect'
...@@ -420,7 +420,7 @@ const refreshDashboardData = async () => { ...@@ -420,7 +420,7 @@ const refreshDashboardData = async () => {
420 } 420 }
421 } else { 421 } else {
422 console.error('获取Dashboard数据失败:', data); 422 console.error('获取Dashboard数据失败:', data);
423 - 423 +
424 // 只有在明确的错误情况下才进行家庭状态检查 424 // 只有在明确的错误情况下才进行家庭状态检查
425 if (!isRedirecting && (data?.msg?.includes('家庭') || data?.code === 404)) { 425 if (!isRedirecting && (data?.msg?.includes('家庭') || data?.code === 404)) {
426 // 检查用户是否已加入家庭 426 // 检查用户是否已加入家庭
...@@ -470,7 +470,7 @@ useLoad(async () => { ...@@ -470,7 +470,7 @@ useLoad(async () => {
470 useDidShow(async () => { 470 useDidShow(async () => {
471 // 重置跳转标志 471 // 重置跳转标志
472 isRedirecting = false; 472 isRedirecting = false;
473 - 473 +
474 // 获取系统信息 474 // 获取系统信息
475 getSystemInfo(); 475 getSystemInfo();
476 476
......
1 <!-- 1 <!--
2 * @Date: 2022-09-19 14:11:06 2 * @Date: 2022-09-19 14:11:06
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-09-23 09:45:30 4 + * @LastEditTime: 2025-09-26 11:00:12
5 * @FilePath: /lls_program/src/pages/MyFamily/index.vue 5 * @FilePath: /lls_program/src/pages/MyFamily/index.vue
6 * @Description: 我的家庭页面 - 展示用户加入的家庭列表 6 * @Description: 我的家庭页面 - 展示用户加入的家庭列表
7 --> 7 -->
...@@ -243,9 +243,9 @@ import './index.less'; ...@@ -243,9 +243,9 @@ import './index.less';
243 // 获取接口信息 243 // 获取接口信息
244 import { getMyFamiliesAPI, switchCurrentFamilyAPI, deleteFamilyMemberAPI } from '@/api/family'; 244 import { getMyFamiliesAPI, switchCurrentFamilyAPI, deleteFamilyMemberAPI } from '@/api/family';
245 // 245 //
246 -const defaultFamilyCoverSvg = 'https://cdn.ipadbiz.cn/lls_prog/images/default-family-cover.png'; 246 +const defaultFamilyCoverSvg = 'https://cdn.ipadbiz.cn/lls_prog/images/default-family-cover.png?imageMogr2/strip/quality/60';
247 // 默认头像 247 // 默认头像
248 -const defaultAvatar = 'https://cdn.ipadbiz.cn/mlaj/images/icon_1.jpeg' 248 +const defaultAvatar = 'https://cdn.ipadbiz.cn/mlaj/images/icon_1.jpeg?imageMogr2/strip/quality/60';
249 // 获取接口数据 249 // 获取接口数据
250 250
251 // 响应式数据 251 // 响应式数据
......
...@@ -147,7 +147,7 @@ import BASE_URL from '@/utils/config' ...@@ -147,7 +147,7 @@ import BASE_URL from '@/utils/config'
147 // 导入获取海报详情的API 147 // 导入获取海报详情的API
148 import { getPosterDetailAPI, savePosterBackgroundAPI } from '@/api/map' 148 import { getPosterDetailAPI, savePosterBackgroundAPI } from '@/api/map'
149 // 默认背景图 149 // 默认背景图
150 -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' 150 +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'
151 151
152 // 页面状态 152 // 页面状态
153 const posterPath = ref('') // 生成的海报路径 153 const posterPath = ref('') // 生成的海报路径
...@@ -267,10 +267,10 @@ const updatePosterList = () => { ...@@ -267,10 +267,10 @@ const updatePosterList = () => {
267 description: '' 267 description: ''
268 }, 268 },
269 activity: { 269 activity: {
270 - 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', 270 + 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',
271 }, 271 },
272 level: { 272 level: {
273 - 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', 273 + 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',
274 name: detail.name || '海报打卡活动', 274 name: detail.name || '海报打卡活动',
275 }, 275 },
276 qrcode: qrcode_url, 276 qrcode: qrcode_url,
......
1 <!-- 1 <!--
2 * @Date: 2025-08-27 17:43:45 2 * @Date: 2025-08-27 17:43:45
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-09-19 14:00:38 4 + * @LastEditTime: 2025-09-26 10:58:50
5 * @FilePath: /lls_program/src/pages/Welcome/index.vue 5 * @FilePath: /lls_program/src/pages/Welcome/index.vue
6 * @Description: 欢迎页 6 * @Description: 欢迎页
7 --> 7 -->
...@@ -153,7 +153,7 @@ import { getUserProfileAPI } from '@/api/user'; ...@@ -153,7 +153,7 @@ import { getUserProfileAPI } from '@/api/user';
153 // 导入主题颜色 153 // 导入主题颜色
154 import { THEME_COLORS } from '@/utils/config'; 154 import { THEME_COLORS } from '@/utils/config';
155 155
156 -const welcomeHomeImg = 'https://cdn.ipadbiz.cn/lls_prog/images/welcome_home_1.png'; 156 +const welcomeHomeImg = 'https://cdn.ipadbiz.cn/lls_prog/images/welcome_home_1.png?imageMogr2/strip/quality/60';
157 157
158 const userAge = ref(null); 158 const userAge = ref(null);
159 const userInfo = ref({}); 159 const userInfo = ref({});
......