任一存 3 лет назад
Родитель
Сommit
2453443293
3 измененных файлов с 14 добавлено и 1 удалено
  1. 6 0
      src/config.js
  2. 2 0
      src/main.js
  3. 6 1
      src/views/RelicsAppr.vue

+ 6 - 0
src/config.js

@@ -1,3 +1,9 @@
 export default {
 export default {
   version: 'v20221018.1122',
   version: 'v20221018.1122',
+  zIndex: {
+    topBar: {
+      self: '3',
+      children: {},
+    },
+  },
 }
 }

+ 2 - 0
src/main.js

@@ -19,6 +19,8 @@ if (uaInfo.browser && uaInfo.browser.name === 'Safari') {
   Vue.prototype.$isSafari = true
   Vue.prototype.$isSafari = true
 }
 }
 
 
+Vue.prototype.$config = globalConfig
+
 const idealWindowInnerWidth = 2436 // 设计稿的宽度
 const idealWindowInnerWidth = 2436 // 设计稿的宽度
 const idealRootFontSize = 24 // 设计稿里选择的根元素尺寸
 const idealRootFontSize = 24 // 设计稿里选择的根元素尺寸
 Vue.prototype.$oneRemToPx = window.innerHeight * idealRootFontSize / idealWindowInnerWidth
 Vue.prototype.$oneRemToPx = window.innerHeight * idealRootFontSize / idealWindowInnerWidth

+ 6 - 1
src/views/RelicsAppr.vue

@@ -1,6 +1,11 @@
 <template>
 <template>
   <div class="relics-appr">
   <div class="relics-appr">
-    <div class="top-bar">
+    <div
+      class="top-bar"
+      :style="{
+        zIndex: $config.zIndex.topBar.self
+      }"
+    >
       <div class="left-wrap">
       <div class="left-wrap">
         <button
         <button
           class="switch-3d"
           class="switch-3d"