fix": 测试bug

This commit is contained in:
杨航
2026-03-24 21:37:23 +08:00
parent fa83f8f41e
commit 1ff072ba32
+7 -4
View File
@@ -22,6 +22,7 @@ import { getToken, getPhoneEnvBool, getUserInfo } from '@/common/common'
import { downloadFile } from '@/api/common.js'
import { get_base_url } from '@/api/request.js'
var wv
var windowInfo = uni.getWindowInfo()
export default {
data() {
return {
@@ -33,7 +34,8 @@ export default {
showView: true,
wv: null,
userParams: '',
windowHeight: '100%'
windowHeight: '100%',
topHeight: 100
}
},
onLoad(params) {
@@ -43,9 +45,9 @@ export default {
}
const userInfo = getUserInfo();
this.userParams = '/' + (userInfo?.loginName??'') + '?tk=' + getToken()
const windowInfo = uni.getWindowInfo()
console.log(windowInfo.screenHeight)
this.windowHeight = windowInfo.screenHeight - 100 + 'px'
this.topHeight = windowInfo.statusBarHeight + 45
this.windowHeight = windowInfo.screenHeight - this.topHeight + 'px'
},
onShow() {
if (getPhoneEnvBool('AND')) {
@@ -75,10 +77,11 @@ export default {
methods: {
setHeight(res){
//#ifdef APP-PLUS
if(!wv) return
if(!wv) return
wv.setStyle({
top: res.height + 40
})
this.windowHeight = windowInfo.screenHeight - this.topHeight + 'px'
// #endif
},
backRouter() {