Mr.Shi
2023-08-23 c43e9ca8e4baa3e31c1da3c086ec8f1a7d12e438
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
<template>
<view>
    <div class="box">
        <div class="box_info" :style="{background: 'url(' + img + ')'}">
            <image src="@/static/2@2x.png" mode="widthFix" />
            <div class="box_info_box">
                <text>张三</text>
                <div class="box_info_box_x">
                    <text>豆米科技</text>
                    <image src="@/static/mine_ic_change@2x.png" alt="" />
                </div>
            </div>
        </div>
        <div class="box_function">
            <div class="box_function_item" v-for="(item, index) in MENU" :key="index">
                <div class="box_function_item_left">
                    <image :src="item.icon" alt="" />
                    <text>{{item.name}}</text>
                </div>
                <div class="box_function_item_right">
                    <van-icon name="arrow" size="20" color="#CCCCCC" />
                </div>
            </div>
        </div>
        <div class="box_out"><text>退出登录</text></div>
    </div>
    <myTabbar :index="2" />
</view>
</template>
 
<script>
    import myTabbar from "@/components/myTabber.vue"
    export default {
        components: {
            myTabbar
        },
        data() {
            return {
                MENU: [
                    { name: '个人信息', url: '/personal/personalInformation', icon: require('@/static/mine_ic_gerenxinxi@2x.png') },
                    // { name: '系统通知', url: '', icon: require('@/assets/icon/mine_ic_xitonggonggao@2x.png') },
                    { name: '更新手机号', url: '/personal/updatePhone', icon: require('@/static/mine_ic_shoujihao@2x.png') },
                    { name: '更新邮箱号', url: '/personal/updateMailbox', icon: require('@/static/mine_ic_youxianghao@2x.png') },
                    { name: '扫码绑定账号', url: '', icon: require('@/static/mine_ic_bangding@2x.png') },
                    { name: '修改密码', url: '/personal/changePassword', icon: require('@/static/mine_ic_xiugaimima@2x.png') },
                ],
                img: require('@/static/mine_bg@2x.png')
            }
        },
        onLoad() {
            uni.hideTabBar()
            // uni.login({
            //     success: data => {
            //         this.wxLogin(data.code)
            //     },
            //     fail: err => {
            //         uni.$u.toast(err)
            //     }
            // })
        },
        methods: {
        }
    }
</script>
 
<style lang="scss" scoped>
    .box {
        width: 100%;
        padding: 30rpx;
        box-sizing: border-box;
        .box_info {
            padding: 0 30rpx;
            height: 168rpx;
            border-radius: 16rpx;
            display: flex;
            align-items: center;
            background-repeat: no-repeat;
            background-size: cover;
            image {
                width: 88rpx;
                height: 88rpx;
            }
            .box_info_box {
                height: 88rpx;
                display: flex;
                margin-left: 30rpx;
                flex-direction: column;
                justify-content: space-between;
                .box_info_box_x {
                    display: flex;
                    align-items: center;
                    text {
                        font-size: 26rpx;
                        font-weight: 400;
                        color: rgba(255, 255, 255, 0.8);
                    }
                    image {
                        width: 26rpx;
                        height: 26rpx;
                        margin-left: 10rpx;
                    }
                }
                text {
                    font-size: 34rpx;
                    font-weight: 500;
                    color: #FFFFFF;
                }
            }
        }
        .box_function {
            margin-top: 30rpx;
            .box_function_item {
                display: flex;
                align-items: center;
                justify-content: space-between;
                height: 98rpx;
                border-bottom: 1rpx solid #E5E5E5;
                /*&:last-child {*/
                /*    border: none;*/
                /*}*/
                .box_function_item_left {
                    display: flex;
                    align-items: center;
                    image {
                        width: 36rpx;
                        height: 36rpx;
                        margin-right: 24rpx;
                    }
                    text {
                        font-size: 30rpx;
                        font-weight: 400;
                        color: #222222;
                    }
                }
            }
        }
        .box_out {
            position: fixed;
            bottom: 200rpx;
            left: 50%;
            transform: translate(-50%, 0);
            width: 350rpx;
            height: 88rpx;
            background: #F7F7F7;
            border-radius: 8rpx;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 30rpx;
            font-weight: 400;
            color: #333333;
        }
    }
</style>