添加了蒙层
This commit is contained in:
		
							parent
							
								
									8656e75e16
								
							
						
					
					
						commit
						8177140705
					
				@ -61,6 +61,19 @@
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        })(1366, 1024);
 | 
					        })(1366, 1024);
 | 
				
			||||||
    </script>
 | 
					    </script>
 | 
				
			||||||
 | 
					    <style>
 | 
				
			||||||
 | 
					        #make{
 | 
				
			||||||
 | 
					            background-color: #000;
 | 
				
			||||||
 | 
					            opacity: 0.5;
 | 
				
			||||||
 | 
					            width: 100%;
 | 
				
			||||||
 | 
					            height: 100vh;
 | 
				
			||||||
 | 
					            position: fixed;
 | 
				
			||||||
 | 
					            top: 0;
 | 
				
			||||||
 | 
					            left: 0;
 | 
				
			||||||
 | 
					            z-index: 999;
 | 
				
			||||||
 | 
					            display: none;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    </style>
 | 
				
			||||||
</head>
 | 
					</head>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<body>
 | 
					<body>
 | 
				
			||||||
@ -69,6 +82,7 @@
 | 
				
			|||||||
            Please enable it to continue.</strong>
 | 
					            Please enable it to continue.</strong>
 | 
				
			||||||
    </noscript>
 | 
					    </noscript>
 | 
				
			||||||
    <div id="app"></div>
 | 
					    <div id="app"></div>
 | 
				
			||||||
 | 
					    <div id="make"></div>
 | 
				
			||||||
    <!-- built files will be auto injected -->
 | 
					    <!-- built files will be auto injected -->
 | 
				
			||||||
    <script>
 | 
					    <script>
 | 
				
			||||||
        window.fbAsyncInit = function () {
 | 
					        window.fbAsyncInit = function () {
 | 
				
			||||||
 | 
				
			|||||||
@ -13,9 +13,11 @@ export interface Get {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
let login: MessageType;
 | 
					let login: MessageType;
 | 
				
			||||||
let count = 0;
 | 
					let count = 0;
 | 
				
			||||||
 | 
					const div: any = document.getElementById("make");
 | 
				
			||||||
axios.interceptors.request.use((config)=>{
 | 
					axios.interceptors.request.use((config)=>{
 | 
				
			||||||
    if(count == 0){
 | 
					    if(count == 0){
 | 
				
			||||||
        login = message.loading('加载中..', 0)
 | 
					        login = message.loading('加载中..', 0)
 | 
				
			||||||
 | 
					        div.style.display = "block"
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    count++;
 | 
					    count++;
 | 
				
			||||||
    return config;
 | 
					    return config;
 | 
				
			||||||
@ -28,6 +30,7 @@ axios.interceptors.response.use((response)=>{
 | 
				
			|||||||
            count--;
 | 
					            count--;
 | 
				
			||||||
            if(count == 0){
 | 
					            if(count == 0){
 | 
				
			||||||
                login();
 | 
					                login();
 | 
				
			||||||
 | 
					                div.style.display = "none"
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            console.log(count)
 | 
					            console.log(count)
 | 
				
			||||||
        }, 1000)
 | 
					        }, 1000)
 | 
				
			||||||
@ -44,6 +47,7 @@ axios.interceptors.response.use((response)=>{
 | 
				
			|||||||
            count--;
 | 
					            count--;
 | 
				
			||||||
            if(count == 0){
 | 
					            if(count == 0){
 | 
				
			||||||
                login();
 | 
					                login();
 | 
				
			||||||
 | 
					                div.style.display = "none"
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            console.log(count)
 | 
					            console.log(count)
 | 
				
			||||||
        }, 1000)
 | 
					        }, 1000)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user