Ver Fonte

fix: 抽奖/红包拉新/表单活动转发企微

wuguojie há 11 meses atrás
pai
commit
abe540bcd9
2 ficheiros alterados com 1 adições e 5 exclusões
  1. 0 4
      src/components/UploadToCos.vue
  2. 1 1
      src/views/application/form/add.vue

+ 0 - 4
src/components/UploadToCos.vue

@@ -469,10 +469,6 @@
                 image.onload = () => {
                   width = image.width
                   height = image.height
-                  if(width / height !== 16/9) {
-                   this.$message.error('上传图片比例必须为16:9')
-                    validate = false
-                  }
                   if (width > maxImgPx[0]) {
                     validate = false
                     this.$message.error(`图片“宽”度超过${maxImgPx[0]}像素,请重新选择`)

+ 1 - 1
src/views/application/form/add.vue

@@ -33,7 +33,7 @@
                 </el-form-item>
                 <el-form-item label="活动图片" prop="fileUrl">
                     <UploadToCos :fileUrl.sync="addForm.fileUrl" type="0" :imgRadio="true" >
-                        <div slot="tip">支持jpg/jpeg/png格式,建议200*200</div>
+                        <div slot="tip">支持jpg/jpeg/png格式,上传图片为16:9</div>
                     </UploadToCos>
                 </el-form-item>
             </el-form>