Przeglądaj źródła

修改初始背景

liling 2 miesięcy temu
rodzic
commit
47e3dcd675
2 zmienionych plików z 13 dodań i 2 usunięć
  1. 1 1
      src/pages/components/Bottom.vue
  2. 12 1
      src/pages/main/index.vue

+ 1 - 1
src/pages/components/Bottom.vue

@@ -1,5 +1,5 @@
 <template>
-    <div class="bottom" style="z-index: 1000;">
+    <div v-if="ClickTimeLong==0" class="bottom" style="z-index: 1000;">
         <div style="display: flex; justify-content: left; flex-flow: row;height: 100%;">
             <div :class="item.active?'btn active':'btn'" :title="ClickTimeLong>0?'正在努力加载模型,请稍候':''" v-for="item in navlist" :style="{backgroundImage: item.active?`url(${btnFrontBg})`:''}" @click="loadNavModel(item);">
                 <img :src="item.active?item.img1:item.img" :key="item.code" :t='item.code' :class="item.active?'active':''">

+ 12 - 1
src/pages/main/index.vue

@@ -1,6 +1,7 @@
 <style src="../../styles/main.css"></style>
 <template>
     <div>
+        <div class="bg"></div>
         <div v-if="!isLoaded" ref="loading_a1" id="loading_a1"></div>
         <div v-if="!isLoaded" ref="loading" id="loading">正在进入系统中...</div>
         <div v-if="reconnect" class="reconnect">网络连接中断,正在进行重连...</div>
@@ -240,7 +241,8 @@ export default {
                     }              
                 });
                 //模型加载中监听处理
-                Native.Model.EventProgress.connect(function(v,hander,name){   
+                Native.Model.EventProgress.connect(function(v,hander,name){  
+                    console.log(new Date().getTime()," ",name,":",v) 
                     //当进度大于0.99时,交由EventProgressEnd监听处理            
                     if(window.CurrentTargetType!=name || v>0.99 ||v<1) return;
                     loadProgressValue.value = (v*100).toFixed(0);
@@ -476,4 +478,13 @@ export default {
 }
 </script>
 <style scoped>
+.bg{
+    z-index: -1; pointer-events: none;position: absolute;
+    top: 0;
+    left: 0;
+    width: 100%;
+    height: 100%;
+    border: 0px solid #17666e;
+    background:url('../../assets/image/bg.png');
+}
 </style>