| | |
| | | expHeight: '', |
| | | // 是否允许调整裁剪框大小 |
| | | letChangeSize: false, |
| | | |
| | | // 底部安全区大小 |
| | | safeAreaInsetsBottom: 0, |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | this.platform = sysInfo.platform; |
| | | this.pixelRatio = sysInfo.pixelRatio; |
| | | this.windowWidth = sysInfo.windowWidth; |
| | | this.safeAreaInsetsBottom = sysInfo.safeAreaInsets.bottom; |
| | | // #ifdef H5 |
| | | this.drawTop = sysInfo.windowTop; |
| | | this.windowHeight = sysInfo.windowHeight + sysInfo.windowBottom; |
| | |
| | | this.cvsStyleHeight = this.windowHeight - tabHeight + 'px'; |
| | | } else { |
| | | this.windowHeight = sysInfo.windowHeight + this.moreHeight; |
| | | this.cvsStyleHeight = this.windowHeight - tabHeight + 6 + 'px'; |
| | | this.cvsStyleHeight = this.windowHeight - tabHeight - this.safeAreaInsetsBottom + 6 + 'px'; |
| | | } |
| | | // #endif |
| | | // #ifdef MP |
| | | this.windowHeight = sysInfo.windowHeight + this.moreHeight; |
| | | this.cvsStyleHeight = this.windowHeight - tabHeight - 2 + 'px'; |
| | | this.cvsStyleHeight = this.windowHeight - tabHeight - this.safeAreaInsetsBottom - 2 + 'px'; |
| | | // #endif |
| | | this.pxRatio = this.windowWidth/750; |
| | | |
| | |
| | | } |
| | | } |
| | | </style> |
| | | |