瀏覽代碼

feature_20250811_拜访拍照任务连拍

zhujindu 3 月之前
父節點
當前提交
6f5e59a208
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/components/uploadVNormal.vue

+ 2 - 1
src/components/uploadVNormal.vue

@@ -261,8 +261,9 @@ export default {
               });
               });
               console.log(that.pictureSource);
               console.log(that.pictureSource);
               let sourceType = that.pictureSource == '1' ? ['album', 'camera'] : ['camera'];
               let sourceType = that.pictureSource == '1' ? ['album', 'camera'] : ['camera'];
+              let count = this.isContinuousShooting == '1' ? 5 : 1; //是否允许连拍/相册多选 最多5张
               wx.chooseImage({
               wx.chooseImage({
-                count: 1,
+                count: count,
                 sizeType: ['original'], // 可以指定是原图还是压缩图,默认二者都有
                 sizeType: ['original'], // 可以指定是原图还是压缩图,默认二者都有
                 sourceType: sourceType, // 可以指定来源是相册还是相机,默认二者都有
                 sourceType: sourceType, // 可以指定来源是相册还是相机,默认二者都有
                 defaultCameraMode: 'normal', //表示进入拍照界面的默认模式,目前有normal与batch两种选择,normal表示普通单拍模式,batch表示连拍模式,不传该参数则为normal模式。从3.0.26版本开始支持front和batch_front两种值,其中front表示默认为前置摄像头单拍模式,batch_front表示默认为前置摄像头连拍模式。(注:用户进入拍照界面仍然可自由切换两种模式)
                 defaultCameraMode: 'normal', //表示进入拍照界面的默认模式,目前有normal与batch两种选择,normal表示普通单拍模式,batch表示连拍模式,不传该参数则为normal模式。从3.0.26版本开始支持front和batch_front两种值,其中front表示默认为前置摄像头单拍模式,batch_front表示默认为前置摄像头连拍模式。(注:用户进入拍照界面仍然可自由切换两种模式)