Browse Source

选择框样式处理

林旭祥 8 months ago
parent
commit
e7e16ad35b
1 changed files with 23 additions and 0 deletions
  1. 23 0
      src/components/OptionWindow/index.vue

+ 23 - 0
src/components/OptionWindow/index.vue

@@ -90,6 +90,8 @@
               <div>确 定</div>
             </div>
           </div>
+          <div class="boxBg" :style="{ backgroundImage: 'url(static/images/train/' + project.key + '.png)' }">
+          </div>
         </div>
       </div>
     </transition>
@@ -340,16 +342,21 @@ defineExpose({
     border-radius: 1.6rem;
     background: linear-gradient(46deg, #092941 -83%, #2A484B 95%);
     box-shadow: inset 0px 1px 0px 2px rgba(255, 255, 255, 0.2);
+    position: relative;
 
     .top {
       color: #ffffff;
       display: flex;
       justify-content: flex-end;
+      position: relative;
+      z-index: 2;
     }
 
     .content {
       max-height: 65vh;
       margin-bottom: 2vh;
+      position: relative;
+      z-index: 2;
 
       .content-title {
         font-size: 1.65rem;
@@ -493,6 +500,8 @@ defineExpose({
       color: #ffffff;
       display: flex;
       justify-content: space-around;
+      position: relative;
+      z-index: 2;
 
       .btn {
         width: 33%;
@@ -516,6 +525,20 @@ defineExpose({
         }
       }
     }
+
+    .boxBg {
+      width: 100%;
+      height: 100%;
+      display: block;
+      background-position: center center;
+      background-repeat: no-repeat;
+      background-size: contain;
+      position: absolute;
+      left: 0;
+      top: 0;
+      z-index: 1;
+      opacity: 0.1;
+    }
   }
 
   .close {