戴艳蓉 hace 3 años
padre
commit
5d0182dabe

+ 3 - 3
src/views/goodStore/goodsOnline/components/fixed-price-form.vue

@@ -69,7 +69,7 @@
                 </div>
 
                 <div class="txt-tips fl">
-                  <p>建议大小:小于5MB</p>
+                  <p>建议大小:小于10MB</p>
                   <p>文件格式:.mp4,.avi</p>
                 </div>
               </div>
@@ -506,12 +506,12 @@ export default {
       if (file.type === "video/mp4" || file.type === "video/avi") {
         isJPG = true;
       }
-      const isLt2M = file.size / 1024 / 1024 < 5;
+      const isLt2M = file.size / 1024 / 1024 < 10;
       if (!isJPG) {
         this.$message.error("视频格式不正确!");
       }
       if (!isLt2M) {
-        this.$message.error("视频大小不能超过 5MB!");
+        this.$message.error("视频大小不能超过 10MB!");
       }
       return isJPG && isLt2M;
     },