9eb08d5a by zrj

lpt 9.5首页修改

1 parent 174682fa
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
4 <el-row align="middle" justify="space-between"> 4 <el-row align="middle" justify="space-between">
5 <el-col :span="18"> 5 <el-col :span="18">
6 <div class="text-center copyright pd10">{{ languageLibrary[language].a }} 6 <div class="text-center copyright pd10">{{ languageLibrary[language].a }}
7 <a href="https://beian.miit.gov.cn/" target="_blank">ICP备案号:苏ICP备2023054420号-2</a></div> 7 <!-- <a href="https://beian.miit.gov.cn/" target="_blank">ICP备案号:苏ICP备2023054420号-2</a>-->
8 </div>
8 </el-col> 9 </el-col>
9 <el-col :span="6"> 10 <el-col :span="6">
10 <div> 11 <div>
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
3 <div class="box"> 3 <div class="box">
4 <el-button class="back-btn" @click="goback()">{{ languageLibrary[language].a }}</el-button> 4 <el-button class="back-btn" @click="goback()">{{ languageLibrary[language].a }}</el-button>
5 <el-row class="detail-title"> 5 <el-row class="detail-title">
6 <el-col :span="2"> 6 <el-col :span="4">
7 <span v-if="projectMainInfo.enrollStatusStr == '未开始'" style="background: #3194FA;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].o }}</span> 7 <span v-if="projectMainInfo.enrollStatusStr == '未开始'" style="background: #3194FA;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].o }}</span>
8 <span v-else-if="projectMainInfo.enrollStatusStr == '进行中'" style="background: #21C9AB;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].p }}</span> 8 <span v-else-if="projectMainInfo.enrollStatusStr == '进行中'" style="background: #21C9AB;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].p }}</span>
9 <span v-else style="background: #929AA0;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].q }}</span> 9 <span v-else style="background: #929AA0;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].q }}</span>
10 </el-col> 10 </el-col>
11 <el-col :span="6"> 11 <el-col :span="8">
12 <div style="display: flex;flex-direction: column;"> 12 <div style="display: flex;flex-direction: column;">
13 <span style="font-size: 20px;font-weight: bold;margin-bottom: 5px">{{projectMainInfo.name}}</span> 13 <span style="font-size: 20px;font-weight: bold;margin-bottom: 5px">{{projectMainInfo.name}}</span>
14 <span>{{projectMainInfo.startTime + '~' + projectMainInfo.endTime}}</span> 14 <span>{{projectMainInfo.startTime + '~' + projectMainInfo.endTime}}</span>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
17 <el-col style="border-left: 1px solid #929AA0;border-right: 1px solid #929AA0" :span="4"> 17 <el-col style="border-left: 1px solid #929AA0;border-right: 1px solid #929AA0" :span="4">
18 <div style="display: flex;flex-direction: column;text-align: center"> 18 <div style="display: flex;flex-direction: column;text-align: center">
19 <span style="font-size: 14px;color: #929AA0;margin-bottom: 5px">{{ languageLibrary[language].b }}</span> 19 <span style="font-size: 14px;color: #929AA0;margin-bottom: 5px">{{ languageLibrary[language].b }}</span>
20 <span style="color: #EEEEEE;font-size: 16px">${{projectMainInfo.serviceFee}}</span> 20 <span style="color: #EEEEEE;font-size: 16px">{{projectMainInfo.serviceFee}}</span>
21 </div> 21 </div>
22 </el-col> 22 </el-col>
23 <el-col :span="4"> 23 <el-col :span="4">
...@@ -30,40 +30,41 @@ ...@@ -30,40 +30,41 @@
30 <el-tabs v-model="activeName" class="detail-tabs" @tab-click="handleClick"> 30 <el-tabs v-model="activeName" class="detail-tabs" @tab-click="handleClick">
31 <el-tab-pane :label="languageLibrary[language].d" name="first"> 31 <el-tab-pane :label="languageLibrary[language].d" name="first">
32 <el-row class="detail-tabs-row-sin detail-tabs-row"> 32 <el-row class="detail-tabs-row-sin detail-tabs-row">
33 <el-col :span="4"><span>{{ languageLibrary[language].h }}</span></el-col> 33 <el-col :span="8"><span>{{ languageLibrary[language].h }}</span></el-col>
34 <el-col :span="20"><span>{{projectMainTabA[0].field2}}</span></el-col> 34 <el-col :span="16"><span>{{projectMainTabA[0].field2}}</span></el-col>
35 </el-row> 35 </el-row>
36 <el-row class="detail-tabs-row-eve detail-tabs-row"> 36 <el-row class="detail-tabs-row-eve detail-tabs-row">
37 <el-col :span="4"><span>{{ languageLibrary[language].i }}</span></el-col> 37 <el-col :span="8"><span>{{ languageLibrary[language].i }}</span></el-col>
38 <el-col :span="20"><span>{{projectMainTabA[1].field2}}</span></el-col> 38 <el-col :span="16"><span>{{projectMainTabA[1].field2}}</span></el-col>
39 </el-row> 39 </el-row>
40 <el-row class="detail-tabs-row-sin detail-tabs-row"> 40 <el-row class="detail-tabs-row-sin detail-tabs-row">
41 <el-col :span="4"><span>{{ languageLibrary[language].j }}</span></el-col> 41 <el-col :span="8"><span>{{ languageLibrary[language].j }}</span></el-col>
42 <el-col :span="20"><span>{{projectMainTabA[2].field2}}</span></el-col> 42 <el-col :span="16"><span>{{projectMainTabA[2].field2}}</span></el-col>
43 </el-row> 43 </el-row>
44 <el-row class="detail-tabs-row-eve detail-tabs-row"> 44 <el-row class="detail-tabs-row-eve detail-tabs-row">
45 <el-col :span="4"><span>{{ languageLibrary[language].k }}</span></el-col> 45 <el-col :span="8"><span>{{ languageLibrary[language].k }}</span></el-col>
46 <el-col :span="20"><span>{{projectMainTabA[3].field2}}</span></el-col> 46 <el-col :span="16"><span>{{projectMainTabA[3].field2}}</span></el-col>
47 </el-row> 47 </el-row>
48 <el-row class="detail-tabs-row-sin detail-tabs-row"> 48 <el-row class="detail-tabs-row-sin detail-tabs-row">
49 <el-col :span="4"><span>{{ languageLibrary[language].l }}</span></el-col> 49 <el-col :span="8"><span>{{ languageLibrary[language].l }}</span></el-col>
50 <el-col :span="20"><span>{{projectMainTabA[4].field2}}</span></el-col> 50 <el-col :span="16"><span>{{projectMainTabA[4].field2}}</span></el-col>
51 </el-row> 51 </el-row>
52 <el-row class="detail-tabs-row-eve detail-tabs-row"> 52 <el-row class="detail-tabs-row-eve detail-tabs-row">
53 <el-col :span="4"><span>{{ languageLibrary[language].m }}</span></el-col> 53 <el-col :span="8"><span>{{ languageLibrary[language].m }}</span></el-col>
54 <el-col :span="20"><span>{{projectMainTabA[5].field2}}</span></el-col> 54 <el-col :span="16"><span>{{projectMainTabA[5].field2}}</span></el-col>
55 </el-row> 55 </el-row>
56 <el-row class="detail-tabs-row-sin detail-tabs-row"> 56 <el-row class="detail-tabs-row-sin detail-tabs-row">
57 <el-col :span="4"><span>{{ languageLibrary[language].n }}</span></el-col> 57 <el-col :span="8"><span>{{ languageLibrary[language].n }}</span></el-col>
58 <el-col :span="20"><span>{{projectMainTabA[6].field2}}</span></el-col> 58 <el-col :span="16"><span>{{projectMainTabA[6].field2}}</span></el-col>
59 </el-row> 59 </el-row>
60 <el-row class="detail-tabs-row-eve detail-tabs-row"> 60 <el-row class="detail-tabs-row-eve detail-tabs-row">
61 <el-col :span="4"><span>{{ languageLibrary[language].v }}</span></el-col> 61 <el-col :span="8"><span>{{ languageLibrary[language].v }}</span></el-col>
62 <el-col :span="20"><span>{{projectMainTabA[7].field2}}</span></el-col> 62 <el-col :span="16"><span>{{projectMainTabA[7].field2}}</span></el-col>
63 </el-row> 63 </el-row>
64 </el-tab-pane> 64 </el-tab-pane>
65 <el-tab-pane :label="languageLibrary[language].e" name="second"> 65 <el-tab-pane :label="languageLibrary[language].e" name="second">
66 <el-table 66 <el-table
67 v-if="projectMainTabOther.length > 0"
67 class="contest-table" 68 class="contest-table"
68 :data="projectMainTabOther" 69 :data="projectMainTabOther"
69 :cell-style="{borderColor:'#3A405B',textAlign:'center',color:'#fff',padding: '15px 20px'}" 70 :cell-style="{borderColor:'#3A405B',textAlign:'center',color:'#fff',padding: '15px 20px'}"
...@@ -80,6 +81,7 @@ ...@@ -80,6 +81,7 @@
80 </el-tab-pane> 81 </el-tab-pane>
81 <el-tab-pane :label="languageLibrary[language].f" name="third"> 82 <el-tab-pane :label="languageLibrary[language].f" name="third">
82 <el-table 83 <el-table
84 v-if="projectMainTabOther.length > 0"
83 class="contest-table" 85 class="contest-table"
84 :data="projectMainTabOther" 86 :data="projectMainTabOther"
85 :cell-style="{borderColor:'#3A405B',textAlign:'center',color:'#fff',padding: '15px 20px'}" 87 :cell-style="{borderColor:'#3A405B',textAlign:'center',color:'#fff',padding: '15px 20px'}"
...@@ -92,6 +94,7 @@ ...@@ -92,6 +94,7 @@
92 </el-tab-pane> 94 </el-tab-pane>
93 <el-tab-pane :label="languageLibrary[language].g" name="fourth"> 95 <el-tab-pane :label="languageLibrary[language].g" name="fourth">
94 <el-table 96 <el-table
97 v-if="projectMainTabOther.length > 0"
95 class="contest-table" 98 class="contest-table"
96 :data="projectMainTabOther" 99 :data="projectMainTabOther"
97 :cell-style="{borderColor:'#3A405B',textAlign:'center',color:'#fff',padding: '15px 20px'}" 100 :cell-style="{borderColor:'#3A405B',textAlign:'center',color:'#fff',padding: '15px 20px'}"
......
...@@ -3,16 +3,16 @@ ...@@ -3,16 +3,16 @@
3 <div class="box"> 3 <div class="box">
4 <el-button class="back-btn" @click="goback()">{{ languageLibrary[language].a }}</el-button> 4 <el-button class="back-btn" @click="goback()">{{ languageLibrary[language].a }}</el-button>
5 <div style="position: relative"> 5 <div style="position: relative">
6 <img class="list-title" :src="fillImgUrl(mainInfo.coverUrl)"> 6 <div class="list-title" />
7 <div style="position: absolute;color: #fff;top:15%;left:5%"> 7 <div style="position: absolute;color: #fff;top:15%;left:5%;width: 100%">
8 <el-row style="font-size: 16px;margin-bottom: 25px"> 8 <el-row class="mg-bottom" style="font-size: 16px;">
9 <div v-if="mainInfo.enrollStatusStr == '未开始'" style="background: #3194FA;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].g }}</div> 9 <div v-if="mainInfo.enrollStatusStr == '未开始'" style="background: #3194FA;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].g }}</div>
10 <div v-else-if="mainInfo.enrollStatusStr == '进行中'" style="background: #21C9AB;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].h }}</div> 10 <div v-else-if="mainInfo.enrollStatusStr == '进行中'" style="background: #21C9AB;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].h }}</div>
11 <div v-else style="background: #929AA0;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].i }}</div> 11 <div v-else style="background: #929AA0;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].i }}</div>
12 </el-row> 12 </el-row>
13 <el-row style="font-size: 38px;margin-bottom: 25px"><span>{{mainInfo.name}}</span></el-row> 13 <el-row class="mg-bottom" style="font-size: 38px;"><span>{{mainInfo.name}}</span></el-row>
14 <el-row style="font-size: 20px;margin-bottom: 25px"><span>{{mainInfo.beginTime + '~' + mainInfo.endTime}}</span></el-row> 14 <el-row class="mg-bottom" style="font-size: 20px;"><img style="margin-right: 2%" src="@/assets/v1/tag01.png" /><span>{{mainInfo.beginTime}}</span></el-row>
15 <el-row style="font-size: 20px"><span>{{mainInfo.address}}</span></el-row> 15 <el-row style="font-size: 20px"><img style="margin-right: 2%" src="@/assets/v1/tag02.png" /><span>{{mainInfo.address}}</span></el-row>
16 </div> 16 </div>
17 </div> 17 </div>
18 <el-row style="margin: 20px 0"> 18 <el-row style="margin: 20px 0">
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
34 <div class="child-card"> 34 <div class="child-card">
35 <el-button class="go-btn" @click="goDetail(item.id)"></el-button> 35 <el-button class="go-btn" @click="goDetail(item.id)"></el-button>
36 <el-row style="margin-bottom: 10px"> 36 <el-row style="margin-bottom: 10px">
37 <div v-if="competitionList.enrollStatusStr == '未开始'" style="background: #3194FA;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].g }}</div> 37 <div v-if="item.statusStr == '未开始'" style="background: #3194FA;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].g }}</div>
38 <div v-else-if="competitionList.enrollStatusStr == '进行中'" style="background: #21C9AB;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].h }}</div> 38 <div v-else-if="item.statusStr == '进行中'" style="background: #21C9AB;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].h }}</div>
39 <div v-else style="background: #929AA0;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].i }}</div> 39 <div v-else style="background: #929AA0;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].i }}</div>
40 </el-row> 40 </el-row>
41 <el-row style="margin-bottom: 10px; font-weight: bold;font-size: 20px">{{item.name}}</el-row> 41 <el-row style="margin-bottom: 10px; font-weight: bold;font-size: 20px">{{item.name}}</el-row>
...@@ -184,7 +184,7 @@ const goback = function () { ...@@ -184,7 +184,7 @@ const goback = function () {
184 184
185 .list-title { 185 .list-title {
186 width: 100%; 186 width: 100%;
187 background: url("/dev-api/fs/20250729/image/8638425535731875840.png") no-repeat; 187 background: url("@/assets/v1/xq.png") no-repeat;
188 background-size: cover; 188 background-size: cover;
189 aspect-ratio: 16/3; 189 aspect-ratio: 16/3;
190 } 190 }
...@@ -251,4 +251,14 @@ const goback = function () { ...@@ -251,4 +251,14 @@ const goback = function () {
251 z-index: 1; 251 z-index: 1;
252 } 252 }
253 } 253 }
254
255 .mg-bottom {
256 margin-bottom: 25px;
257 }
258
259 @media (max-width: 1550px) {
260 .mg-bottom {
261 margin-bottom: 8px;
262 }
263 }
254 </style> 264 </style>
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
47 <div v-else style="background: #929AA0;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].i }}</div> 47 <div v-else style="background: #929AA0;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].i }}</div>
48 </span> 48 </span>
49 <span style="font-size: 26px">{{n.cptName}}</span> 49 <span style="font-size: 26px">{{n.cptName}}</span>
50 <span style="font-size: 18px"><img style="margin-right: 2%" src="@/assets/v1/tag01.png" />{{n.beginTime + '~' + n.endTime}}</span> 50 <span style="font-size: 18px"><img style="margin-right: 2%" src="@/assets/v1/tag01.png" />{{getTimeFormate(n.beginTime) + '~' + getTimeFormate(n.endTime)}}</span>
51 <span style="font-size: 18px"><img style="margin-right: 2%" src="@/assets/v1/tag02.png" />{{n.address}}</span> 51 <span style="font-size: 18px"><img style="margin-right: 2%" src="@/assets/v1/tag02.png" />{{n.address}}</span>
52 </div> 52 </div>
53 </div> 53 </div>
...@@ -327,6 +327,15 @@ const goVideo = () => { ...@@ -327,6 +327,15 @@ const goVideo = () => {
327 path: `/video/index`, 327 path: `/video/index`,
328 }) 328 })
329 } 329 }
330
331 const getTimeFormate = (time) => {
332 const showDay = new Date(time)
333 const year = showDay.getFullYear();
334 const month = showDay.getMonth() + 1; // 月份是从0开始的,所以需要加1
335 const date = showDay.getDate();
336
337 return `${year}-${month.toString().padStart(2, '0')}-${date.toString().padStart(2, '0')}`;
338 }
330 </script> 339 </script>
331 340
332 <style lang="scss" scoped> 341 <style lang="scss" scoped>
......
...@@ -108,7 +108,7 @@ const getList = () => { ...@@ -108,7 +108,7 @@ const getList = () => {
108 108
109 .photo-img { 109 .photo-img {
110 width: 100%; 110 width: 100%;
111 aspect-ratio: 2/1; 111 aspect-ratio: 3/2;
112 cursor: pointer; 112 cursor: pointer;
113 } 113 }
114 114
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
7 </el-col> 7 </el-col>
8 </el-row> 8 </el-row>
9 <el-row> 9 <el-row>
10 <el-col class="photo-space" :lg="8" v-for="item in itemList"> 10 <el-col class="photo-space" :lg="8" v-for="item in itemList.slice(0,1)">
11 <div class="photo-img-group"> 11 <div class="photo-img-group">
12 <img class="photo-img" :src="fillImgUrl(item.picUrl)"> 12 <img class="photo-img" :src="fillImgUrl(item.picUrl)">
13 <span style="display: block;font-size: 16px;margin:5px 0;color:#fff">{{item.name}}</span> 13 <span style="display: block;font-size: 16px;margin:5px 0;color:#fff">{{item.name}}</span>
......
...@@ -200,7 +200,7 @@ const goDetail = (id) => { ...@@ -200,7 +200,7 @@ const goDetail = (id) => {
200 200
201 .firstItem{cursor: pointer; 201 .firstItem{cursor: pointer;
202 background: #F7F8FC;height: 100%;padding: 10px 20px; 202 background: #F7F8FC;height: 100%;padding: 10px 20px;
203 .date{font-weight: bold;transform: scaleX(0.7);transform-origin: left; 203 .date{font-weight: bold;transform: scaleX(1);transform-origin: left;
204 font-size: 18px; 204 font-size: 18px;
205 color: #4C5359; 205 color: #4C5359;
206 p{margin: 5px 0;} 206 p{margin: 5px 0;}
...@@ -217,8 +217,8 @@ const goDetail = (id) => { ...@@ -217,8 +217,8 @@ const goDetail = (id) => {
217 .item{display: flex;position: relative;width: 100%;height: auto; 217 .item{display: flex;position: relative;width: 100%;height: auto;
218 align-items: center;cursor: pointer;border-bottom: 1px solid #3C4259; 218 align-items: center;cursor: pointer;border-bottom: 1px solid #3C4259;
219 .date{width: 60px;height: 60px;text-align: center;background: #43445B;margin: 0 10px; 219 .date{width: 60px;height: 60px;text-align: center;background: #43445B;margin: 0 10px;
220 .day{color: #CAA767;transform: scaleX(0.7);font-weight: bold;font-size: 24px;} 220 .day{color: #CAA767;transform: scaleX(1);font-weight: bold;font-size: 24px;}
221 p{font-size: 14px;margin: 0;transform: scaleX(0.7);font-weight: bold;color: #7B7F83;} 221 p{font-size: 14px;margin: 0;transform: scaleX(1);font-weight: bold;color: #7B7F83;}
222 } 222 }
223 .item-body{width: 100%; 223 .item-body{width: 100%;
224 h3{padding: 0 10px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;font-size: 18px;color: #fff;} 224 h3{padding: 0 10px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;font-size: 18px;color: #fff;}
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
3 <div class="box"> 3 <div class="box">
4 <el-button class="back-btn" @click="goback()">{{ languageLibrary[language].a }}</el-button> 4 <el-button class="back-btn" @click="goback()">{{ languageLibrary[language].a }}</el-button>
5 <el-row class="detail-title"> 5 <el-row class="detail-title">
6 <el-col :span="2"> 6 <el-col :span="4">
7 <span v-if="projectMainInfo.enrollStatusStr == '未开始'" style="background: #3194FA;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].g }}</span> 7 <span v-if="projectMainInfo.enrollStatusStr == '未开始'" style="background: #3194FA;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].g }}</span>
8 <span v-else-if="projectMainInfo.enrollStatusStr == '进行中'" style="background: #21C9AB;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].h }}</span> 8 <span v-else-if="projectMainInfo.enrollStatusStr == '进行中'" style="background: #21C9AB;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].h }}</span>
9 <span v-else style="background: #929AA0;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].i }}</span> 9 <span v-else style="background: #929AA0;border-radius:6px 0 6px 0;padding: 0 4px">{{ languageLibrary[language].i }}</span>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
15 <!-- <span>{{projectMainInfo.beginTime + '~' + projectMainInfo.endTime}}</span>--> 15 <!-- <span>{{projectMainInfo.beginTime + '~' + projectMainInfo.endTime}}</span>-->
16 <!-- </div>--> 16 <!-- </div>-->
17 </el-col> 17 </el-col>
18 <el-col :span="16"> 18 <el-col :span="14">
19 <span>比赛时间: {{projectMainInfo.beginTime + '~' + projectMainInfo.endTime}}</span> 19 <span>比赛时间: {{projectMainInfo.beginTime + '~' + projectMainInfo.endTime}}</span>
20 </el-col> 20 </el-col>
21 21
...@@ -164,7 +164,7 @@ const goback = function () { ...@@ -164,7 +164,7 @@ const goback = function () {
164 164
165 .photo-img { 165 .photo-img {
166 width: 100%; 166 width: 100%;
167 aspect-ratio: 2/1; 167 aspect-ratio: 3/2;
168 cursor: pointer; 168 cursor: pointer;
169 } 169 }
170 </style> 170 </style>
......
...@@ -23,10 +23,10 @@ ...@@ -23,10 +23,10 @@
23 <el-row> 23 <el-row>
24 <el-col class="photo-space" :lg="6" v-for="item in itemList"> 24 <el-col class="photo-space" :lg="6" v-for="item in itemList">
25 <div class="photo-img-group"> 25 <div class="photo-img-group">
26 <img class="photo-img" @click="goDetail(item)" :src="fillImgUrl('/fs/20250729/image/8638425535731875840.png')"> 26 <img class="photo-img" @click="goDetail(item)" :src="fillImgUrl(item.picUrl)">
27 <div class="photo-img-info"> 27 <div class="photo-img-info">
28 <span style="display: block;font-size: 16px;padding:5px 0">LPT巡回赛</span> 28 <span style="display: block;font-size: 16px;padding:5px 0">{{item.name}}</span>
29 <span style="display: block;font-size: 14px;color: #C2A165">2025-01-01</span> 29 <span style="display: block;font-size: 14px;color: #C2A165">{{item.publishTime}}</span>
30 </div> 30 </div>
31 </div> 31 </div>
32 </el-col> 32 </el-col>
...@@ -42,32 +42,38 @@ import { onMounted, ref } from 'vue' ...@@ -42,32 +42,38 @@ import { onMounted, ref } from 'vue'
42 import { getNewsListById } from '@/apiPc/webSite' 42 import { getNewsListById } from '@/apiPc/webSite'
43 import { useRouter } from 'vue-router' 43 import { useRouter } from 'vue-router'
44 import {useStorage} from "@vueuse/core/index"; 44 import {useStorage} from "@vueuse/core/index";
45 import * as match from "@/apiPc/match";
45 const language = useStorage('language', 0) 46 const language = useStorage('language', 0)
46 const router = useRouter() 47 const router = useRouter()
47 const searchParam = ref({ 48 const searchParam = ref({
48 type:'1', 49 status: 1,
49 text:'', 50 sortId: 2000,
50 }) 51 })
51 52
52 const itemList = ref(['a','a','a','a','a','a','a','a','a']) 53 const itemList = ref([])
53 54
54 onMounted(() => { 55 onMounted(() => {
55 56 getList()
56 }) 57 })
57 58
58 const searchByType = (type) => { 59 const searchByType = (type) => {
59 searchParam.value.type = type 60 searchParam.value.type = type
60 } 61 }
61 62
62 const getList = (obj) => { 63 const getList = () => {
63 getNewsListById(obj).then(res => { 64 match.getNoteList(searchParam.value).then(res => {
64 newsList.value = res.rows 65 if (res.code === 200) {
66 itemList.value = res.rows
67 itemList.value.forEach(x => {
68 x.attacth = JSON.parse(x.attacthJson)
69 })
70 }
65 }) 71 })
66 } 72 }
67 73
68 const goDetail = (id) => { 74 const goDetail = (n) => {
69 router.push({ 75 router.push({
70 path: `/news/detail/${id}` 76 path: `/news/detail/${n.noteId}`
71 }) 77 })
72 } 78 }
73 </script> 79 </script>
......
...@@ -84,8 +84,8 @@ export default defineConfig(({mode, command}) => { ...@@ -84,8 +84,8 @@ export default defineConfig(({mode, command}) => {
84 }, 84 },
85 '/dev-api': { 85 '/dev-api': {
86 // target: 'http://192.168.1.118:8082/', 86 // target: 'http://192.168.1.118:8082/',
87 target: 'http://192.168.1.194:8082', 87 // target: 'http://192.168.1.194:8082',
88 // target: 'https://tk005.wxjylt.com/stage-api', 88 target: 'https://www.longpoker.com/stage-api/',
89 // target: 'http://124.70.181.90:1880/stage-api', 89 // target: 'http://124.70.181.90:1880/stage-api',
90 // target: 'https://sys.2025wtcwuxi.com/stage-api/', 90 // target: 'https://sys.2025wtcwuxi.com/stage-api/',
91 changeOrigin: true, 91 changeOrigin: true,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!