Browse Source

no message

zhujindu 4 hours ago
parent
commit
91cfb9b32b
1 changed files with 10 additions and 10 deletions
  1. 10 10
      src/components/uploadVNormalTaskPhoto.vue

+ 10 - 10
src/components/uploadVNormalTaskPhoto.vue

@@ -213,11 +213,11 @@ export default {
               let count = 1;
               // 1:店招内容识别(不能连拍和多选),3:调色机识别(不能连拍和多选) 需要实时识别的不支持连拍和多选
               if (that.photoIdentifyType != 1 && that.photoIdentifyType != 3) {
-                count = that.continuousShoot == '1' ? 20 : 1; //是否允许连拍/相册多选 最多5张
+                count = that.continuousShoot == '1' ? 5 : 1; //是否允许连拍/相册多选 最多5张
               }
               wx.chooseImage({
                 count: count,
-                sizeType: ['original'], // 可以指定是原图还是压缩图,默认二者都有
+                sizeType: ['compressed'], // 可以指定是原图还是压缩图,默认二者都有
                 sourceType: sourceType, // 可以指定来源是相册还是相机,默认二者都有
                 defaultCameraMode: count == 1 ? 'normal' : 'batch', //表示进入拍照界面的默认模式,目前有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表示默认为前置摄像头连拍模式。(注:用户进入拍照界面仍然可自由切换两种模式)
@@ -225,13 +225,13 @@ export default {
                 success: function (res) {
                   let localIds = res.localIds;
                   that.localIdsArr = [];
-                  that.$emit('newimgarr', {
-                    localIds: localIds,
-                    locationRemark: that.addressesRemark,
-                    collectionItemId: that.collectionItemId,
-                    source: 'weixin',
-                  });
-                  // that.syncUpload(localIds);
+                  // that.$emit('newimgarr', {
+                  //   localIds: localIds,
+                  //   locationRemark: that.addressesRemark,
+                  //   collectionItemId: that.collectionItemId,
+                  //   source: 'weixin',
+                  // });
+                  that.syncUpload(localIds);
                 },
               });
             });
@@ -248,7 +248,7 @@ export default {
           isShowProgressTips: 1, // 默认为1,显示进度提示
           success: (res) => {
             this.localIdsArr.push(res.serverId);
-            // this.syncUpload(localIds);
+            this.syncUpload(localIds);
           },
         });
       }