Просмотр исходного кода

fix: 23979 (v1.1.0全景看看)管理中心-我的素材-全景图片预览-底部工具栏的悬浮文字背景与设计图不一致

任一存 3 лет назад
Родитель
Сommit
d7f1df5abc
1 измененных файлов с 119 добавлено и 69 удалено
  1. 119 69
      src/views/material/popup/panoImagePreviewer.vue

+ 119 - 69
src/views/material/popup/panoImagePreviewer.vue

@@ -149,81 +149,131 @@ export default {
 </script>
 
 <style scoped lang="less">
-  .preview-wrapper {
-    position: fixed;
-    top: 0;
-    left: 0;
-    right: 0;
-    bottom: 0;
-    .title {
-      position: absolute;
-      top: 16px;
-      left: 30px;
-      z-index: 2;
-      height: 36px;
-      font-size: 14px;
-      color: #FFFFFF;
-      background: rgba(0, 0, 0, 0.6);
-      border-radius: 18px;
-      display: flex;
-      justify-content: center;
-      align-items: center;
-      padding-left: 16px;
-      padding-right: 16px;
-    }
-    .close-btn {
-      position: absolute;
-      top: 16px;
-      right: 30px;
-      width: 36px;
-      height: 36px;
-      z-index: 2;
+.preview-wrapper {
+  position: fixed;
+  top: 0;
+  left: 0;
+  right: 0;
+  bottom: 0;
+  .title {
+    position: absolute;
+    top: 16px;
+    left: 30px;
+    z-index: 2;
+    height: 36px;
+    font-size: 14px;
+    color: #FFFFFF;
+    background: rgba(0, 0, 0, 0.6);
+    border-radius: 18px;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    padding-left: 16px;
+    padding-right: 16px;
+  }
+  .close-btn {
+    position: absolute;
+    top: 16px;
+    right: 30px;
+    width: 36px;
+    height: 36px;
+    z-index: 2;
+    cursor: pointer;
+  }
+  .toolbar {
+    position: absolute;
+    bottom: 110px;
+    left: 50%;
+    transform: translateX(-50%);
+    height: 60px;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    padding: 0 43px;
+    background: rgba(0, 0, 0, 0.6);
+    border-radius: 8px;
+    z-index: 2;
+    .iconfont {
       cursor: pointer;
-    }
-    .toolbar {
-      position: absolute;
-      bottom: 110px;
-      left: 50%;
-      transform: translateX(-50%);
-      height: 60px;
-      display: flex;
-      justify-content: center;
-      align-items: center;
-      padding: 0 43px;
-      background: rgba(0, 0, 0, 0.6);
-      border-radius: 8px;
-      z-index: 2;
-      .iconfont {
-        cursor: pointer;
-        color: white;
-        margin-right: 36px;
-        font-size: 22px;
-        &.disabled {
-          opacity: 0.5;
-          pointer-events: none;
-        }
-        &:last-child {
-          margin-right: 0;
-        }
+      color: white;
+      margin-right: 36px;
+      font-size: 22px;
+      &.disabled {
+        opacity: 0.5;
+        pointer-events: none;
       }
-      .append-splitter {
-        &::after {
-          pointer-events: none;
-          content: "|";
-          position: absolute;
-          right: -18px;
-          top: -4px;
-          font-size: 20px;
-          color: rgba(255, 255, 255, 0.5);
-        }
+      &:last-child {
+        margin-right: 0;
+      }
+    }
+    .append-splitter {
+      &::after {
+        pointer-events: none;
+        content: "|";
+        position: absolute;
+        right: -18px;
+        top: -4px;
+        font-size: 20px;
+        color: rgba(255, 255, 255, 0.5);
       }
     }
-    .iframe {
+  }
+  .iframe {
+    position: absolute;
+    left: 50%;
+    top: 50%;
+    transform: translate(-50%, -50%);
+    z-index: 1;
+  }
+}
+
+.hover-tips, .hover-tips-warn {
+  position: relative;
+  font-size: 18px;
+
+  &:hover {
+    > div {
+      display: block;
+    }
+  }
+
+  // tip的方框
+  > div {
+    background: rgba(0, 0, 0, 0.6);
+    border: none;
+    cursor: default;
+    display: none;
+    z-index: 10000;
+    position: absolute;
+    left: 50%;
+    transform: translateX(-50%);
+    top: -60px;
+    color: #fff;
+    pointer-events: none;
+    text-align: center;
+    word-break: keep-all;
+    padding: 0 8px;
+    font-size: 12px;
+    border-radius: 3px;
+    // tip的箭头
+    &::before {
+      border: 7px solid transparent;
+      border-top: 7px solid rgba(0, 0, 0, 0.6);
+      width: 0;
+      height: 0px;
+      content: "";
+      display: inline-block;
       position: absolute;
+      bottom: -14px;
       left: 50%;
-      top: 50%;
-      transform: translate(-50%, -50%);
-      z-index: 1;
+      transform: translateX(-50%);
+    }
+
+    // tip的文字
+    .remark {
+      line-height: 2.5;
+      color: #fff;
     }
   }
+}
 </style>