@@ -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%;
@@ -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 () {
@@ -160,12 +160,12 @@ export default {
this.timeFn()
this.cancelLoading()
- this.autoFullScreen()
+ this.autoFullScreen()
if(!this.isFullScreen){
this.$refs.fullScreenDom.click();
}
- }, 4000);
+ }, 4000);*/
this.$message({
showClose: true,
@@ -157,6 +157,14 @@ export default {
mounted() {
+ this.$nextTick(() => {
+ })
+ this.$message({
+ showClose: true,
+ message: `当前屏幕分辨率,宽:${window.innerWidth},高:${window.innerHeight}`,
+ type: 'warning'
+ });
clearInterval(this.timing)