10.16问题修改

main
JayChou 8 months ago
parent b9600fd0bb
commit b378c7f509
  1. 7
      src/api/race.ts
  2. 174
      src/views/competition/index.vue
  3. 4
      src/views/login/index.vue
  4. 6
      src/views/login/registered.vue
  5. 1
      src/views/projectName/index.vue
  6. 6
      src/views/raceInfo/index.vue
  7. 191
      src/views/registrationGroup/index.vue
  8. 136
      src/views/registrationPersonage/index.vue
  9. 57
      src/views/userInfo/index.vue
  10. 1
      vite.config.ts

@ -21,6 +21,13 @@ export const getRaceList = (params: any) => {
params,
})
}
// 获取年度比赛详情
export const getYearRaceInfo = (params: any) => {
return request({
url: '/annualcomp/annualComp/findndbswxq',
params,
})
}
// 获取比赛详细信息
export const getRaceInfo = (params: any) => {
return request({

@ -2,20 +2,16 @@
<template>
<div class="fill"></div>
<div class="banner">
<img src="../../assets/images/banner2.png" alt="">
<img src="../../assets/images/banner2.png" alt="" />
</div>
<div class="competition" v-loading="loading">
<!-- 简介 -->
<div class="synopsis">
<div class="name">年度比赛名称</div>
<div class="name">{{ yearRaceInfo.name }}</div>
<div class="content">
比赛简介比赛简介比赛简介比赛简介比赛简介比赛简介比赛简介比赛简介
比赛简介比赛简介比赛简介比赛简介比赛简介比赛简介比赛简介比赛简介
比赛简介比赛简介比赛简介比赛简介比赛简介比赛简介比赛简介比赛简介
比赛简介比赛简介比赛简介比赛简介比赛简介比赛简介比赛简介比赛简介
比赛简介比赛简介比赛简介比赛简介比赛简介比赛简介比赛简介比赛简介
比赛简介比赛简介比赛简介比赛简介比赛简介</div>
<div class="date">报名时间2023.08.23-2023.09.23</div>
{{ yearRaceInfo.introduction }}
</div>
<!-- <div class="date">报名时间2023.08.23-2023.09.23</div> -->
</div>
<!-- 选择项目 -->
@ -27,11 +23,13 @@
</div>
<div class="card-list">
<template v-for="o, i in dataList" :key="o.id">
<template v-for="(o, i) in dataList" :key="o.id">
<div v-if="(i + 5) % 4 == 1" class="card" type="yellow">
<div class="top" :title="o.objName">{{ o.objName }}</div>
<div class="bottom">
<el-button class="btn" @click="goProjectName(o.id)">立即报名</el-button>
<el-button class="btn" @click="goProjectName(o.id)">
立即报名
</el-button>
<el-link :underline="false" class="link">详情</el-link>
</div>
</div>
@ -39,7 +37,9 @@
<div v-else-if="(i + 5) % 4 == 2" class="card" type="purple">
<div class="top" :title="o.objName">{{ o.objName }}</div>
<div class="bottom">
<el-button class="btn" @click="goProjectName(o.id)">立即报名</el-button>
<el-button class="btn" @click="goProjectName(o.id)">
立即报名
</el-button>
<el-link :underline="false" class="link">详情</el-link>
</div>
</div>
@ -47,7 +47,9 @@
<div v-else-if="(i + 5) % 4 == 3" class="card" type="cyan00">
<div class="top" :title="o.objName">{{ o.objName }}</div>
<div class="bottom">
<el-button class="btn" @click="goProjectName(o.id)">立即报名</el-button>
<el-button class="btn" @click="goProjectName(o.id)">
立即报名
</el-button>
<el-link :underline="false" class="link">详情</el-link>
</div>
</div>
@ -55,7 +57,9 @@
<div v-else-if="(i + 5) % 4 == 0" class="card" type="orange">
<div class="top" :title="o.objName">{{ o.objName }}</div>
<div class="bottom">
<el-button class="btn" @click="goProjectName(o.id)">立即报名</el-button>
<el-button class="btn" @click="goProjectName(o.id)">
立即报名
</el-button>
<el-link :underline="false" class="link">详情</el-link>
</div>
</div>
@ -70,19 +74,13 @@
<div class="game-list">
<div class="card-game" v-for="i in 5" :key="i">
<div class="pos">
前往查看
</div>
<div class="top">
2023年度
</div>
<div class="pos">前往查看</div>
<div class="top">2023年度</div>
<div class="center">
<div class="text">河南省大学生创新创业大赛</div>
<img src="../../assets/images/编组.png" alt="">
</div>
<div class="bottom">
报名时间2023.08.23-2023.09.23
<img src="../../assets/images/编组.png" alt="" />
</div>
<div class="bottom">报名时间2023.08.23-2023.09.23</div>
</div>
</div>
</div>
@ -91,43 +89,51 @@
</template>
<script lang="ts" setup>
import { getCompetitionApi } from '@/api/person';
import { ref, watch } from 'vue';
import { useRoute, useRouter } from 'vue-router';
import { ElMessage, ElLoading } from 'element-plus';
const route = useRoute();
const router = useRouter();
import { getCompetitionApi } from '@/api/person'
import { ref, watch } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { ElMessage, ElLoading } from 'element-plus'
import { getYearRaceInfo } from '@/api/race'
const route = useRoute()
const router = useRouter()
// loading
const loading = ref(false);
let loadingInstance: any;
watch(loading, newVal => {
if (newVal) loadingInstance = ElLoading.service({ fullscreen: true });
else if (loadingInstance) loadingInstance.close();
});
const loading = ref(false)
let loadingInstance: any
watch(loading, (newVal) => {
if (newVal) loadingInstance = ElLoading.service({ fullscreen: true })
else if (loadingInstance) loadingInstance.close()
})
//
const dataList = ref<any[]>([]);
const dataList = ref<any[]>([])
async function getList() {
try {
loading.value = true;
const res: any = await getCompetitionApi(route.query.id as string);
loading.value = true
const res: any = await getCompetitionApi(route.query.id as string)
if (!res.result) return
dataList.value = res.result;
dataList.value = res.result
} catch (error) {
ElMessage.error('请求失败');
ElMessage.error('请求失败')
} finally {
loading.value = false;
loading.value = false
}
}
getList();
getList()
//
function goProjectName(id: any) {
router.push(`/projectName?id=${id}&bcId=${route.query.id}`)
}
const yearRaceInfo = ref<any>({})
const getYearRaceInfoEvent = async () => {
const res: any = await getYearRaceInfo({id:route.query.id})
yearRaceInfo.value = res.result
console.log(res, 'yearRaceInfo.value ')
}
getYearRaceInfoEvent()
</script>
<style lang="scss" scoped>
@ -155,7 +161,9 @@ function goProjectName(id: any) {
.name {
height: 59px;
line-height: 59px;
font-family: Open Sans, Open Sans;
font-family:
Open Sans,
Open Sans;
font-weight: bold;
font-size: 42px;
color: #333333;
@ -163,7 +171,9 @@ function goProjectName(id: any) {
.content {
margin-top: 40px;
font-family: Open Sans, Open Sans;
font-family:
Open Sans,
Open Sans;
font-weight: 400;
font-size: 20px;
color: #555555;
@ -174,7 +184,9 @@ function goProjectName(id: any) {
margin-top: 30px;
height: 23px;
line-height: 23px;
font-family: Open Sans, Open Sans;
font-family:
Open Sans,
Open Sans;
font-weight: 400;
font-size: 20px;
color: #858585;
@ -201,41 +213,43 @@ function goProjectName(id: any) {
height: 160px;
padding: 40px 0 0 30px;
&[type="yellow"] {
&[type='yellow'] {
background: url(../../assets/images/yellow.png) no-repeat;
background-size: cover;
--color: #FFC300;
--bg-color1: #FFCB9A;
--bg-color2: #FFC300;
--color: #ffc300;
--bg-color1: #ffcb9a;
--bg-color2: #ffc300;
}
&[type="purple"] {
&[type='purple'] {
background: url(../../assets/images/purple.png) no-repeat;
background-size: cover;
--color: #3F8BFF;
--bg-color1: #90BBFC;
--bg-color2: #C4CDFF;
--color: #3f8bff;
--bg-color1: #90bbfc;
--bg-color2: #c4cdff;
}
&[type="cyan00"] {
&[type='cyan00'] {
background: url(../../assets/images/item.png) no-repeat;
background-size: cover;
--color: #76DAE5;
--bg-color1: #74D9E4;
--bg-color2: #74E4BC;
--color: #76dae5;
--bg-color1: #74d9e4;
--bg-color2: #74e4bc;
}
&[type="orange"] {
&[type='orange'] {
background: url(../../assets/images/orange.png) no-repeat;
background-size: cover;
--color: #FF907B;
--bg-color1: #FCA190;
--bg-color2: #FCD190;
--color: #ff907b;
--bg-color1: #fca190;
--bg-color2: #fcd190;
}
.top {
margin-bottom: 30px;
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: bold;
font-size: 24px;
text-wrap: nowrap;
@ -253,7 +267,9 @@ function goProjectName(id: any) {
}
.btn {
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: bold;
font-size: 14px;
width: 120px;
@ -261,7 +277,11 @@ function goProjectName(id: any) {
border-radius: 15px;
color: #fff;
border: none;
background: linear-gradient(to right, var(--bg-color1), var(--bg-color2));
background: linear-gradient(
to right,
var(--bg-color1),
var(--bg-color2)
);
}
}
}
@ -275,7 +295,7 @@ function goProjectName(id: any) {
.card-game {
width: 260px;
height: 140px;
background: linear-gradient(90deg, #21ACA5 0%, #42D9AC 100%);
background: linear-gradient(90deg, #21aca5 0%, #42d9ac 100%);
border-radius: 4px 4px 4px 4px;
margin-bottom: 18px;
background: url(../../assets/images/Rectangle284.png) no-repeat;
@ -289,10 +309,12 @@ function goProjectName(id: any) {
right: 0;
width: 115px;
height: 28px;
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: 400;
font-size: 12px;
color: #F6F5FB;
color: #f6f5fb;
display: flex;
align-items: center;
justify-content: center;
@ -300,7 +322,9 @@ function goProjectName(id: any) {
}
.top {
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: 400;
font-size: 12px;
color: rgba(51, 51, 51, 0.8);
@ -316,7 +340,9 @@ function goProjectName(id: any) {
.text {
width: 140px;
height: 40px;
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: bold;
font-size: 16px;
color: #333333;
@ -325,7 +351,9 @@ function goProjectName(id: any) {
}
.bottom {
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: 400;
font-size: 12px;
color: rgba(51, 51, 51, 0.8);
@ -349,7 +377,7 @@ function goProjectName(id: any) {
font-family: Inter, Inter;
font-weight: bold;
font-size: 40px;
color: #1E2033;
color: #1e2033;
}
.small {

@ -87,7 +87,9 @@ const submit = async () => {
}
onMounted(() => {
window.addEventListener('keydown', keyDown)
// setTimeout(() => {
// getcodeinfo()
// },6000)
})
const keyDown = (e: any) => {
//

@ -56,6 +56,7 @@
placeholder="密码"
v-model="form.password"
:prefix-icon="Lock"
type="password"
></el-input>
</el-form-item>
<el-form-item>
@ -63,6 +64,8 @@
placeholder="确认密码"
v-model="form.confirmPassword"
:prefix-icon="Lock"
type="password"
></el-input>
</el-form-item>
<el-form-item>
@ -159,7 +162,7 @@ const ragistered = async () => {
}
}
if (!(form.password === form.confirmPassword)) {
ElMessage.warning(`两次密码不同`)
return ElMessage.warning(`两次密码不同`)
}
console.log(form)
let data = {
@ -179,6 +182,7 @@ const ragistered = async () => {
$emits('backLogin')
}else{
ElMessage.warning(res.message)
getcodeinfo()
}
console.log(res)
}

@ -122,6 +122,7 @@ getData();
font-size: 18px;
color: #666666;
text-indent: 2em;
min-height: 500px;
}
.foot {

@ -241,6 +241,12 @@ getHistoryRaceListEvent()
font-weight: 600;
color: #333333;
margin-top: 10px;
line-height: 20px;
height: 60px;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.time {
font-size: 14px;

@ -13,7 +13,7 @@
</div>
<div class="img-box">
<img src="../../assets/images/applyImg.png" alt="">
<img src="../../assets/images/applyImg.png" alt="" />
</div>
</div>
</div>
@ -27,7 +27,7 @@
<div class="annual">{{ ndbs.annualid }}年度</div>
<div class="title-box">
<div class="text">{{ ndbs.name }}</div>
<img src="../../assets/images/编组.png" alt="">
<img src="../../assets/images/编组.png" alt="" />
</div>
</div>
<div class="right">
@ -108,8 +108,15 @@
<el-card class="list">
<div class="table-box">
<div>
<el-form ref="ruleFormRef" style="max-width: 600px" :model="ruleForm" status-icon :rules="rules"
label-width="auto" class="demo-ruleForm">
<el-form
ref="ruleFormRef"
style="max-width: 600px"
:model="ruleForm"
status-icon
:rules="rules"
label-width="auto"
class="demo-ruleForm"
>
<el-form-item label="年度比赛项目">
<el-input v-model="ruleForm.annualCompid" type="text" disabled />
</el-form-item>
@ -127,7 +134,10 @@
<el-tab-pane label="指导老师表" name="adviser" />
</el-tabs>
<!-- 动画区域 -->
<div class="animation-box" :class="{ translate: activeName === 'adviser' }">
<div
class="animation-box"
:class="{ translate: activeName === 'adviser' }"
>
<stu-list ref="stuRef" />
<tea-list ref="teaRef" />
</div>
@ -135,27 +145,28 @@
</el-card>
<div class="bottom">
<el-button class="btn" @click="$router.push('/')">取消报名</el-button>
<el-button class="btn cyan" @click="submit" :loading="loading">确认报名</el-button>
<el-button class="btn cyan" @click="submit" :loading="loading">
确认报名
</el-button>
</div>
</div>
</template>
<script lang="ts" setup>
import { reactive, ref, toRefs } from 'vue';
import { useRoute,useRouter } from 'vue-router';
import userStore from '@/store/module/user';
import type { FormInstance, FormRules } from 'element-plus';
import { ElMessage } from 'element-plus';
import { getSignUpApi } from '@/api/person';
import stuList from './components/stuList.vue';
import teaList from './components/teaList.vue';
import { getNdbswxqList, getComppxqList } from '@/api/person';
const user = userStore();
const route = useRoute();
const router = useRouter();
import { reactive, ref, toRefs } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import userStore from '@/store/module/user'
import type { FormInstance, FormRules } from 'element-plus'
import { ElMessage } from 'element-plus'
import { getSignUpApi } from '@/api/person'
import stuList from './components/stuList.vue'
import teaList from './components/teaList.vue'
import { getNdbswxqList, getComppxqList } from '@/api/person'
const user = userStore()
const route = useRoute()
const router = useRouter()
//
const { userInfo: info } = toRefs(user);
const { userInfo: info } = toRefs(user)
//
function pasSex(num: number) {
@ -171,16 +182,15 @@ getNdbswxqList(route.query.bcId as string).then((res: any) => {
if (res.result) ndbs.value = res.result
})
getComppxqList(route.query.id as string).then((res: any) => {
console.log(res.result, 'xm');
console.log(res.result, 'xm')
if (res.result) ndbsXm.value = res.result
})
// members: adviser:
const activeName = ref('members');
const activeName = ref('members')
// form
const ruleFormRef = ref<FormInstance>();
const ruleFormRef = ref<FormInstance>()
const ruleForm = reactive<any>({
annualCompid: route.query.objName,
@ -188,33 +198,38 @@ const ruleForm = reactive<any>({
id: route.query.id,
teamName: '', //
instructorSheetList: [], //
teamManagementList: [] //
teamManagementList: [], //
})
const rules = reactive<FormRules<typeof ruleForm>>({});
const rules = reactive<FormRules<typeof ruleForm>>({})
const stuRef = ref<any>(null);
const teaRef = ref<any>(null);
const loading = ref(false);
const stuRef = ref<any>(null)
const teaRef = ref<any>(null)
const loading = ref(false)
const submit = () => {
ruleForm.instructorSheetList = [...teaRef.value.submit()]
ruleForm.teamManagementList = [...stuRef.value.submit()]
loading.value = true;
getSignUpApi(ruleForm).then((res: any) => {
loading.value = true
getSignUpApi(ruleForm)
.then((res: any) => {
ElMessage({
message: res?.message || '报名成功',
type: 'success'
type: 'success',
})
router.push('/')
}).catch(err => {
})
.catch((err) => {
ElMessage({
message: err.message,
type: 'error'
type: 'error',
})
})
}).finally(() => loading.value = false)
.finally(() => (loading.value = false))
}
</script>
<style lang="scss" scoped>
@ -227,18 +242,16 @@ const submit = () => {
translate: calc(-100% - 20px);
}
&>* {
& > * {
width: 100%;
flex-shrink: 0;
}
}
.el-tabs--top {
flex-direction: column;
}
.fill {
padding-top: 80px;
}
@ -246,7 +259,7 @@ const submit = () => {
.banner {
width: 100%;
height: 289;
background: linear-gradient(90deg, #FFFFFF 0%, #F0F8FF 100%);
background: linear-gradient(90deg, #ffffff 0%, #f0f8ff 100%);
padding: 21px 0 37px 225px;
.box {
@ -262,7 +275,9 @@ const submit = () => {
.title {
height: 59px;
font-family: Open Sans, Open Sans;
font-family:
Open Sans,
Open Sans;
font-weight: bold;
font-size: 42px;
color: #333333;
@ -271,7 +286,9 @@ const submit = () => {
.text {
margin-top: 20px;
font-family: Open Sans, Open Sans;
font-family:
Open Sans,
Open Sans;
font-weight: 400;
font-size: 20px;
color: #666666;
@ -298,8 +315,8 @@ const submit = () => {
margin: 0 auto;
width: 1397px;
&>* {
background: #FFFFFF;
& > * {
background: #ffffff;
}
.top {
@ -317,7 +334,9 @@ const submit = () => {
.title {
height: 28px;
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: bold;
font-size: 20px;
color: rgba(0, 0, 0, 0.9);
@ -338,7 +357,7 @@ const submit = () => {
width: 340px;
height: 182px;
background: linear-gradient(90deg, #21ACA5 0%, #42D9AC99 100%);
background: linear-gradient(90deg, #21aca5 0%, #42d9ac99 100%);
border-radius: 8px;
overflow: hidden;
@ -362,7 +381,7 @@ const submit = () => {
font-family: Inter, Inter;
font-weight: normal;
font-size: 32px;
color: #FFFFFF;
color: #ffffff;
line-height: 39px;
}
}
@ -370,24 +389,33 @@ const submit = () => {
.right {
.info-box {
width: 210px;
.name {
height: 20px;
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: 400;
font-size: 14px;
color: #ACACAC;
color: #acacac;
line-height: 20px;
margin-bottom: 8px;
}
.title {
height: 20px;
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: bold;
font-size: 20px;
color: #333333;
line-height: 20px;
margin-bottom: 12px;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
}
.date-box {
@ -400,10 +428,12 @@ const submit = () => {
overflow: hidden;
text-wrap: nowrap;
height: 20px;
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: 400;
font-size: 14px;
color: #ACACAC;
color: #acacac;
line-height: 20px;
}
@ -411,7 +441,9 @@ const submit = () => {
text-overflow: ellipsis;
overflow: hidden;
text-wrap: nowrap;
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: bold;
font-size: 18px;
color: #333333;
@ -431,10 +463,12 @@ const submit = () => {
padding: 0;
p {
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: bold;
font-size: 40px;
color: #76DAE5;
color: #76dae5;
}
}
}
@ -462,7 +496,9 @@ const submit = () => {
.title {
height: 28px;
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: bold;
font-size: 20px;
color: rgba(0, 0, 0, 0.9);
@ -488,7 +524,9 @@ const submit = () => {
.label {
height: 22px;
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: 400;
font-size: 14px;
color: rgba(0, 0, 0, 0.4);
@ -497,7 +535,9 @@ const submit = () => {
.text {
height: 22px;
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: 400;
font-size: 14px;
color: rgba(0, 0, 0, 0.9);
@ -511,14 +551,14 @@ const submit = () => {
.head {
padding: 32px;
height: 96px;
background: #FFFFFF;
background: #ffffff;
box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.1);
border-radius: 6px 6px 0px 0px;
display: flex;
justify-content: space-between;
align-items: center;
&>* {
& > * {
height: 32px;
}
@ -530,19 +570,20 @@ const submit = () => {
.btn {
height: 32px;
width: 88px;
background: #42D9AC;
background: #42d9ac;
border-radius: 3px 3px 3px 3px;
border: none;
}
.text {
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: 400;
font-size: 14px;
color: rgba(0, 0, 0, 0.4);
}
}
}
.table-box {
@ -565,20 +606,20 @@ const submit = () => {
}
li.number.is-active {
background-color: #42D9AC;
background-color: #42d9ac;
color: rgba(255, 255, 255, 0.9);
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
}
span.el-pagination__jump {
background-color: #F3F3F3;
background-color: #f3f3f3;
padding: 2px 8px;
}
}
}
}
}
}
@ -591,16 +632,18 @@ const submit = () => {
align-items: center;
.btn {
--color1: #FFF4CE;
--color2: #FF6B6B;
--color1: #fff4ce;
--color2: #ff6b6b;
width: 387px;
height: 69px;
border-radius: 69px;
border: none;
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: bold;
font-size: 24px;
color: #FFFFFF;
color: #ffffff;
background: linear-gradient(to right, var(--color1), var(--color2));
box-shadow: 7px 7px 22px -10px rgba(0, 0, 0, 0.22);
transition: all 0.2s;
@ -610,12 +653,10 @@ const submit = () => {
}
&.cyan {
--color1: #00D0D0;
--color2: #42D9AC;
--color1: #00d0d0;
--color2: #42d9ac;
}
}
}
}
</style>

@ -7,13 +7,11 @@
<div class="title">报名信息确认</div>
<div class="text">
请仔细核对报名信息报名成功后无法修改请仔细核对报名信息报名成功后无法修改
请仔细核对报名信息报名成功后无法修改请仔细核对报名信息报名成功后无法修改
请仔细核对报名信息报名成功后无法修改请仔细核对报名信息报名成功后无法修改
</div>
</div>
<div class="img-box">
<img src="../../assets/images/applyImg.png" alt="">
<img src="../../assets/images/applyImg.png" alt="" />
</div>
</div>
</div>
@ -27,7 +25,7 @@
<div class="annual">{{ ndbs.annualid }}年度</div>
<div class="title-box">
<div class="text">{{ ndbs.name }}</div>
<img src="../../assets/images/编组.png" alt="">
<img src="../../assets/images/编组.png" alt="" />
</div>
</div>
<div class="right">
@ -140,25 +138,29 @@
</el-card>
<div class="bottom">
<el-button class="btn" @click="() => router.push('/')">取消报名</el-button>
<el-button class="btn cyan" :loading="subLoading" @click="submit">确认报名</el-button>
<el-button class="btn" @click="() => router.push('/')">
取消报名
</el-button>
<el-button class="btn cyan" :loading="subLoading" @click="submit">
确认报名
</el-button>
</div>
</div>
</template>
<script lang="ts" setup>
import { ref, toRefs } from 'vue';
import { getSignUpApi } from '@/api/person';
import { ElMessage } from 'element-plus';
import { useRoute, useRouter } from 'vue-router';
import userStore from '@/store/module/user';
import { getNdbswxqList, getComppxqList } from '@/api/person';
import { ref, toRefs } from 'vue'
import { getSignUpApi } from '@/api/person'
import { ElMessage } from 'element-plus'
import { useRoute, useRouter } from 'vue-router'
import userStore from '@/store/module/user'
import { getNdbswxqList, getComppxqList } from '@/api/person'
const user = userStore();
const route = useRoute();
const router = useRouter();
const user = userStore()
const route = useRoute()
const router = useRouter()
const { userInfo: info } = toRefs(user);
const { userInfo: info } = toRefs(user)
//
function pasSex(num: number) {
@ -173,9 +175,9 @@ const upData = ref<Parameters<typeof getSignUpApi>[0]>({
entryFormat: '个人',
id: route.query.id,
instructorSheetList: [],
teamManagementList: [{ realname: "", captain: "", teamSeq: "", userId: "" }],
teamName: ""
});
teamManagementList: [{ realname: '', captain: '', teamSeq: '', userId: '' }],
teamName: '',
})
//
const ndbs = ref<any>({})
@ -184,35 +186,34 @@ getNdbswxqList(route.query.bcId as string).then((res: any) => {
if (res.result) ndbs.value = res.result
})
getComppxqList(route.query.id as string).then((res: any) => {
console.log(res.result, 'xm');
console.log(res.result, 'xm')
if (res.result) ndbsXm.value = res.result
})
const subLoading = ref(false);
const subLoading = ref(false)
async function submit() {
upData.value.teamManagementList[0].realname = info.value.realname
upData.value.teamManagementList[0].userId = info.value.id
if (!upData.value.teamName) {
ElMessage({
message: '队伍名称不能为空',
type: 'warning'
type: 'warning',
})
return
}
try {
subLoading.value = true;
const res: any = await getSignUpApi(upData.value);
subLoading.value = true
const res: any = await getSignUpApi(upData.value)
ElMessage({
message: res?.message || res?.result || '报名成功',
type: 'success'
type: 'success',
})
} catch (error) {
ElMessage({
// @ts-ignore
message: error?.message,
type: 'error'
type: 'error',
})
} finally {
subLoading.value = false
@ -228,7 +229,7 @@ async function submit() {
.banner {
width: 100%;
height: 289;
background: linear-gradient(90deg, #FFFFFF 0%, #F0F8FF 100%);
background: linear-gradient(90deg, #ffffff 0%, #f0f8ff 100%);
padding: 21px 0 37px 225px;
.box {
@ -244,7 +245,9 @@ async function submit() {
.title {
height: 59px;
font-family: Open Sans, Open Sans;
font-family:
Open Sans,
Open Sans;
font-weight: bold;
font-size: 42px;
color: #333333;
@ -253,7 +256,9 @@ async function submit() {
.text {
margin-top: 20px;
font-family: Open Sans, Open Sans;
font-family:
Open Sans,
Open Sans;
font-weight: 400;
font-size: 20px;
color: #666666;
@ -280,8 +285,8 @@ async function submit() {
margin: 0 auto;
width: 1397px;
&>* {
background: #FFFFFF;
& > * {
background: #ffffff;
}
.top {
@ -299,7 +304,9 @@ async function submit() {
.title {
height: 28px;
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: bold;
font-size: 20px;
color: rgba(0, 0, 0, 0.9);
@ -320,7 +327,7 @@ async function submit() {
width: 340px;
height: 182px;
background: linear-gradient(90deg, #21ACA5 0%, #42D9AC99 100%);
background: linear-gradient(90deg, #21aca5 0%, #42d9ac99 100%);
border-radius: 8px;
overflow: hidden;
@ -344,7 +351,7 @@ async function submit() {
font-family: Inter, Inter;
font-weight: normal;
font-size: 32px;
color: #FFFFFF;
color: #ffffff;
line-height: 39px;
}
}
@ -352,24 +359,33 @@ async function submit() {
.right {
.info-box {
width: 210px;
.name {
height: 20px;
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: 400;
font-size: 14px;
color: #ACACAC;
color: #acacac;
line-height: 20px;
margin-bottom: 8px;
}
.title {
height: 20px;
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: bold;
font-size: 20px;
color: #333333;
line-height: 20px;
margin-bottom: 12px;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
}
.date-box {
@ -382,10 +398,12 @@ async function submit() {
overflow: hidden;
text-wrap: nowrap;
height: 20px;
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: 400;
font-size: 14px;
color: #ACACAC;
color: #acacac;
line-height: 20px;
}
@ -393,7 +411,9 @@ async function submit() {
text-overflow: ellipsis;
overflow: hidden;
text-wrap: nowrap;
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: bold;
font-size: 18px;
color: #333333;
@ -413,10 +433,12 @@ async function submit() {
padding: 0;
p {
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: bold;
font-size: 40px;
color: #76DAE5;
color: #76dae5;
}
}
}
@ -445,7 +467,9 @@ async function submit() {
.title {
height: 28px;
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: bold;
font-size: 20px;
color: rgba(0, 0, 0, 0.9);
@ -473,7 +497,9 @@ async function submit() {
.label {
height: 22px;
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: 400;
font-size: 14px;
color: rgba(0, 0, 0, 0.4);
@ -482,7 +508,9 @@ async function submit() {
.text {
height: 22px;
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: 400;
font-size: 14px;
color: rgba(0, 0, 0, 0.9);
@ -501,16 +529,18 @@ async function submit() {
align-items: center;
.btn {
--color1: #FFF4CE;
--color2: #FF6B6B;
--color1: #fff4ce;
--color2: #ff6b6b;
width: 387px;
height: 69px;
border-radius: 69px;
border: none;
font-family: Microsoft YaHei UI, Microsoft YaHei UI;
font-family:
Microsoft YaHei UI,
Microsoft YaHei UI;
font-weight: bold;
font-size: 24px;
color: #FFFFFF;
color: #ffffff;
background: linear-gradient(to right, var(--color1), var(--color2));
box-shadow: 7px 7px 22px -10px rgba(0, 0, 0, 0.22);
transition: all 0.2s;
@ -520,12 +550,10 @@ async function submit() {
}
&.cyan {
--color1: #00D0D0;
--color2: #42D9AC;
--color1: #00d0d0;
--color2: #42d9ac;
}
}
}
}
</style>

@ -7,62 +7,7 @@
</div>
</div>
<div class="container-1420">
<div class="top">
<!-- 比赛信息 -->
<el-card class="com">
<div class="title">当前参加的比赛</div>
<div class="content">
<div class="card-annual">
<div class="annual">2023年度</div>
<div class="title-box">
<div class="text">河南省大学生创新创业大赛</div>
<img src="../../assets/images/编组.png" alt="" />
</div>
</div>
<div class="right">
<div class="info-box">
<div class="name">比赛年度</div>
<div class="title">2024年度</div>
<div class="name">比赛名称</div>
<div class="title">河南省大学生创新创业大赛</div>
<div class="date-box">
<div class="label">开始报名时间</div>
<div class="date">2323.6.1 18:00</div>
</div>
<div class="date-box">
<div class="label">开始截至时间</div>
<div class="date">2323.6.1 18:00</div>
</div>
</div>
</div>
</div>
</el-card>
<!-- 项目信息 -->
<el-card class="com">
<div class="title">项目信息</div>
<div class="content track">
<div class="card-annual">
<p>红色之旅赛道</p>
</div>
<div class="right">
<div class="info-box">
<div class="name">项目名称</div>
<div class="title">红色之旅赛道</div>
<div class="name">要求人数</div>
<div class="title">1</div>
<div class="date-box">
<div class="label">开始报名时间</div>
<div class="date">2323.6.1 18:00</div>
</div>
<div class="date-box">
<div class="label">开始截至时间</div>
<div class="date">2323.6.1 18:00</div>
</div>
</div>
</div>
</div>
</el-card>
</div>
<el-card>
<div class="user-info-main">
<div class="left">

@ -33,6 +33,7 @@ export default defineConfig({
server:{
host: '0.0.0.0',
port: 8866,
},
resolve: {
alias: {

Loading…
Cancel
Save