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)