detail.vue
12.9 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
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
<template>
<div>
<div class="box">
<el-button class="back-btn" @click="goback()">{{ languageLibrary[language].a }}</el-button>
<el-row class="detail-title">
<el-col :span="4" :xs="24">
<span v-if="projectMainInfo.status == '1'" style="background: #3194FA;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].o }}</span>
<span v-else-if="projectMainInfo.status == '2'" style="background: #21C9AB;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].p }}</span>
<span v-else style="background: #929AA0;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].q }}</span>
</el-col>
<el-col :span="8" :xs="24">
<div style="display: flex;flex-direction: column;">
<span style="font-size: 20px;font-weight: bold;margin-bottom: 5px">{{projectMainInfo.name}}</span>
<span>{{projectMainInfo.startTime + '~' + projectMainInfo.endTime}}</span>
</div>
</el-col>
<el-col class="fee-border" :span="4" :xs="24">
<div style="display: flex;flex-direction: column;text-align: center">
<span style="font-size: 14px;color: #929AA0;margin-bottom: 5px">{{ languageLibrary[language].b }}</span>
<span style="color: #EEEEEE;font-size: 16px">{{contestFee}}</span>
</div>
</el-col>
<el-col :span="4" :xs="24">
<div style="display: flex;flex-direction: column;text-align: center">
<span style="font-size: 14px;color: #929AA0;margin-bottom: 5px">{{ languageLibrary[language].c }}</span>
<span style="color: #EEEEEE;font-size: 16px">{{projectMainInfo.projectFormat}}</span>
</div>
</el-col>
</el-row>
<el-tabs v-model="activeName" class="detail-tabs" @tab-click="handleClick">
<el-tab-pane :label="languageLibrary[language].d" name="first">
<el-row class="detail-tabs-row-sin detail-tabs-row">
<el-col :lg="8" :sm="12" :xs="12"><span>{{ languageLibrary[language].h }}</span></el-col>
<el-col :lg="16" :sm="12" :xs="12"><span>{{projectMainTabA[0].field2}}</span></el-col>
</el-row>
<el-row class="detail-tabs-row-eve detail-tabs-row">
<el-col :lg="8" :sm="12" :xs="12"><span>{{ languageLibrary[language].i }}</span></el-col>
<el-col :lg="8" :sm="12" :xs="12"><span>{{projectMainTabA[1].field2}}</span></el-col>
</el-row>
<el-row class="detail-tabs-row-sin detail-tabs-row">
<el-col :lg="8" :sm="12" :xs="12"><span>{{ languageLibrary[language].j }}</span></el-col>
<el-col :lg="8" :sm="12" :xs="12"><span>{{projectMainTabA[2].field2}}</span></el-col>
</el-row>
<el-row class="detail-tabs-row-eve detail-tabs-row">
<el-col :lg="8" :sm="12" :xs="12"><span>{{ languageLibrary[language].k }}</span></el-col>
<el-col :lg="8" :sm="12" :xs="12"><span>{{projectMainTabA[3].field2}}</span></el-col>
</el-row>
<el-row class="detail-tabs-row-sin detail-tabs-row">
<el-col :lg="8" :sm="12" :xs="12"><span>{{ languageLibrary[language].l }}</span></el-col>
<el-col :lg="8" :sm="12" :xs="12"><span>{{projectMainTabA[4].field2}}</span></el-col>
</el-row>
<el-row class="detail-tabs-row-eve detail-tabs-row">
<el-col :lg="8" :sm="12" :xs="12"><span>{{ languageLibrary[language].m }}</span></el-col>
<el-col :lg="8" :sm="12" :xs="12"><span>{{projectMainTabA[5].field2}}</span></el-col>
</el-row>
<el-row class="detail-tabs-row-sin detail-tabs-row">
<el-col :lg="8" :sm="12" :xs="12"><span>{{ languageLibrary[language].n }}</span></el-col>
<el-col :lg="8" :sm="12" :xs="12"><span>{{projectMainTabA[6].field2}}</span></el-col>
</el-row>
<el-row class="detail-tabs-row-eve detail-tabs-row">
<el-col :lg="8" :sm="12" :xs="12"><span>{{ languageLibrary[language].v }}</span></el-col>
<el-col :lg="8" :sm="12" :xs="12"><span>{{projectMainTabA[7].field2}}</span></el-col>
</el-row>
</el-tab-pane>
<el-tab-pane :label="languageLibrary[language].e" name="second">
<el-table
v-if="projectMainTabOther.length > 0"
class="contest-table"
:data="projectMainTabOther"
:cell-style="{borderColor:'#3A405B',textAlign:'center',color:'#fff',padding: '15px 20px'}"
:header-cell-style="{fontSize:'16px',background:'#3A405B !important',borderColor:'#3A405B',textAlign:'center',color:'#929AA0',padding: '15px 20px'}"
>
<el-table-column label="等级" align="left" prop="field1" />
<el-table-column label="小盲" align="left" prop="field2" />
<el-table-column label="大盲" align="left" prop="field3" />
<el-table-column label="前置" align="left" prop="field4" />
<!-- <el-table-column label="规则标识" align="left" prop="field5" />-->
<el-table-column label="类型" align="left" prop="field6" />
<el-table-column label="级别时间" align="left" prop="field7" />
</el-table>
</el-tab-pane>
<el-tab-pane :label="languageLibrary[language].f" name="third">
<el-table
v-if="projectMainTabOther.length > 0"
class="contest-table"
:data="projectMainTabOther"
:cell-style="{borderColor:'#3A405B',textAlign:'center',color:'#fff',padding: '15px 20px'}"
:header-cell-style="{fontSize:'16px',background:'#3A405B !important',borderColor:'#3A405B',textAlign:'center',color:'#929AA0',padding: '15px 20px'}"
>
<el-table-column label="排名" align="left" prop="field1" />
<el-table-column label="选手" align="left" prop="field2" />
<el-table-column label="奖金" align="left" prop="field3" />
</el-table>
</el-tab-pane>
<el-tab-pane :label="languageLibrary[language].g" name="fourth">
<el-table
v-if="projectMainTabOther.length > 0"
class="contest-table"
:data="projectMainTabOther"
:cell-style="{borderColor:'#3A405B',textAlign:'center',color:'#fff',padding: '15px 20px'}"
:header-cell-style="{fontSize:'16px',background:'#3A405B !important',borderColor:'#3A405B',textAlign:'center',color:'#929AA0',padding: '15px 20px'}"
>
<el-table-column label="玩家姓名" align="left" prop="field1" />
<el-table-column label="轮次" align="left" prop="field2" />
<el-table-column label="筹码数量" align="left" prop="field3" />
<el-table-column label="桌号" align="left" prop="field4" />
<el-table-column label="座位号" align="left" prop="field5" />
</el-table>
</el-tab-pane>
</el-tabs>
</div>
</div>
</template>
<script setup>
import { onMounted, onUnmounted, ref, watch } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import {useStorage} from "@vueuse/core";
import {getProjectMain,getProjectTab} from '@/apiPc/webSite'
const router = useRouter()
const route = useRoute()
const contestFee = ref(0)
const activeName = ref("first")
const language = useStorage('language', 1)
const languageLibrary = ref([{
a:'返回',
b:'总买入费用',
c:'参赛席位',
d:'细节',
e:'盲注',
f:'结果',
g:'席位',
h:'赛事名称',
i:'总买入费用',
j:'入场费用',
k:'初始筹码数量',
l:'剩余/总席位',
m:'开始时间',
n:'最晚参赛时间',
o:'未开始',
p:'进行中',
q:'已结束',
v:'最晚参赛等级',
},{
a:'Return',
b:'Total buy-in fee',
c:'Entry seats',
d:'Details',
e:'Blind levels',
f:'Results',
g:'Seats',
h:'Event name',
i:'Total buy-in fee',
j:'Entry fee',
k:'Initial chip count',
l:'Remaining/Total seats',
m:'Start time',
n:'Latest entry time',
o:'Not started',
p:'In progress',
q:'Completed',
v:'Latest entry level',
},{
a:'돌아가기',
b:'총 바이인 금액',
c:'엔트리 수',
d:'세부 정보',
e:'블라인드 레벨',
f:'결과',
g:'좌석',
h:'경기명',
i:'총 바이인 금액',
j:'참가비',
k:'시작 칩 수량',
l:'잔여/전체 좌석',
m:'시작 시간',
n:'마지막 등록 시간',
o:'시작 전',
p:'진행 중',
q:'완료됨',
v:'마지막 등록 레벨',
},{
a:'戻る',
b:'バイイン総額',
c:'エントリー数',
d:'詳細',
e:'ブラインドレベル',
f:'結果',
g:'座席',
h:'イベント名',
i:'バイイン総額',
j:'エントリー費',
k:'初期スタック',
l:'残り/総座席数',
m:'開始時刻',
n:'最終エントリー時刻',
o:'未開始',
p:'進行中',
q:'完了',
v:'最終エントリーレベル',
},{
a:'Quay lại',
b:'Tổng phí Buy-in',
c:'Số ghế tham gia',
d:'Chi tiết ',
e:'Mức blind',
f:'Kết quả',
g:'Ghế',
h:'Tên giải đấu',
i:'Tổng phí Buy-in',
j:'Phí vào cửa ',
k:'Số chip khởi đầu',
l:'Ghế còn lại/ Tổng số ghế',
m:'Thời gian bắt đầu',
n:'Thời gian đăng kí muộn nhất',
o:'Chưa bắt đầu',
p:'Đang diễn ra',
q:'Đã hoàn thành',
v:'Cấp blind cuối cùng để đăng kí',
}])
const tId = ref()
const projectMainInfo = ref({})
const projectMainTabA = ref([
{
field2:''
},
{
field2:''
},
{
field2:''
},
{
field2:''
},
{
field2:''
},
{
field2:''
},
{
field2:''
},
{
field2:''
},
])
const projectMainTabOther = ref([])
const query = ref({
pageNum:1,
pageSize:9999,
cptId:'',
type:'1',
projectId:'',
})
onMounted(() => {
tId.value = route.params.id
getMainInfo()
})
const getMainInfo = () => {
getProjectMain(tId.value).then(res => {
if (res.code === 200) {
projectMainInfo.value = res.data
query.value.cptId = res.data.cptId
query.value.projectId = res.data.id
getProjectTabList(1)
}
})
}
const getProjectTabList = (n) => {
query.value.type = n
getProjectTab(query.value).then(res => {
if (res.code === 200) {
if (res.rows && res.rows.length > 0) {
if (n == 1) {
res.rows.forEach((item,index) => {
if (index === 1) {
contestFee.value = item.field2
}
projectMainTabA.value[index].field2 = item.field2
})
} else {
projectMainTabOther.value = res.rows
}
}
}
})
}
const handleClick = (n) => {
console.log("222222222222222222222222222")
let type = +n.index + 1
getProjectTabList(type)
}
const goback = function () {
router.go(-1)
}
</script>
<style lang="scss" scoped>
.box {
padding: 0 10%;
}
.back-btn {
font-size: 16px;
color: #fff;
background: url("@/assets/v1/arrow_left.png") no-repeat left;
background-size: auto 35px;
padding-left: 35px;
box-shadow: none;
border: none;
}
.detail-title {
color: #fff;
background: #1F2644;
padding: 40px 30px;
border-radius: 15px;
display: flex;
align-items: center;
text-align: center;
.not-start {
display: inline-block;
background: #3194FA;
border-radius:6px 0 6px 0;
padding: 0 4px
}
}
.detail-tabs {
margin: 50px 0;
background: #1f2644;
border-radius: 15px;
padding: 20px 40px;
:deep(.el-tabs__item) {
color: #fff;
font-size: 18px;
margin:10px 20px 20px 20px;
padding: 0 20px !important;
&:hover {
background: #000;
border-radius: 15px;
}
&.is-active {
color: #fff;
border: none;
border-radius: 15px;
background: rgba(255,255,255,0.3);
}
}
:deep(.el-tabs__content) {
background: #1f2644;
padding: 20px;
}
.detail-tabs-row {
color: #fff;
border: 1px solid #3a405b;
padding: 10px 30px;
font-size: 22px;
.el-col:nth-child(odd) {
color: #929AA0;
}
&.detail-tabs-row-eve {
background: #1f2644;
}
&.detail-tabs-row-sin {
background: #161d39;
}
}
:deep(.el-tabs__nav-wrap::after) {
background: #3A405B;
}
:deep(.el-tabs__active-bar) {
background: #fff;
}
:deep(.el-tabs__active-bar::before) {
border-bottom: 5px solid #fff;
}
}
.contest-table {
text-align: center;
border: 1px solid #3A405B;
:deep(.el-table--default .cell) {
padding: 10px 20px;
}
:deep(.el-table__body tr:nth-child(odd)) {
background-color: #1F2644; /* 设置奇数行的背景色 */
}
:deep(.el-table__body tr:nth-child(even)) {
background-color: #101738; /* 设置奇数行的背景色 */
}
:deep(.el-table__inner-wrapper::before) {
background: #3A405B;
}
:deep(tbody tr:hover>td) {
background: transparent !important
}
}
.fee-border {
border-left: 1px solid #929AA0;
border-right: 1px solid #929AA0
}
@media (max-width: 800px) {
.detail-tabs-row {
font-size: 18px !important;
}
.fee-border {
border: none;
}
}
</style>