tangning 14 godzin temu
rodzic
commit
bd80df54ed

+ 1 - 1
src/view/case/photos/canvas-photo-editor.js

@@ -1060,7 +1060,7 @@ export class CanvasPhotoEditor {
     const PageIndex = this.selectedPageIndex;
     const PageIndex = this.selectedPageIndex;
     let list = newPages[PageIndex] && newPages[PageIndex].list?.filter(i => i) || []
     let list = newPages[PageIndex] && newPages[PageIndex].list?.filter(i => i) || []
     newPages[PageIndex].layoutMode = direction
     newPages[PageIndex].layoutMode = direction
-    if (list.length == 2) {
+    if (list.length == 2 && direction != 'double') {
       newPageItem = {
       newPageItem = {
         coordinate: [newPages[PageIndex].coordinate[1]],
         coordinate: [newPages[PageIndex].coordinate[1]],
         layoutMode: direction,
         layoutMode: direction,

+ 1 - 1
src/view/case/photos/index.vue

@@ -128,7 +128,7 @@
               @dragstart="handleDragStart($event, photo)"
               @dragstart="handleDragStart($event, photo)"
               draggable
               draggable
             >
             >
-              <img :src="photo.url" alt="现场照片" />
+              <img :src="photo.url + '?x-oss-process=image/resize,w_300/quality,q_80'" alt="现场照片" />
               <span class="used-tag">
               <span class="used-tag">
                 <el-icon
                 <el-icon
                   color="#26559B"
                   color="#26559B"

+ 1 - 1
src/view/case/photos/style.scss

@@ -80,7 +80,7 @@
     line-height: 22px;
     line-height: 22px;
   }
   }
   &-top{
   &-top{
-    padding: 0 48px;
+    padding: 0 48px 60px 48px;
     max-height: calc(100vh - 98px);
     max-height: calc(100vh - 98px);
     overflow-y: scroll;
     overflow-y: scroll;
     scrollbar-width: none; /* Firefox */
     scrollbar-width: none; /* Firefox */