Jelajahi Sumber

使用原生手机拍照,优化企业微信拍照模糊问题

zhujindu 8 bulan lalu
induk
melakukan
d89bab4b27
1 mengubah file dengan 5 tambahan dan 5 penghapusan
  1. 5 5
      src/components/uploadVNormal.vue

+ 5 - 5
src/components/uploadVNormal.vue

@@ -137,7 +137,7 @@ export default {
       timeFlag: null,
       imageAIVerifyFlag: false,
       imageAIVerifyData: null, //图匠校验返回的数据
-      meidaId: '', //当前上传图片id
+      mediaId: '', //当前上传图片id
       addressesRemark: '', //当前位置信息
       controller: null, //取消请求状态
       fileUrl: '',
@@ -296,8 +296,8 @@ export default {
                     localId: localIds, // 需要上传的图片的本地ID,由chooseImage接口获得
                     isShowProgressTips: 1, // 默认为1,显示进度提示
                     success: function (res) {
-                      this.meidaId = meidaId;
-                      this.uploadImagev(addressesRemark);
+                      that.mediaId = res.serverId;
+                      that.uploadImagev(addressesRemark);
                     },
                   });
                 },
@@ -353,7 +353,7 @@ export default {
       };
       // 0=企业微信,1=H5相机
       if (this.userInfo.photoMethod == '0') {
-        form.mediaId = this.meidaId; //	string	图片素材id
+        form.mediaId = this.mediaId; //	string	图片素材id
       } else {
         form.fileUrl = this.fileUrl; //	string	图片素材id
       }
@@ -457,7 +457,7 @@ export default {
         };
         // 0=企业微信,1=H5相机
         if (this.userInfo.photoMethod == '0') {
-          form.mediaId = this.meidaId; //	string	图片素材id
+          form.mediaId = this.mediaId; //	string	图片素材id
         } else {
           form.fileUrl = this.fileUrl; //	string	图片素材id
         }