fix
13404089107
6 天以前 2e90f57e7d28d6a949247ef39b487d3e75b56683
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<script>
  import {
    mapState,
    mapMutations
  } from 'vuex'
    export default {
        onLaunch: function() {
      let userinfo = uni.getStorageSync('userInfo')
      if(userinfo){
        this.setUserInfo(userinfo)
      }
      let position = uni.getStorageSync('position')
      if(position){
        this.setPosition(position)
      }
      let system = uni.getSystemInfoSync()
      this.setSystemInfo(system)
      console.log(system)
        },
        onShow: function() {
        },
        onHide: function() {
        },
    methods:{
      ...mapMutations(['setUserInfo','setSystemInfo','setPosition']),
    }
    }
</script>
 
<style lang="scss">
  @import "@/uni_modules/uview-ui/index.scss";
    /*每个页面公共css */
  @font-face {
    font-family: 'PingFang Medium';
    src: url('~@/static/fonts/PingFang Medium.otf'); //你的资源目录
    font-weight: normal;
    font-style: normal;
  }
  
  view,text{
    box-sizing: border-box;
    font-size: 26rpx;
    font-family: 'PingFang Medium';
  }
  cover-view{
    overflow: auto;
    line-height: normal;
    font-family: 'PingFang Medium';
    visibility: initial;
  }
  
  
  .button{
    background-color: #ffffff;
    padding: 0;
    margin: 0;
    line-height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    &::after{
      border: none;
    }
  }
  .nomore{
    padding-top: 280rpx;
  }
  .safe-area-inset-bottom{
    padding-bottom: 0;
    padding-bottom: constant(safe-area-inset-bottom);  
    padding-bottom: env(safe-area-inset-bottom);  
  }
  
</style>