b6c1d2ed by zrj

8.29 lpt 赛事数据动态加载

1 parent 17f7128e
......@@ -33,7 +33,7 @@
<el-row>
<el-col :lg="8" :xs="24">
<div class="imgbox">
<img style="aspect-ratio: 16/8" :src="fillImgUrl(n.picUrl)">
<img style="aspect-ratio: 16/8" :src="fillImgUrl(n.coverUrl)">
</div>
</el-col>
<el-col :lg="16" :xs="24">
......@@ -44,9 +44,9 @@
<span style="font-size: 16px;">
<div style="background: #3194FA;border-radius:6px 0 6px 0;padding: 0 4px">未开始</div>
</span>
<span style="font-size: 26px">Long Poker</span>
<span style="font-size: 18px"><img style="margin-right: 2%" src="@/assets/v1/tag01.png" />2020.1.1</span>
<span style="font-size: 18px"><img style="margin-right: 2%" src="@/assets/v1/tag02.png" />123sw23</span>
<span style="font-size: 26px">{{n.name}}</span>
<span style="font-size: 18px"><img style="margin-right: 2%" src="@/assets/v1/tag01.png" />{{n.beginTime + '~' + n.endTime}}</span>
<span style="font-size: 18px"><img style="margin-right: 2%" src="@/assets/v1/tag02.png" />{{n.address}}</span>
</div>
</div>
</el-col>
......@@ -159,6 +159,7 @@ import {Autoplay, Navigation} from 'swiper'
import 'swiper/css'
import {dayjs, ElMessage} from 'element-plus'
import {useStorage} from "@vueuse/core";
import * as match from "@/apiPc/match";
const router = useRouter()
const {proxy} = getCurrentInstance()
......@@ -214,51 +215,12 @@ onMounted(() => {
})
const init = () => {
newest2.value = [{
attacthJson:'',
belongTime: "2025-01-14",
isOut:'0',
isTop:'1',
name:'2025跆拳道世锦赛筹备快报,牵手巨无霸综合体,献给世界的欢乐',
noteId:'1907041686198497281',
picUrl:'/fs/20250729/image/8638425535731875840.png',
publishType:'',
sortId:'10000000',
sortName:'官方发布',
},{
attacthJson:'',
belongTime: "2025-01-14",
isOut:'0',
isTop:'1',
name:'2025跆拳道世锦赛筹备快报,牵手巨无霸综合体,献给世界的欢乐1',
noteId:'1907041686198497281',
picUrl:'/fs/20250729/image/8638425535731875840.png',
publishType:'',
sortId:'10000001',
sortName:'官方发布',
},{
attacthJson:'',
belongTime: "2025-01-14",
isOut:'0',
isTop:'1',
name:'2025跆拳道世锦赛筹备快报,牵手巨无霸综合体,献给世界的欢乐2',
noteId:'1907041686198497281',
picUrl:'/fs/20250729/image/8638425535731875840.png',
publishType:'',
sortId:'10000002',
sortName:'官方发布',
},{
attacthJson:'',
belongTime: "2025-01-14",
isOut:'0',
isTop:'1',
name:'2025跆拳道世锦赛筹备快报,牵手巨无霸综合体,献给世界的欢乐3',
noteId:'1907041686198497281',
picUrl:'/fs/20250729/image/8638425535731875840.png',
publishType:'',
sortId:'10000003',
sortName:'官方发布',
}]
match.getMaList({}).then((res) => {
newest2.value = res.rows.map(({languageSourceStr,coverUrl,name,beginTime,
endTime,address}) =>
({languageSourceStr,coverUrl,name,beginTime,endTime,address}))
console.log(newest2.value)
})
}
......
......@@ -84,7 +84,7 @@ export default defineConfig(({mode, command}) => {
},
'/dev-api': {
// target: 'http://192.168.1.118:8082/',
target: 'http://192.168.1.83:8082',
target: 'http://192.168.1.194:8082',
// target: 'https://tk005.wxjylt.com/stage-api',
// target: 'http://124.70.181.90:1880/stage-api',
// 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!