问题分析
uni-app发布后iOS端页面背景图片会跟着上下滑动。
解决方案
添加配置bounce
javascript
{
"pages": [
{
"path": "pages/login/login",
"style": {
"navigationStyle": "custom",
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"app-plus": {
"bounce": "none"
}
}
}
]
}
- bounce:页面回弹效果,设置为 "none" 时关闭效果。
参考
https://uniapp.dcloud.net.cn/collocation/pages.html#app-plus