From 037afffe2a62f1207429b2d7ce65de740f41576a Mon Sep 17 00:00:00 2001 From: ShenQiLun <97694732@qq.com> Date: Thu, 25 Jun 2026 17:45:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=B7=A6=E4=B8=8B=E7=BC=A9=E7=95=A5?= =?UTF-8?q?=E5=9B=BE=E6=94=BE=E5=A4=A7=E5=88=B0100rpx,=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=8F=AF=E6=94=BE=E5=A4=A7=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/upload/camera_capture.nvue | 39 +++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/pages/upload/camera_capture.nvue b/pages/upload/camera_capture.nvue index 6d7b946..9db24b1 100644 --- a/pages/upload/camera_capture.nvue +++ b/pages/upload/camera_capture.nvue @@ -36,20 +36,20 @@ - + {{ capturedList.length }} - + - + 完成 {{ capturedList.length }} @@ -60,7 +60,7 @@ - + @@ -158,6 +158,19 @@ prevPage.$vm.capturedPhotoList = this.capturedList } uni.navigateBack() + }, + // 放大预览指定图片 + previewPhoto(idx) { + if (this.capturedList.length > 0) { + uni.previewImage({ + current: this.capturedList[idx], + urls: this.capturedList + }) + } + }, + // 放大预览最新一张 + previewLast() { + this.previewPhoto(this.capturedList.length - 1) } } } @@ -302,8 +315,8 @@ /* 缩略图预览(最新一张) */ .cc-thumb-preview { - width: 80rpx; height: 80rpx; - border-radius: 10rpx; + width: 100rpx; height: 100rpx; + border-radius: 12rpx; overflow: hidden; position: relative; border-width: 2rpx; @@ -311,19 +324,19 @@ border-style: solid; } .cc-thumb-last { - width: 80rpx; height: 80rpx; + width: 100rpx; height: 100rpx; } .cc-thumb-badge { position: absolute; - top: -6rpx; right: -6rpx; - min-width: 30rpx; height: 30rpx; - border-radius: 30rpx; + top: -8rpx; right: -8rpx; + min-width: 34rpx; height: 34rpx; + border-radius: 34rpx; background-color: #409eff; color: #ffffff; - font-size: 20rpx; + font-size: 22rpx; text-align: center; - line-height: 30rpx; - padding-left: 4rpx; padding-right: 4rpx; + line-height: 34rpx; + padding-left: 6rpx; padding-right: 6rpx; } /* 缩略图横条 */