Commit 401d83fde504f7bf0cfcf327a97b9eafbf14de75

Authored by sqy
1 parent e7657858

fix:固定首页滚动

Showing 2 changed files with 11 additions and 10 deletions
... ... @@ -32,18 +32,17 @@ export default {
32 32 </script>
33 33
34 34 <style lang="scss">
35   -/* #ifndef APP-NVUE */
36 35 @import '@/uni_modules/uview-ui/index.scss';
37 36 @import './style/iconfont.scss';
38 37 @import './style/common.scss';
39 38 page {
40 39 background-color: #f5f5f5;
  40 +}
  41 +::-webkit-scrollbar {
  42 + display: none;
  43 + width: 0 !important;
  44 + height: 0 !important;
  45 + -webkit-appearance: none;
  46 + background: transparent;
41 47 }
42   -// 隐藏滚动条
43   -::-webkit-scrollbar {
44   - width: 0;
45   - height: 0;
46   - color: transparent;
47   -}
48   -/* #endif */
49 48 </style>
... ...
... ... @@ -5,7 +5,8 @@
5 5 "pages": [{
6 6 "path": "pages/index/index",
7 7 "style": {
8   - "navigationBarTitleText": "首页"
  8 + "navigationBarTitleText": "首页",
  9 + "disableScroll": true
9 10 }
10 11 },
11 12 {
... ... @@ -146,7 +147,8 @@
146 147 "navigationBarTextStyle": "black",
147 148 "navigationBarTitleText": "云腾app",
148 149 "navigationBarBackgroundColor": "#FFFFFF",
149   - "backgroundColor": "#FFFFFF"
  150 + "backgroundColor": "#FFFFFF",
  151 + "backgroundColorTop": "#FFFFFF"
150 152 },
151 153 "tabBar": {
152 154 "color": "#ffffff",
... ...