From b934f9f9a59e84a1af40ff139418a7d30dd68402 Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期五, 07 三月 2025 17:30:34 +0800
Subject: [PATCH] =
---
src/uni_modules/uview-plus/components/u-album/u-album.vue | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/uni_modules/uview-plus/components/u-album/u-album.vue b/src/uni_modules/uview-plus/components/u-album/u-album.vue
index 8b7e2b3..08f987a 100644
--- a/src/uni_modules/uview-plus/components/u-album/u-album.vue
+++ b/src/uni_modules/uview-plus/components/u-album/u-album.vue
@@ -13,7 +13,7 @@
v-for="(item, index1) in arr"
:key="index1"
:style="[imageStyle(index + 1, index1 + 1)]"
- @tap="previewFullImage ? onPreviewTap(getSrc(item)) : ''"
+ @tap="previewFullImage ? onPreviewTap($event, getSrc(item)) : ''"
>
<image
:src="getSrc(item)"
@@ -119,7 +119,6 @@
imageStyle() {
return (index1, index2) => {
const { space, rowCount, multipleSize, urls } = this,
- { addUnit, addStyle } = uni.$u,
rowLen = this.showUrls.length,
allLen = this.urls.length
const style = {
@@ -189,7 +188,7 @@
methods: {
addUnit,
// 棰勮鍥剧墖
- onPreviewTap(url) {
+ onPreviewTap(e, url) {
const urls = this.urls.map((item) => {
return this.getSrc(item)
})
@@ -197,6 +196,8 @@
current: url,
urls
})
+ // 鏄惁闃绘浜嬩欢浼犳挱
+ this.stop && this.preventEvent(e)
},
// 鑾峰彇鍥剧墖鐨勮矾寰�
getSrc(item) {
--
Gitblit v1.9.1