diff --git a/src/pages/index/preview.vue b/src/pages/index/preview.vue index 94ed0383..2a5c0f2d 100644 --- a/src/pages/index/preview.vue +++ b/src/pages/index/preview.vue @@ -10,7 +10,7 @@ :fullscreen="true" :webview-styles="{ width: '100%', - height: '100%' + height: windowHeight }"> @@ -32,7 +32,8 @@ export default { viewerUrl: '/static/view-pdf/pdf.html', showView: true, wv: null, - userParams: '' + userParams: '', + windowHeight: '100%' } }, onLoad(params) { @@ -42,6 +43,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' }, onShow() { if (getPhoneEnvBool('AND')) { diff --git a/src/static/view-pdf/pdf.html b/src/static/view-pdf/pdf.html index c34e2b08..8e250935 100644 --- a/src/static/view-pdf/pdf.html +++ b/src/static/view-pdf/pdf.html @@ -20,9 +20,9 @@ height: 100%; } - body { + /* body { padding-bottom: 100px; - } + } */ .operate { position: fixed;