1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
| <script>
| export default {
| onLaunch: function() {
| console.log('App Launch')
| },
| onShow: function() {
| console.log('App Show')
| },
| onHide: function() {
| console.log('App Hide')
| }
| }
| </script>
|
| <style>
| /*每个页面公共css */
| /* 解决小程序和app滚动条的问题 */
| /* #ifdef MP-WEIXIN || APP-PLUS */
| ::-webkit-scrollbar {
| display: none;
| width: 0 !important;
| height: 0 !important;
| -webkit-appearance: none;
| background: transparent;
| color: transparent;
| }
| /* #endif */
|
| /* 解决H5 的问题 */
| /* #ifdef H5 */
| uni-scroll-view .uni-scroll-view::-webkit-scrollbar {
| /* 隐藏滚动条,但依旧具备可以滚动的功能 */
| display: none;
| width: 0 !important;
| height: 0 !important;
| -webkit-appearance: none;
| background: transparent;
| color: transparent;
| }
| /* #endif */
| </style>
|
|