Browse Source

调整包装界面

yhluo 6 months ago
parent
commit
01541f74f2

+ 7 - 2
src/assets/scss/indexpackage.scss

@@ -2,12 +2,17 @@
   color: #d3d6dd;
   width: 1920px;
   height: 1080px;
-  position: absolute;
+  position:fixed;
+  left:0;
+  top:0;
+  bottom:0;
+  right:0;
+  /*position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   transform-origin: left top;
-  overflow: hidden;
+  overflow: hidden;*/
   
   .bg {
     width: 100%;

+ 3 - 3
src/utils/drawMixin.js

@@ -22,11 +22,11 @@ export default {
   },
   mounted () {
     this.$nextTick(()=>{
-      setTimeout(() => {
+      this.calcRate()
+      /*setTimeout(() => {
         this.calcRate()
-      }, 5000);
+      }, 5000);*/
     })
-    this.calcRate()
     window.addEventListener('resize', this.resize)
   },
   beforeDestroy () {

+ 3 - 3
src/views/assembly/index.vue

@@ -160,12 +160,12 @@ export default {
     this.timeFn()
     this.cancelLoading()
     this.$nextTick(()=>{
-      setTimeout(() => {
-        this.autoFullScreen()
+      this.autoFullScreen()
+      /*setTimeout(() => {
         if(!this.isFullScreen){
           this.$refs.fullScreenDom.click();
         }
-      }, 4000);
+      }, 4000);*/
     })
     this.$message({
       showClose: true,

+ 8 - 0
src/views/package/index.vue

@@ -157,6 +157,14 @@ export default {
   mounted() {
     this.timeFn()
     this.cancelLoading()
+    this.$nextTick(() => {
+        this.autoFullScreen()
+    })
+    this.$message({
+        showClose: true,
+        message: `当前屏幕分辨率,宽:${window.innerWidth},高:${window.innerHeight}`,
+        type: 'warning'
+    });
   },
   beforeDestroy () {
     clearInterval(this.timing)