b6c1d2ed by zrj

8.29 lpt 赛事数据动态加载

1 parent 17f7128e
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
33 <el-row> 33 <el-row>
34 <el-col :lg="8" :xs="24"> 34 <el-col :lg="8" :xs="24">
35 <div class="imgbox"> 35 <div class="imgbox">
36 <img style="aspect-ratio: 16/8" :src="fillImgUrl(n.picUrl)"> 36 <img style="aspect-ratio: 16/8" :src="fillImgUrl(n.coverUrl)">
37 </div> 37 </div>
38 </el-col> 38 </el-col>
39 <el-col :lg="16" :xs="24"> 39 <el-col :lg="16" :xs="24">
...@@ -44,9 +44,9 @@ ...@@ -44,9 +44,9 @@
44 <span style="font-size: 16px;"> 44 <span style="font-size: 16px;">
45 <div style="background: #3194FA;border-radius:6px 0 6px 0;padding: 0 4px">未开始</div> 45 <div style="background: #3194FA;border-radius:6px 0 6px 0;padding: 0 4px">未开始</div>
46 </span> 46 </span>
47 <span style="font-size: 26px">Long Poker</span> 47 <span style="font-size: 26px">{{n.name}}</span>
48 <span style="font-size: 18px"><img style="margin-right: 2%" src="@/assets/v1/tag01.png" />2020.1.1</span> 48 <span style="font-size: 18px"><img style="margin-right: 2%" src="@/assets/v1/tag01.png" />{{n.beginTime + '~' + n.endTime}}</span>
49 <span style="font-size: 18px"><img style="margin-right: 2%" src="@/assets/v1/tag02.png" />123sw23</span> 49 <span style="font-size: 18px"><img style="margin-right: 2%" src="@/assets/v1/tag02.png" />{{n.address}}</span>
50 </div> 50 </div>
51 </div> 51 </div>
52 </el-col> 52 </el-col>
...@@ -159,6 +159,7 @@ import {Autoplay, Navigation} from 'swiper' ...@@ -159,6 +159,7 @@ import {Autoplay, Navigation} from 'swiper'
159 import 'swiper/css' 159 import 'swiper/css'
160 import {dayjs, ElMessage} from 'element-plus' 160 import {dayjs, ElMessage} from 'element-plus'
161 import {useStorage} from "@vueuse/core"; 161 import {useStorage} from "@vueuse/core";
162 import * as match from "@/apiPc/match";
162 163
163 const router = useRouter() 164 const router = useRouter()
164 const {proxy} = getCurrentInstance() 165 const {proxy} = getCurrentInstance()
...@@ -214,51 +215,12 @@ onMounted(() => { ...@@ -214,51 +215,12 @@ onMounted(() => {
214 }) 215 })
215 216
216 const init = () => { 217 const init = () => {
217 newest2.value = [{ 218 match.getMaList({}).then((res) => {
218 attacthJson:'', 219 newest2.value = res.rows.map(({languageSourceStr,coverUrl,name,beginTime,
219 belongTime: "2025-01-14", 220 endTime,address}) =>
220 isOut:'0', 221 ({languageSourceStr,coverUrl,name,beginTime,endTime,address}))
221 isTop:'1', 222 console.log(newest2.value)
222 name:'2025跆拳道世锦赛筹备快报,牵手巨无霸综合体,献给世界的欢乐', 223 })
223 noteId:'1907041686198497281',
224 picUrl:'/fs/20250729/image/8638425535731875840.png',
225 publishType:'',
226 sortId:'10000000',
227 sortName:'官方发布',
228 },{
229 attacthJson:'',
230 belongTime: "2025-01-14",
231 isOut:'0',
232 isTop:'1',
233 name:'2025跆拳道世锦赛筹备快报,牵手巨无霸综合体,献给世界的欢乐1',
234 noteId:'1907041686198497281',
235 picUrl:'/fs/20250729/image/8638425535731875840.png',
236 publishType:'',
237 sortId:'10000001',
238 sortName:'官方发布',
239 },{
240 attacthJson:'',
241 belongTime: "2025-01-14",
242 isOut:'0',
243 isTop:'1',
244 name:'2025跆拳道世锦赛筹备快报,牵手巨无霸综合体,献给世界的欢乐2',
245 noteId:'1907041686198497281',
246 picUrl:'/fs/20250729/image/8638425535731875840.png',
247 publishType:'',
248 sortId:'10000002',
249 sortName:'官方发布',
250 },{
251 attacthJson:'',
252 belongTime: "2025-01-14",
253 isOut:'0',
254 isTop:'1',
255 name:'2025跆拳道世锦赛筹备快报,牵手巨无霸综合体,献给世界的欢乐3',
256 noteId:'1907041686198497281',
257 picUrl:'/fs/20250729/image/8638425535731875840.png',
258 publishType:'',
259 sortId:'10000003',
260 sortName:'官方发布',
261 }]
262 } 224 }
263 225
264 226
......
...@@ -84,7 +84,7 @@ export default defineConfig(({mode, command}) => { ...@@ -84,7 +84,7 @@ 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.83:8082', 87 target: 'http://192.168.1.194:8082',
88 // target: 'https://tk005.wxjylt.com/stage-api', 88 // target: 'https://tk005.wxjylt.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/',
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!