From 6dd9d176333cefe8092cb1566eb6172b76d82580 Mon Sep 17 00:00:00 2001 From: "97694732@qq.com" Date: Sat, 6 Jun 2026 17:08:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=96=B0=E5=A2=9E=E8=BF=9E=E6=8B=8D?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2(camera=5Fcapture.vue),=E4=B9=9D=E5=AE=AB?= =?UTF-8?q?=E6=A0=BC=E9=A2=84=E8=A7=88+=E7=A1=AE=E8=AE=A4=E8=BF=94?= =?UTF-8?q?=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 6 + pages/upload/camera_capture.vue | 191 ++++++++++++++++++++++++++++++++ pages/upload/upload.vue | 20 ++++ 3 files changed, 217 insertions(+) create mode 100644 pages/upload/camera_capture.vue diff --git a/pages.json b/pages.json index 3e23a64..2031cf0 100644 --- a/pages.json +++ b/pages.json @@ -53,6 +53,12 @@ "style": { "navigationBarTitleText": "图书上传" } + }, + { + "path": "pages/upload/camera_capture", + "style": { + "navigationBarTitleText": "连拍" + } } ], "globalStyle": { diff --git a/pages/upload/camera_capture.vue b/pages/upload/camera_capture.vue new file mode 100644 index 0000000..571ee2f --- /dev/null +++ b/pages/upload/camera_capture.vue @@ -0,0 +1,191 @@ + + + + + diff --git a/pages/upload/upload.vue b/pages/upload/upload.vue index 091b105..778dc43 100644 --- a/pages/upload/upload.vue +++ b/pages/upload/upload.vue @@ -441,6 +441,10 @@ + 拍照 + + 📷 + 连拍 + @@ -941,6 +945,7 @@ export default { noIsbnPhotoList: [], noIsbnSelectedArea: '', noIsbnWarehouseData: null, + capturedPhotoList: null, // 无ISBN - 下拉列表 noIsbnAuthorOptions: [], @@ -1240,6 +1245,15 @@ export default { } }, + // 页面显示时处理连拍返回的照片 + onShow() { + if (this.capturedPhotoList && this.capturedPhotoList.length > 0) { + var photos = this.capturedPhotoList + this.noIsbnPhotoList = [...this.noIsbnPhotoList, ...photos] + this.capturedPhotoList = null + } + }, + methods: { // 标签切换 switchTab(tab) { @@ -1428,6 +1442,12 @@ export default { } }) }, + // 无ISBN - 打开连拍页面 + openCameraCapture() { + uni.navigateTo({ + url: 'camera_capture' + }) + }, deleteNoIsbnPhoto(index) { this.noIsbnPhotoList.splice(index, 1)