refactor(material): 移除冗余的图片预览提示
- 删除资料列表和本周热门资料中的预览 Toast 提示 - 简化用户体验流程,减少干扰 - 同步更新 components.d.ts Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Showing
3 changed files
with
1 additions
and
15 deletions
| ... | @@ -27,7 +27,7 @@ declare module 'vue' { | ... | @@ -27,7 +27,7 @@ declare module 'vue' { |
| 27 | OfficeViewer: typeof import('./src/components/OfficeViewer.vue')['default'] | 27 | OfficeViewer: typeof import('./src/components/OfficeViewer.vue')['default'] |
| 28 | PdfPreview: typeof import('./src/components/PdfPreview.vue')['default'] | 28 | PdfPreview: typeof import('./src/components/PdfPreview.vue')['default'] |
| 29 | Picker: typeof import('./src/components/time-picker-data/picker.vue')['default'] | 29 | Picker: typeof import('./src/components/time-picker-data/picker.vue')['default'] |
| 30 | - PlanPopup: typeof import('./src/components/PlanSchemes/PlanPopup.vue')['default'] | 30 | + PlanPopup: typeof import('./src/components/PlanPopup/index.vue')['default'] |
| 31 | PosterBuilder: typeof import('./src/components/PosterBuilder/index.vue')['default'] | 31 | PosterBuilder: typeof import('./src/components/PosterBuilder/index.vue')['default'] |
| 32 | QrCode: typeof import('./src/components/qrCode.vue')['default'] | 32 | QrCode: typeof import('./src/components/qrCode.vue')['default'] |
| 33 | QrCodeSearch: typeof import('./src/components/qrCodeSearch.vue')['default'] | 33 | QrCodeSearch: typeof import('./src/components/qrCodeSearch.vue')['default'] | ... | ... |
| ... | @@ -665,13 +665,6 @@ const { handleClick: onView } = useListItemClick({ | ... | @@ -665,13 +665,6 @@ const { handleClick: onView } = useListItemClick({ |
| 665 | const urls = [item.downloadUrl] | 665 | const urls = [item.downloadUrl] |
| 666 | 666 | ||
| 667 | try { | 667 | try { |
| 668 | - // 预览前提示用户可以长按保存 | ||
| 669 | - Taro.showToast({ | ||
| 670 | - title: '点击图片预览,长按可保存到相册', | ||
| 671 | - icon: 'none', | ||
| 672 | - duration: 2000 | ||
| 673 | - }) | ||
| 674 | - | ||
| 675 | // 短暂延迟后打开预览(让用户看到提示) | 668 | // 短暂延迟后打开预览(让用户看到提示) |
| 676 | await new Promise(resolve => setTimeout(resolve, 300)) | 669 | await new Promise(resolve => setTimeout(resolve, 300)) |
| 677 | 670 | ... | ... |
| ... | @@ -274,13 +274,6 @@ const { handleClick: onView } = useListItemClick({ | ... | @@ -274,13 +274,6 @@ const { handleClick: onView } = useListItemClick({ |
| 274 | const urls = [item.downloadUrl] | 274 | const urls = [item.downloadUrl] |
| 275 | 275 | ||
| 276 | try { | 276 | try { |
| 277 | - // 预览前提示用户可以长按保存 | ||
| 278 | - Taro.showToast({ | ||
| 279 | - title: '点击图片预览,长按可保存到相册', | ||
| 280 | - icon: 'none', | ||
| 281 | - duration: 2000 | ||
| 282 | - }) | ||
| 283 | - | ||
| 284 | // 短暂延迟后打开预览(让用户看到提示) | 277 | // 短暂延迟后打开预览(让用户看到提示) |
| 285 | await new Promise(resolve => setTimeout(resolve, 300)) | 278 | await new Promise(resolve => setTimeout(resolve, 300)) |
| 286 | 279 | ... | ... |
-
Please register or login to post a comment