-
{{ reacProjectList[0].objName}}火热报名中
+
{{ reacProjectList[0].compname }}火热报名中
- {{ reacProjectList[0].annualCompId_dictText }}
+
立即报名
@@ -20,7 +20,9 @@
{{ item.compname }}
-
报名时间:{{item.starttime}}-{{ item.endtime }}
+
+ 报名时间:{{ item.starttime }}-{{ item.endtime }}
+
@@ -78,17 +80,17 @@ const getRaceProjectListEvent = async () => {
pageNo: 1,
pageSize: 8,
}
- const res:any = await getRaceList(page)
+ const res: any = await getRaceList(page)
console.log(res)
reacProjectList.value = res.result.records
- console.log(reacProjectList.value ,'reacProjectList.value ');
-
+ console.log(reacProjectList.value, 'reacProjectList.value ')
+
isLoading.value = true
}
getRaceProjectListEvent()
const active = ref(1)
-const setImageUrl = (url:string) => {
- return import.meta.env.VITE_APP_BASE_API +url
+const setImageUrl = (url: string) => {
+ return import.meta.env.VITE_APP_BASE_API + url
}
@@ -158,6 +160,10 @@ const setImageUrl = (url:string) => {
width: 340px;
height: 360px;
// background-color: pink;
+ box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.06);
+ cursor: pointer;
+ border-radius: 10px;
+ transition: all 0.2s;
.image {
width: 100%;
height: 194px;
@@ -185,6 +191,9 @@ const setImageUrl = (url:string) => {
}
}
}
+ .item:hover{
+ transform: translateY(-5px);
+ }
.item:nth-child(n) {
margin-top: 20px;
}
diff --git a/src/views/raceInfo/index.vue b/src/views/raceInfo/index.vue
new file mode 100644
index 0000000..21195c4
--- /dev/null
+++ b/src/views/raceInfo/index.vue
@@ -0,0 +1,14 @@
+
+
+ 赛事详情
+
+
+
+
+
+
From 84052d9aa08779b7218c1c61d8be79bbaca30c9a Mon Sep 17 00:00:00 2001
From: JayChou <2064936853@qq.com>
Date: Tue, 24 Sep 2024 16:30:13 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=AF=94=E8=B5=9B?=
=?UTF-8?q?=E7=BB=BC=E8=BF=B0=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/Layout/tabbar/components/item.vue | 4 -
src/api/race.ts | 16 +-
src/assets/icons/race-none.svg | 1 +
src/assets/images/left-top.png | Bin 0 -> 3120 bytes
src/directives/defaultImage.ts | 9 +
src/main.ts | 3 +
src/router/module/constRouter/index.ts | 4 +-
src/views/home/index.vue | 32 ++-
src/views/raceInfo/index.vue | 375 ++++++++++++++++++++++++-
9 files changed, 422 insertions(+), 22 deletions(-)
create mode 100644 src/assets/icons/race-none.svg
create mode 100644 src/assets/images/left-top.png
create mode 100644 src/directives/defaultImage.ts
diff --git a/src/Layout/tabbar/components/item.vue b/src/Layout/tabbar/components/item.vue
index dc3b19c..faff22d 100644
--- a/src/Layout/tabbar/components/item.vue
+++ b/src/Layout/tabbar/components/item.vue
@@ -1,7 +1,6 @@
-
-
-