hookehuyr

fix(Students.vue): 修复图片预览时缩略图参数问题

移除图片预览时的缩略图参数,确保显示原图
1 <!-- 1 <!--
2 * @Date: 2025-10-30 20:52:19 2 * @Date: 2025-10-30 20:52:19
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-11-12 20:37:51 4 + * @LastEditTime: 2025-11-13 10:25:44
5 * @FilePath: /stdj_h5/src/views/Students.vue 5 * @FilePath: /stdj_h5/src/views/Students.vue
6 * @Description: 戒子页面 - 图片瀑布流展示 6 * @Description: 戒子页面 - 图片瀑布流展示
7 --> 7 -->
...@@ -82,7 +82,7 @@ const onLoad = async () => { ...@@ -82,7 +82,7 @@ const onLoad = async () => {
82 if (code) { 82 if (code) {
83 const newData = data.list.map(item => ({ 83 const newData = data.list.map(item => ({
84 id: item.id, 84 id: item.id,
85 - src: item.value, // 修改为src,用于ImagePreview 85 + src: item.value + '?imageMogr2/thumbnail/400x/strip/quality/70', // 修改为src,用于ImagePreview
86 title: item.name, 86 title: item.name,
87 description: item.description, 87 description: item.description,
88 date: item.post_date, 88 date: item.post_date,
...@@ -134,8 +134,8 @@ const onImageClick = (item) => { ...@@ -134,8 +134,8 @@ const onImageClick = (item) => {
134 // 获取当前点击图片在所有图片中的索引 134 // 获取当前点击图片在所有图片中的索引
135 const currentIndex = allImages.value.findIndex(img => img.id === item.id) 135 const currentIndex = allImages.value.findIndex(img => img.id === item.id)
136 136
137 - // 提取所有图片的src用于预览 137 + // 提取所有图片的src用于预览, 移除缩略图参数
138 - const images = allImages.value.map(img => img.src) 138 + const images = allImages.value.map(img => img.src.replace('?imageMogr2/thumbnail/400x/strip/quality/70', ''))
139 139
140 // 仅预览当前单张图片,禁用索引与循环 140 // 仅预览当前单张图片,禁用索引与循环
141 showImagePreview({ 141 showImagePreview({
......