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; } /* 缩略图横条 */