zs
2025-05-20 1772504da433bec2f1695d47e5946c1192e876fb
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
75
76
77
78
79
80
81
82
83
84
85
<script>
export default {
    onLaunch: function() {
        uni.getSystemInfo({
            success:(res=>{
                if (!res.safeAreaInsets) res.safeAreaInsets = {}
                if (!res.safeAreaInsets) res.safeArea = {}
                let safetySize = {
                    top:(res.safeAreaInsets.top || 0),
                    bottom:(res.safeAreaInsets.bottom || 0),
                    left:(res.safeAreaInsets.left || 0),
                    right:(res.safeAreaInsets.right || 0)
                }
                safetySize.height = res.safeArea.height || 0
                this.$store.commit('system/setSafety',safetySize)
            })
        })
        /* 获取并记录版本号 */
        try{
            plus.runtime.getProperty(plus.runtime.appid, (res)=>{
                this.$store.commit('system/setVersion',res.version)
            });
        }catch(e){
            //TODO handle the exception
        }
    },
    onShow: function() {
        console.log('App Show')
    },
    onHide: function() {
        console.log('App Hide')
    }
}
</script>
 
<style lang="scss">
@import "@/static/fonts/iconfont.css";
@import "@/uni_modules/uview-ui/index.scss";
.app-page {
    font-size: 28rpx;
    color: $uni-text-color;
    background-color: $uni-bg-color;
    box-sizing: border-box;
    overflow: hidden;
}
.auto-wrap{
    word-break:break-all;
    word-wrap:break-word; 
}
.no-wrap,.ellipsis{
    white-space:nowrap;
}
.ellipsis{
    overflow:hidden;
    text-overflow:ellipsis;
}
.ml{
    margin-left: 12rpx;
}
.mr{
    margin-right: 12rpx;
}
.no-more-text-row{
    text-align: center;
    color: $uni-text-color-grey;
    padding: 4rpx 0;
}
.page-frame{
    position: relative;
    box-sizing: border-box;
    &.with-action-user-row{
            padding-top: 54rpx;;
    }
    .with-action-user-row-page-content{
        height: 100%;
        position: relative;
        box-sizing: border-box;
        overflow: auto;
    }
}
.link-text,.enable-input{
    color: $u-primary;
    text-decoration: underline;
}
</style>