Houjie
2025-04-11 1bf977929dd324f3ac64b70debd8a79443c54392
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
<template>
    <view>
        <scroll-view :scroll-y="modalName==null" class="page">
            <cu-custom :bgColor="NavBarColor" :isBack="true">
                <block slot="backText">返回</block>
                <block slot="content">个人信息</block>
            </cu-custom>
            <view class="cu-list menu-avatar margin-top">
                <view class="cu-item">
                    <view class="cu-avatar round lg" v-if="infoList.avatar"  :style="[{backgroundImage:'url('+ infoList.avatar +')'}]"></view>
                    <view class="cu-avatar round lg" v-else :style="[{backgroundImage:'url('+ avatar +')'}]"></view>
                    <view class="content">
                        <view class="text-grey text-lg">{{infoList.realname?infoList.realname:infoList.username}}<text class="cuIcon-peoplefill margin-left-sm" :class="infoList.sex=='2'?'text-pink':'text-blue'"></text></view>
                        <view class="text-gray text-sm flex">
                            <view class="text-cut">
                                {{infoList.post}}
                            </view>
                        </view> 
                    </view>
                </view>    
            </view>
            
            <view class="cu-list menu margin-top">
                <view class="cu-item animation-slide-bottom" :style="[{animationDelay: '0.2s'}]">
                    <view class="content">
                        <text class="text-grey">手机</text>
                    </view>
                    <view class="action">
                        <text class="text-grey">{{infoList.phone?infoList.phone:phone}}</text>
                    </view>
                </view>
                <view class="cu-item animation-slide-bottom" :style="[{animationDelay: '0.3s'}]">
                    <view class="content">
                        <text class="text-grey">邮箱</text>
                    </view>
                    <view class="action">
                        <text class="text-grey">{{infoList.email?infoList.email:email}}</text>
                    </view>
                </view>
                <view class="cu-item animation-slide-bottom" :style="[{animationDelay: '0.4s'}]">
                    <view class="content">
                        <text class="text-grey">部门</text>
                    </view>
                    <view class="action">
                        <text class="text-grey">{{infoList.departName?infoList.departName:company}}</text>
                    </view>
                </view>
            </view>
            
        </scroll-view>
    </view>
</template>
 
<script>
    import {phone,email,company} from "@/common/util/constants"
    export default {
        data() {
            return {
                phone,
                email,
                company,
                NavBarColor:this.NavBarColor,
                avatar:'/static/login4.png',
                modalName: null,
                infoList:{
                    realname:'',
                    post:'',
                    avatar:'',
                    phone:null,
                    email:'',
                    department:'',
                    title:''
                },
            };
        },
        onLoad() {
             this.infoList = this.$Route.query;
             console.log("this.infoList>>>",this.infoList)
        },
        methods: {
            backRoute() {
                //通讯录个人信息页面返回问题
                if(this.infoList.page){
                    this.$Router.push({name:this.infoList.page})
                }else{
                    let parmas={
                        title:this.$Route.query.departName,
                        orgCode:this.$Route.query.orgCode
                    }
                    this.$Router.push({name: 'member',params:parmas})
                }
            },
        }
    }
</script>
 
<style>
    .page {
        height: 100Vh;
        width: 100vw;
    }
 
    .page.show {
        overflow: hidden;
    }
 
    .switch-sex::after {
        content: "\e716";
    }
 
    .switch-sex::before {
        content: "\e7a9";
    }
 
    .switch-music::after {
        content: "\e66a";
    }
 
    .switch-music::before {
        content: "\e6db";
    }
</style>