list.vue
4.79 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
<template>
<div>
<div class="box">
<el-button class="back-btn" @click="goback()">{{ languageLibrary[language].a }}</el-button>
<div class="list-title"></div>
<el-row style="margin: 20px 0">
<el-select class="list-select" v-model="searchParams.type">
<el-option
v-for="item in optionList"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-row>
<el-row>
<el-col v-for="item in testList" :lg="8">
<div class="child-card">
<el-button class="go-btn" @click="goDetail(item)"></el-button>
<el-row style="margin-bottom: 10px" class="not-start">未开始</el-row>
<el-row style="margin-bottom: 10px; font-weight: bold;font-size: 20px">LPT马拉西亚巡回赛</el-row>
<el-row style="margin-bottom: 10px;font-size: 16px">2025-11-02 9:00 ~ 2025-11-03 9:00</el-row>
<el-row>
<el-col :span="12">
<div style="display: flex;flex-direction: column;text-align: center">
<span style="font-size: 14px;color: #929AA0;margin-bottom: 5px">{{ languageLibrary[language].d }}</span>
<span style="color: #EEEEEE;font-size: 16px">$1111111111111111</span>
</div>
</el-col>
<el-col :span="12">
<div style="display: flex;flex-direction: column;text-align: center">
<span style="font-size: 14px;color: #929AA0;margin-bottom: 5px">{{ languageLibrary[language].e }}</span>
<span style="color: #EEEEEE;font-size: 16px">1000</span>
</div>
</el-col>
</el-row>
</div>
</el-col>
</el-row>
</div>
</div>
</template>
<script setup>
import { onMounted, ref } from 'vue'
import {getNewsListById, getnoteListcptid} from '@/apiPc/webSite'
import { useRoute, useRouter } from 'vue-router'
import {useStorage} from "@vueuse/core/index";
const route = useRoute()
const router = useRouter()
const language = useStorage('language', 0)
const languageLibrary = ref([{
a:'返回',
b:'主赛事',
c:'微型赛事',
d:'总买入费用',
e:'参赛席位',
},{
a:'Return',
b:'Main event',
c:'Mini event',
d:'Total buy-in fee',
e:'Entry seats',
},{
a:'돌아가기',
b:'메인 이벤트',
c:'미니 이벤트',
d:'총 바이인 금액',
e:'엔트리 수',
},{
a:'戻る',
b:'メインイベント',
c:'ミニイベント',
d:'バイイン総額',
e:'エントリー数',
},{
a:'Quay lại',
b:'Giải chính',
c:'Giải phụ',
d:'Tổng phí Buy-in',
e:'Số ghế tham gia',
}])
const optionList = ref([{
label: languageLibrary.value[language.value].b,
value:'1'
},{
label: languageLibrary.value[language.value].c,
value:'2'
}])
const searchParams = ref({
type:'1'
})
const testList = ref(['a','a','a','a','a','a','a','a','a','a','a'])
onMounted(() => {
})
const getList = () => {
console.log(query.value)
getNewsListById(query.value).then(res => {
newsList.value = res.rows
total.value = res.total
})
}
const goDetail = (n) => {
router.push({
path:`/contest/detail/${n}`
})
}
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;
}
.list-title {
width: 100%;
background: url("/dev-api/fs/20250729/image/8638425535731875840.png") no-repeat;
background-size: cover;
aspect-ratio: 16/3;
padding: 10%;
}
.list-select {
width: 200px;
:deep(.el-select__wrapper) {
background: #1f2644;
border: 1px solid #838CB3;
box-shadow: none;
}
:deep(.el-select__wrapper span) {
color: #fff;
}
:deep(.el-select__wrapper .el-select__caret) {
color: #fff;
}
:deep(.el-scrollbar__wrap) {
background-color: #000 !important;
}
:deep(.el-select-dropdown__item.is-hovering) {
background: rgba(255, 213, 121, 0.2);
}
:deep(.el-select-dropdown__item.is-selected) {
color: #fff;
}
:deep(.el-select-dropdown__item) {
line-height: 20px;
}
}
.child-card {
background: #1f2644;
border: 1px solid #1F477C;
border-radius: 15px;
color: #fff;
padding: 20px;
margin: 10px;
position: relative;
.not-start {
display: inline-block;
background: #3194FA;
border-radius:6px 0 6px 0;
padding: 0 4px
}
.go-btn {
background: url("/src/assets/v1/arrow00.png") no-repeat;
background-size: cover;
width: 40px;
height: 40px;
box-shadow: none;
border: none;
position: absolute;
right: 10px;
top: 10px;
z-index: 1;
}
}
</style>