Liuyi
2024-10-09 16c98154ca67d48665ed3a83874d43fdc626ac60
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
<script setup>
    import { onMounted, ref } from 'vue'
 
    const userInfo = ref(JSON.parse(uni.getStorageSync('userInfo')))
</script>
<template>
    <view class="container">
        <navbar title = '用户资料'></navbar>
        <view class="content">
            <view class="info-box">
                <view class="info-up">
                    <view>
                        <text>头像</text>
                        <image src='../../static/logo.png' alt=''></image>
                    </view>
                    <view>
                        <text>用户名称</text>
                        <text class="info-value">{{userInfo.userName}}</text>
                    </view>
                </view>
                <view class="info-list">
                    <view class="item">
                        <text>会员卡号</text>
                        <text>{{userInfo.waterCardNumber}}</text>
                    </view>
                    <view class="item">
                        <text>联系方式</text>
                        <view>
                            <text>{{userInfo.userPhone}}</text>
                            <image class="edit"src="../../static/images//other/more.png" alt=''></image>
                        </view>
                    </view>
                </view>
            </view>
            <view class="subBtn">确认修改</view>
        </view>
    </view>
</template>
 
<style lang="scss">
    .container{
        width: 100%;
        height: 100vh;
        .content{
            width: 100%;
            height:calc(100vh - 176rpx);
            background:linear-gradient(to top,#FFFFFF,#E8EFFF);  
            padding-top:36rpx;
            position: relative;
            .info-value{
                font-size:32rpx;
                color: #777777;
            }
            .edit{
                margin-left:15rpx;
                width: 20rpx;
                height:28rpx;
            }
            .info-box{
                width: 100%;
                .info-up{
                    height:308rpx;
                    width:100%;
                    background: #FFFFFF;
                    padding:32rpx;
                    display: flex;
                    justify-content:space-between;
                    align-items:center;
                    flex-direction: column;
                    box-sizing: border-box;
                    font-size: 32rpx;
                    color: #343434;
                    view:first-child{
                        width:100%;
                        display: flex;
                        justify-content:space-between;
                        align-items:center;
                        image{
                            width:100rpx;
                            height:100rpx;
                            border-radius: 50rpx;
                        }
                    }
                    view:last-child{
                        width:100%;
                        display: flex;
                        justify-content:space-between;
                        align-items:center;
                    }
                }
                .info-list{
                    width:100%;
                    height:252rpx;
                    display: flex;
                    flex-direction:column;
                    justify-content:space-between;
                    align-items: center;
                    margin-top:20rpx;
                    .item{
                        width:100%;
                        height: 116rpx;
                        background-color: #FFFFFF;
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        padding:0 32rpx;
                        box-sizing: border-box;
                        text:last-child{
                            color: #777777;
                        }
                        view{
                            height: 116rpx;
                            display: flex;
                            justify-content:flex-end;
                            align-items: center;
                            text{
                                color: #777777;
                            }
                        }
                    }
                }
            }
            .subBtn{
                width: 686rpx;
                height: 98rpx;
                background:#5EA1FA;
                border-radius:50rpx;
                text-align: center;
                line-height: 98rpx;
                letter-spacing:3rpx;
                font-weight: 300;
                font-size: 36rpx;
                color: #FFFFFF;
                position: absolute;
                bottom:100rpx;
                left:32rpx;
            }
        }
    }
</style>