hookehuyr

fix(StudentInfo): 修复图片预览时未显示原图的问题

修改图片预览逻辑,移除预览时添加的缩略图参数以保证显示原图
1 <!-- 1 <!--
2 * @Date: 2025-11-10 18:12:23 2 * @Date: 2025-11-10 18:12:23
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-11-12 20:26:46 4 + * @LastEditTime: 2025-11-13 10:27:23
5 * @FilePath: /stdj_h5/src/views/StudentInfo.vue 5 * @FilePath: /stdj_h5/src/views/StudentInfo.vue
6 * @Description: 戒子详情页 6 * @Description: 戒子详情页
7 --> 7 -->
...@@ -106,7 +106,7 @@ const loadUserInfo = async () => { ...@@ -106,7 +106,7 @@ const loadUserInfo = async () => {
106 if (student_info.value.photo?.length) { 106 if (student_info.value.photo?.length) {
107 student_info.value.photo = student_info.value.photo.map(item => ({ 107 student_info.value.photo = student_info.value.photo.map(item => ({
108 id: item.id, 108 id: item.id,
109 - src: item.url, 109 + src: item.url + '?imageMogr2/thumbnail/400x/strip/quality/70',
110 title: item.name, 110 title: item.name,
111 height: Math.floor(Math.random() * 200) + 200 111 height: Math.floor(Math.random() * 200) + 200
112 })) 112 }))
...@@ -146,7 +146,7 @@ const distributeImages = (images) => { ...@@ -146,7 +146,7 @@ const distributeImages = (images) => {
146 // 图片点击事件 - 仅预览当前单张图片 146 // 图片点击事件 - 仅预览当前单张图片
147 const onImageClick = (item) => { 147 const onImageClick = (item) => {
148 showImagePreview({ 148 showImagePreview({
149 - images: [item.src], 149 + images: [item.src.replace('?imageMogr2/thumbnail/400x/strip/quality/70', '')],
150 startPosition: 0, 150 startPosition: 0,
151 showIndex: false, 151 showIndex: false,
152 loop: false, 152 loop: false,
......