From 16213c0f85aa3ac8317797bf4a05fd12940e16d3 Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期三, 05 三月 2025 17:29:42 +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