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. 185
      src/views/registrationGroup/index.vue
  8. 134
      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, params,
}) })
} }
// 获取年度比赛详情
export const getYearRaceInfo = (params: any) => {
return request({
url: '/annualcomp/annualComp/findndbswxq',
params,
})
}
// 获取比赛详细信息 // 获取比赛详细信息
export const getRaceInfo = (params: any) => { export const getRaceInfo = (params: any) => {
return request({ return request({

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

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

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

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

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

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

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

@ -7,62 +7,7 @@
</div> </div>
</div> </div>
<div class="container-1420"> <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> <el-card>
<div class="user-info-main"> <div class="user-info-main">
<div class="left"> <div class="left">

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

Loading…
Cancel
Save