优化功能

This commit is contained in:
wangxiaowei
2026-01-14 18:11:26 +08:00
parent f5e77e997b
commit b7e2d5d4c9
7 changed files with 87 additions and 42 deletions

View File

@ -99,7 +99,7 @@
<!-- 轮播图 -->
<view class="mx-30rpx">
<wd-swiper value-key="image" height="400rpx"
:indicator="{ type: 'dots-bar' }" :list="info.image_arr" mode="aspectFit"></wd-swiper>
:indicator="{ type: 'dots-bar' }" :list="info.image_arr" mode="aspectFit" @click="Detail.handlePreviewImage"></wd-swiper>
</view>
<!-- 昵称显示 -->
@ -362,7 +362,7 @@
import type { ITeaSpecialistRewardAmountsResult } from '@/api/types/tea'
import { toast } from '@/utils/toast'
import { TeaSpecialistLevelValue } from '@/utils/teaSpecialist'
import { router } from '@/utils/tools'
import { router, previewImage } from '@/utils/tools'
import { useUserStore } from '@/store'
import type {IUserInfoVo } from '@/api/types/login'
@ -565,6 +565,13 @@
router.navigateBack().catch(err => {
router.switchTab('/pages/index/index')
})
},
/**
* 预览图片
*/
handlePreviewImage: (e: {index: number, item: any}) => {
previewImage(info.value.image_arr[e.index], info.value.image_arr)
}
}
</script>