index.vue
6.11 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
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<template>
<div>
<div class="box">
<div v-if="examSiteList.length>0" class="nakedTitle">
<h3>考点展示</h3>
<a class="more" @click="goExamPoints">MORE⇀</a>
</div>
<div class="mb20">
<el-row class="topNews newsimgcover" :gutter="20">
<el-col v-for="n in examSiteList" :key="n.memId" :lg="8" :sm="24" :md="8">
<el-card class="item">
<div class="imgbox">
<img :src="fillImgUrl(n.pictures?.split(',')[0])">
</div>
<div class="info">
<h2 class="esp">{{ n.name }}</h2>
<p class="esp">
<el-icon>
<LocationFilled />
</el-icon>
{{ n.adress }}
</p>
<p class="esp">
<el-icon>
<PhoneFilled />
</el-icon>
{{ n.contact }} —— {{ n.phone }}
</p>
</div>
</el-card>
</el-col>
</el-row>
</div>
<el-row :gutter="20" class="mb20">
<el-col :lg="12" :xs="24" :sm="12">
<div class="flex-panel">
<div class="pxPanel" @click="goTrain">
<div>
<h3>培训报名</h3>
<a><i />进入报名</a>
</div>
</div>
<div class="jsPanel" @click="goMatch">
<div>
<h3>竞赛报名</h3>
<a><i />进入报名</a>
</div>
</div>
</div>
</el-col>
<el-col :lg="12" :xs="24" :sm="12">
<div class="black-pic-bg">
<div class="item" @click="goCoach(1)">
<div><img src="@/assets/v1/hy_btn01.png">
<h3>教练员</h3></div>
</div>
<div class="item" @click="goCoach(2)">
<div><img src="@/assets/v1/hy_btn02.png">
<h3>裁判员</h3></div>
</div>
<div class="item" @click="goCoach(3)">
<div><img src="@/assets/v1/hy_btn04.png">
<h3>考官</h3></div>
</div>
</div>
</el-col>
</el-row>
<div class="nakedTitle">
<h3 style="display: flex;align-items: center;white-space: nowrap">单位会员
<el-select v-model="queryParams.deptAType" class="ml20 mr10" clearable @change="getMemList">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-input v-model="queryParams.name" clearable placeholder="请输入单位名称关键字" @keyup.enter="getMemList" />
</h3>
<a class="more" @click="goTeamVip">MORE⇀</a>
</div>
<el-card class="mb20">
<div v-for="m in memList" :key="m.memId" class="teamVipItem">
<div class="imgbox"><img :src="fillImgUrl_webSite(m.pictures)"></div>
<div class="info">
<h3 class="esp">{{ m.name }}</h3>
<p class="esp">
<el-icon>
<LocationFilled />
</el-icon>
{{ m.certAddress }}
</p>
<p class="esp">
<span><el-icon><PhoneFilled /></el-icon>{{ m.certSiteTel }}</span>
<span><el-icon><Checked /></el-icon>注册时间: {{ m.beginTime?.substr(0, 10) }}</span>
<span><el-icon><Failed /></el-icon>到期时间:{{ m.validityDate?.substr(0, 10) }}
<i :class="{'text-info':m.valiStatus=='1','text-danger':m.valiStatus=='2'}">({{ m.valiStr }})</i>
</span>
</p>
</div>
</div>
<el-empty v-if="memList.length == 0" description="暂无数据" />
</el-card>
</div>
</div>
</template>
<script setup>
import { onMounted, ref } from 'vue'
import { useRouter } from 'vue-router'
import { getExamSiteList, getMemberList } from '@/apiPc/common'
const router = useRouter()
const queryParams = ref({
pageNum: 1,
pageSize: 4,
deptAType: '',
name: ''
})
const options = ref([
{ value: '1', label: '一级单位会员' },
{ value: '2', label: '二级单位会员' },
{ value: '3', label: '三级单位会员' },
{ value: '4', label: '职业性单位会员' }
])
const examSiteList = ref([])
const memList = ref([])
onMounted(() => {
getExamSiteList({ pageSize: 3, pageNum: 1 })
.then(res => {
examSiteList.value = res.rows
})
getMemList()
})
const goCoach = (n) => {
router.push({
path: `/vip/pplist/${n}`
})
}
const goTeamVip = () => {
router.push({
name: 'teamVip'
})
}
const getMemList = () => {
getMemberList(queryParams.value).then((res) => {
memList.value = res.rows
})
}
const goExamPoints = () => {
router.push({
name: 'examPoints'
})
}
const goMatch = () => {
router.push({
name: 'matchList'
})
}
function goTrain() {
router.push({
name: 'trainList'
})
}
</script>
<style lang="scss" scoped>
.flex-panel {
display: flex;
}
.pxPanel, .jsPanel {
text-align: center;
padding: 1px;
cursor: pointer;
width: 50%;
height: 240px;
//aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
& > div {
}
h3 {
color: #fff;
font-size: 30px;
margin: 0 0 30px
}
a {
background: #fff;
border-radius: 20px;
padding: 10px 20px;
i {
padding: 0 15px;
}
}
&:hover {
filter: grayscale(0.5) drop-shadow(0 0 5px #999);
}
}
.pxPanel {
background: url("@/assets/v1/ss01.png") no-repeat center;
background-size: cover;
margin-right: 10px;
a {
color: var(--el-color-golden);
i {
background: url("@/assets/v1/js_btn01.png") no-repeat;
background-size: contain
}
}
}
.jsPanel {
margin-left: 10px;
background: url("@/assets/v1/ss02.png") no-repeat center;
background-size: cover;
a {
color: var(--el-color-primary);
i {
background: url("@/assets/v1/js_btn02.png") no-repeat;
background-size: contain
}
}
}
</style>