leaderInfo.vue
3.53 KB
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
<template>
<div>
<div class="box">
<el-breadcrumb class="mt20" :separator-icon="ArrowRight">
<el-breadcrumb-item :to="{ path: '/' }">
<el-icon>
<HomeFilled />
</el-icon>
{{ language==0?'首页':'Home' }}
</el-breadcrumb-item>
<el-breadcrumb-item>{{ language==0?'评委详情':'Judge Details' }}</el-breadcrumb-item>
</el-breadcrumb>
<el-card class="mt20">
<el-row class="mt20">
<el-col v-if="person.picUrl" :span="8">
<div class="imgbox" style="text-align: right;padding-right: 50px">
<img :src="fillImgUrl_webSite(person.picUrl)" style="display: inline-block;width: auto;max-width: 100%">
</div>
</el-col>
<el-col :span="16">
<div style="display: flex;">
<div class="l-border mr50">
<h3>{{ person.realName }}</h3>
<h5>{{ person.ecRelationship }}</h5>
</div>
<div class="l-border">
<h5>{{ person.sex == '1' ? '男' : '女' }}</h5>
<h5>{{ person.birth?.substring(0, 10) }} </h5>
</div>
</div>
<div class="l-border">
<div class="con" v-html="person.remark" />
</div>
</el-col>
</el-row>
</el-card>
</div>
<div class="h5-panel forWei">
<div class="wPanel">
<div class="mt20">
<img class="mauto" :src="fillImgUrl_webSite(person.picUrl)">
</div>
<el-row class="mt20 pd20">
<el-col :span="12">
<div class="l-border">
<h3>{{ person.realName }}</h3>
<h5>{{ person.ecRelationship }}</h5>
</div>
</el-col>
<el-col :span="12">
<div class="l-border">
<h5>{{ person.sex == '1' ? '男' : '女' }}</h5>
<h5>{{ person.birth?.substring(0, 10) }} </h5>
</div>
</el-col>
<el-col :span="24">
<div>
<div class="richtext" v-html="person.remark" />
</div>
</el-col>
</el-row>
</div>
</div>
</div>
</template>
<script setup>
import { ArrowRight } from '@element-plus/icons-vue'
import { onMounted, ref } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { getPersonInfo } from '@/apiPc/webSite'
import {useStorage} from "@vueuse/core/index";
const language= useStorage('language',0)
let personId
const route = useRoute()
const person = ref({})
const from = ref('')
onMounted(() => {
personId = route.params.id
if (route.query.from) {
from.value = route.query.from
}
getData()
})
const getData = () => {
getPersonInfo(personId).then(res => {
person.value = res.data
person.value.ecRelationship = decodeURIComponent(route.query.name) || ''
})
}
</script>
<style lang="scss" scoped>
.con{white-space: normal!important;text-wrap: wrap!important;
p{white-space: normal!important;text-wrap: wrap!important;
span{white-space: normal!important;text-wrap: wrap!important;}
}
span{white-space: normal!important;text-wrap: wrap!important;}
}
.l-border {
padding: 1px 0 0 35px;
border-left: 1px solid #9D630F;
}
h3 {
color: #9D630F;
margin: 0 0 20px;
font-size: 30px;
}
h5 {
margin: 0 0 20px;
color: #000000;
font-size: 20px;
}
p {
margin: 0 0 20px;
color: #0D0D0D;
line-height: 1.8;
font-size: 16px;
}
.forWei {
display: none;
}
@media (max-width: 500px) {
.forWei {
display: block;
}
.box{display: none}
}
</style>