gemercheung 2 anos atrás
pai
commit
e0f701cf7f

+ 8 - 0
packages/qjkankan-editor/src/framework/EditorHead.vue

@@ -205,6 +205,14 @@ export default {
             return false;
           }
         }
+
+        //新增不上传背景底图限制
+        if (this.info.coverInfo.coverImgBac === "imgTile") {
+          if (!this.info.coverInfo.coverBac) {
+            this.$msg.warning(this.$i18n.t("gather.converinfo_no_valid"));
+            return false;
+          }
+        }
       }
       return true;
       // this.lockHotspotResourceTree();

+ 46 - 46
packages/qjkankan-editor/src/views/base/Toolbar.vue

@@ -273,52 +273,18 @@ export default {
   .uc-r {
     width: 100%;
     max-width: 660px;
-    // > .title-input-wrapper {
-    //   position: relative;
-    //   border: 1px solid rgba(151, 151, 151, 0.2);
-    //   padding: 0 10px;
-    //   background: #252526;
-    //   border-radius: 2px;
-    //   height: 36px;
-    //   width: 100%;
-    //   &:focus-within {
-    //     border-color: #0076f6;
-    //   }
-    //   > input {
-    //     border: none;
-    //     background: transparent;
-    //     outline: none;
-    //     height: 100%;
-    //     width: calc(100% - 50px);
-    //     padding: 0;
-    //     color: #fff;
-    //     letter-spacing: 1px;
-    //     font-size: 14px;
-    //   }
-    //   > .count {
-    //     position: absolute;
-    //     top: 50%;
-    //     transform: translateY(-50%);
-    //     right: 16px;
-    //     font-size: 14px;
-    //     color: rgba(255, 255, 255, 0.2);
-    //   }
-    // }
-
     > .title-input-wrapper {
       position: relative;
       border: 1px solid rgba(151, 151, 151, 0.2);
-      padding: 5px 0;
-      background: #1a1b1d;
+      padding: 0 10px;
+      background: #252526;
       border-radius: 2px;
-      min-height: 36px;
+      height: 36px;
       width: 100%;
-      margin-top: 18px;
       &:focus-within {
         border-color: #0076f6;
       }
-      > input,
-      textarea {
+      > input {
         border: none;
         background: transparent;
         outline: none;
@@ -329,20 +295,54 @@ export default {
         letter-spacing: 1px;
         font-size: 14px;
       }
-      &.has-textarea {
-        // min-height: 72px;
-        height: auto;
-        position: relative;
-      }
       > .count {
         position: absolute;
-        bottom: 10px;
-        // transform: translateY(-50%);
-        right: 10px;
+        top: 50%;
+        transform: translateY(-50%);
+        right: 16px;
         font-size: 14px;
         color: rgba(255, 255, 255, 0.2);
       }
     }
+
+    // > .title-input-wrapper {
+    //   position: relative;
+    //   border: 1px solid rgba(151, 151, 151, 0.2);
+    //   padding: 5px 0;
+    //   background: #1a1b1d;
+    //   border-radius: 2px;
+    //   min-height: 36px;
+    //   width: 100%;
+    //   margin-top: 18px;
+    //   &:focus-within {
+    //     border-color: #0076f6;
+    //   }
+    //   > input,
+    //   textarea {
+    //     border: none;
+    //     background: transparent;
+    //     outline: none;
+    //     height: 100%;
+    //     width: calc(100% - 50px);
+    //     padding: 0;
+    //     color: #fff;
+    //     letter-spacing: 1px;
+    //     font-size: 14px;
+    //   }
+    //   &.has-textarea {
+    //     // min-height: 72px;
+    //     height: auto;
+    //     position: relative;
+    //   }
+    //   > .count {
+    //     position: absolute;
+    //     bottom: 10px;
+    //     // transform: translateY(-50%);
+    //     right: 10px;
+    //     font-size: 14px;
+    //     color: rgba(255, 255, 255, 0.2);
+    //   }
+    // }
     > .jianjie {
       margin-top: 20px;
     }

+ 1 - 1
packages/qjkankan-editor/src/views/hotspot/EditPanel.vue

@@ -758,7 +758,7 @@ export default {
           position: absolute;
           top: 50%;
           transform: translateY(-50%);
-          right: 16px;
+          right: 12px;
           font-size: 14px;
           color: rgba(255, 255, 255, 0.2);
         }