快乐的昕的电脑
2025-12-04 38c3c332ae1aa7ee2c520b2ee9ab52af995bbbc3
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
<script>
    export default {
        onShow: function() {
            console.log('App Show')
        },
        onHide: function() {
            console.log('App Hide')
        },
        onLaunch(options) {
            // options.query包含了URL中的参数
            console.log("APP:"+JSON.stringify(options.query));
            // 你可以根据需要来处理这些参数
          }
    }
</script>
 
<style>
    /*每个页面公共css */
    uni-page-wrapper{
        background-color: whitesmoke;
    }
    
    /* 统一按钮样式 */
    button{
        margin: 10px;
        padding: 8px 16px;
        border-radius: 4px;
        border: none;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    /* 提示信息样式 */
    .toast-message {
        font-size: 20px;
        font-weight: bold;
        padding: 16px 32px;
        border-radius: 8px;
        background-color: #1890ff;
        color: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        text-align: center;
        z-index: 9999;
    }
</style>