Browse Source

logo banner增加裁剪图片功能

moshaorui 3 months ago
parent
commit
0b711cfcfb

+ 1 - 1
resources/views/admin/form_custom/cut-image.blade.php

@@ -190,7 +190,7 @@
             viewMode: 1,     // 设置裁剪框的视图模式
             autoCropArea: 0.95, // 设置自动裁剪区域占比
             dragMode: 'none',
-            background: '#fff',
+            background: true,
         });
         //弹窗裁剪
         $('#cropperImageModal').modal();

+ 1 - 1
resources/views/distributor/form_custom/cut-image.blade.php

@@ -190,7 +190,7 @@
             viewMode: 1,     // 设置裁剪框的视图模式
             autoCropArea: 0.95, // 设置自动裁剪区域占比
             dragMode: 'none',
-            background: '#fff',
+            background: true,
         });
         //弹窗裁剪
         $('#cropperImageModal').modal();