jiangping
2024-05-08 cab86bd5a10b4e574ced9748a3718a5aa2d1b84b
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<script>
    export default {
        onLaunch: function() {
            var that = this
            if (!that.$store.state.openid) {
                let url = window.location.href
                let code = ''
                if (url.indexOf('code=') !== -1) {
                    const query = url.split('?')
 
                    for (const q of query) {
                        if (q.indexOf('code=') !== -1) {
                            code = q.substring(q.indexOf('code=') + 5, q.length)
                        }
                    }
                    that.$u.api.wxAuthorize({
                        code: code
                    }).then(res => {
                        if (res.code === 200) {
                            that.$store.commit('setOpenId', res.data.openid)
                            if (res.data.member) {
                                that.$store.commit('setMember', res.data.member)
                            }
                        }
                    })
                }
            }
        },
        onShow: function() {
            console.log('App Show')
        },
        onHide: function() {
            console.log('App Hide')
        }
    }
</script>
 
<style lang="scss">
    /*每个页面公共css */
    @import "uview-ui/index.scss";
 
    .flex-cb {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
 
    .container {
        height: 100%;
        width: 100%;
        max-width: 800rpx;
        overflow-y: auto;
    }
 
    .doumee-container .ivu-tabs-nav {
        width: 100%;
    }
 
    .doumee-container .ivu-tabs-nav .ivu-tabs-tab {
        width: calc(100% / 3);
    }
 
    .doumee-container .ivu-tabs-nav .ivu-tabs-tab {
        margin-right: 0;
        text-align: center;
    }
 
    .cell {
        background-color: #fff;
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 100rpx;
        padding: 24rpx 30rpx;
        box-sizing: border-box;
        border-bottom: 1rpx solid #eee;
        font-size: 15rpx;
        position: relative;
    }
 
    .cell .title {
        flex-shrink: 0;
        color: #222;
        line-height: 20rpx;
        height: 20rpx;
        width: 28%;
        margin-right: 5%;
    }
 
    .cell .content {
        flex: 1;
        font-size: 28rpx;
        font-weight: 400;
        color: #999999;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
 
    .cell .content .input {
        width: 100%;
        height: 100%;
        font-size: 28rpx;
        font-weight: 400;
        color: #333333;
        text-align: right;
    }
 
    .cell.is-link::after {
        content: '';
        display: block;
        width: 8rpx;
        height: 8rpx;
        transform: rotate(-45deg);
        border-right: 1rpx solid #999999;
        border-bottom: 1rpx solid #999999;
        margin-left: 5rpx;
    }
 
    .card {
        background-color: #fff;
        padding: 16rpx;
        position: relative;
    }
 
    .card::after {
        content: '';
        display: block;
        position: absolute;
        width: calc(100% - 32rpx);
        height: 0;
        bottom: 0;
        left: 16rpx;
        border-bottom: 1rpx solid #f7f7f7;
    }
 
    .card .title {
        color: #777777;
        margin-bottom: 12rpx;
    }
 
    .card .content {
        color: #222;
    }
        //设置圆角
        checkbox .uni-checkbox-input{
            border-radius: 50%;
        }
        checkbox .uni-checkbox-input.uni-checkbox-input-checked{
            color: #fff !important; 
            border: 1px solid #4d99a8 !important;
            background-color: #4d99a8 !important;
        }
        checkbox .uni-checkbox-input.uni-checkbox-input-checked:before{
            /* color: #4d99a8 !important;  */
            /* border: 1px solid #4d99a8 !important; */
            /* font-size: 58rpx; */
            /* border-radius: 50%; */
        }
 
</style>