Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-05-18 17:20:32 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dcb9108251bfb01466a1cbeec62b116dfc4c0fd9
dcb91082
1 parent
0b32d837
fix 处理后退导航栏影响高度问题
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
src/views/client/index.vue
src/views/client/index.vue
View file @
dcb9108
...
...
@@ -50,17 +50,17 @@ function hasScrollbar() {
return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight);
}
onMounted(() => {
// TODO: 临时处理位置不对问题
// onMounted(() => {
// 因为微信第一次进入默认全屏,之后产生的导航栏会影响位置
if (hasScrollbar()) {
if (wxInfo().isiOS || wxInfo().isAndroid) {
location.reload()
}
}
// if (hasScrollbar()) {
// if (wxInfo().isiOS || wxInfo().isAndroid) {
// location.reload()
// $router.go(0)
// }
// }
// 背景颜色全屏
$('.client-index-page').height($(document).height());
})
//
$('.client-index-page').height($(document).height());
//
})
// 自定义按钮颜色样式
const styleObject1 = reactive({
...
...
@@ -145,6 +145,7 @@ export default {
background-image: url('@images/yindao@2x.png');
background-repeat: no-repeat;
width: 100%;
height: 100vh;
background-size: 100% 85%;
position: relative;
}
...
...
Please
register
or
login
to post a comment