index.vue
1.85 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
<template>
<div>
<div class="box" style="padding: 0 10%">
<el-row class="contest-title">
<el-col>
<h3>{{ languageLibrary[language].a }}</h3>
</el-col>
</el-row>
<el-row>
<el-col class="photo-space" :lg="8" v-for="item in itemList">
<div class="photo-img-group">
<img class="photo-img" :src="fillImgUrl('/fs/20250729/image/8638425535731875840.png')">
<span style="display: block;font-size: 16px;margin:5px 0;color:#fff">LPT巡回赛</span>
</div>
</el-col>
</el-row>
</div>
</div>
</template>
<script setup>
import { ArrowRight, Search } from '@element-plus/icons-vue'
import { onMounted, ref } from 'vue'
import { getNewsListById } from '@/apiPc/webSite'
import { useRouter } from 'vue-router'
import {useStorage} from "@vueuse/core/index";
const language = useStorage('language', 0)
const languageLibrary = ref([{
a:'周边商城',
},{
a:'Mall',
},{
a:'몰 / 쇼핑몰',
},{
a:'ショップ',
},{
a:'Cửa hàng lưu niệm/ Cửa hàng phụ kiện',
}])
const router = useRouter()
const searchParam = ref({
type:'1',
text:'',
})
const itemList = ref(['a','a','a','a','a','a','a','a','a'])
onMounted(() => {
})
const getList = (obj) => {
getNewsListById(obj).then(res => {
newsList.value = res.rows
})
}
const goDetail = (id) => {
router.push({
path: `/photo/detail/${id}`
})
}
</script>
<style lang="scss" scoped>
.photo-space {
padding: 10px;
}
.photo-img-group {
padding: 20px;
width: 100%;
position: relative;
}
.photo-img {
width: 100%;
aspect-ratio: 2/1;
cursor: pointer;
}
.contest-title {
h3 {
color: #fff;
font-size: 32px;
}
}
@media (max-width: 500px) {
.box{width: 100%}
.forPc{display: none}
:deep(.el-tabs__nav-scroll){overflow: auto;}
:deep(.el-card__body){padding: 10px;}
}
</style>