Merge branch 'main' of http://122.51.230.86:3000/dianliang/school_website
This commit is contained in:
commit
7663345f28
@ -21,3 +21,10 @@ export function getContent(id) {
|
|||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getbaseInfo() {
|
||||||
|
return request({
|
||||||
|
url: '/api/baseInfo',
|
||||||
|
method: 'get',
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="committee-cont">
|
<div class="committee-cont">
|
||||||
<div class="tabber-box " v-if="false" >
|
<div class="tabber-box " v-if="currentActive == 5" >
|
||||||
<div class="titel_">赛区参赛报名表(本科组)</div>
|
<div class="titel_">赛区参赛报名表(本科组)</div>
|
||||||
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="180px" class="demo-ruleForm">
|
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="180px" class="demo-ruleForm">
|
||||||
<div style="display: flex;">
|
<div style="display: flex;">
|
||||||
@ -118,34 +118,26 @@
|
|||||||
<div v-if="currentActive == 3" v-html="nav[3].children.list[0].contentDetail"></div>
|
<div v-if="currentActive == 3" v-html="nav[3].children.list[0].contentDetail"></div>
|
||||||
<div v-for="(item, index) in nav " :key=index>
|
<div v-for="(item, index) in nav " :key=index>
|
||||||
<div class="about-conts-item1" v-if="currentActive == index">
|
<div class="about-conts-item1" v-if="currentActive == index">
|
||||||
<div v-if="currentActive != 3 && currentActive != 2 " class="neirong" v-html="pageContextList[index]"></div>
|
<div v-if="currentActive == 0 || currentActive == 1 " class="neirong" v-html="pageContextList[index]"></div>
|
||||||
<div class="wrapbox">
|
|
||||||
<div v-if="currentActive == 2 " v-for="(item,index) in nav[2].children.list" @click="goDeatail(item)" >
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-if="currentActive == 2 " class="wrapbox">
|
||||||
|
<div class="rsr" v-for="(item,index) in nav[2].children.list" @click="goDeatail(item)" >
|
||||||
<img :src=" imgurl + item.contentImg" style="width: 255px;height: 220px">
|
<img :src=" imgurl + item.contentImg" style="width: 255px;height: 220px">
|
||||||
<div>{{item.contentTitle}}</div>
|
<div class="size-t">{{item.contentTitle}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-if="currentActive == 4 " class="wrapbox">
|
||||||
|
<div class="rsr" v-for="(item,index) in nav[2].children.list" @click="goDeatail(item)" >
|
||||||
|
<img :src=" imgurl + item.contentImg" style="width: 255px;height: 220px">
|
||||||
|
<div class="size-t">{{item.contentTitle}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-show="currentActive == 2 || currentActive ==4" >
|
<div v-show="currentActive == 2 || currentActive ==4" >
|
||||||
<page-util :category-id="categoryId" @event-message="handleDataFromPage" />
|
<page-util :category-id="categoryId" @event-message="handleDataFromPage" />
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="news">
|
<div class="anniu" v-show="currentActive == 1 " >去报名</div>
|
||||||
<div class="news-list">
|
|
||||||
<div class="item" v-for="(item, index) in 8">
|
|
||||||
<div class="tts">
|
|
||||||
关于开展第二届跨专业虚拟仿真综合实习的通知关于开展第二届跨专业虚拟仿真综合实习的通知关于开展第二届跨专业虚拟仿真综合实习的通知关于开展第二届跨专业虚拟仿真综合实习的通知关于开展第二届跨专业虚拟仿真综合实习的通知
|
|
||||||
</div>
|
|
||||||
<div class="time">2024-05-20</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="page">
|
|
||||||
<el-pagination background layout="prev, pager, next" :total="1000" class="">
|
|
||||||
</el-pagination>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<footers></footers>
|
<footers></footers>
|
||||||
@ -155,7 +147,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Swiper, SwiperSlide } from "vue-awesome-swiper";
|
import { Swiper, SwiperSlide } from "vue-awesome-swiper";
|
||||||
import "swiper/css/swiper.min.css";
|
import "swiper/css/swiper.min.css";
|
||||||
import { getPageData, getPageColumn } from "@/api/officialWebsite/getPageData";
|
import { getPageData, getPageColumn,getbaseInfo } from "@/api/officialWebsite/getPageData";
|
||||||
import footers from '@/views/officialWebsite/Components/footer.vue'
|
import footers from '@/views/officialWebsite/Components/footer.vue'
|
||||||
import headers from '@/views/officialWebsite/Components/header.vue'
|
import headers from '@/views/officialWebsite/Components/header.vue'
|
||||||
import PageUtil from '@/views/officialWebsite/Components/page'
|
import PageUtil from '@/views/officialWebsite/Components/page'
|
||||||
@ -173,6 +165,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
registerStatus:0,
|
||||||
imgurl:process.env.VUE_APP_BASE_API,
|
imgurl:process.env.VUE_APP_BASE_API,
|
||||||
ruleForm: {
|
ruleForm: {
|
||||||
|
|
||||||
@ -230,11 +223,16 @@ export default {
|
|||||||
if (this.currentActive == value) {
|
if (this.currentActive == value) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
this.currentActive = value
|
this.currentActive = value
|
||||||
this.categoryId = this.nav[value].id
|
this.categoryId = this.nav[value].id
|
||||||
// console.log(this.nav,'nav' )
|
// console.log(this.nav,'nav' )
|
||||||
},
|
},
|
||||||
initPageData() {
|
initPageData() {
|
||||||
|
getbaseInfo().then(res=>{
|
||||||
|
this.registerStatus = res.data.registerStatus
|
||||||
|
console.log(res,'5')
|
||||||
|
})
|
||||||
this.categoryId = this.$route.query.id
|
this.categoryId = this.$route.query.id
|
||||||
// console.log(this.$route.query.id, this.categoryId)
|
// console.log(this.$route.query.id, this.categoryId)
|
||||||
let routeParam = {
|
let routeParam = {
|
||||||
@ -271,6 +269,18 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
.anniu{
|
||||||
|
width: 150px;
|
||||||
|
height: 50px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
background: #00A0E8;
|
||||||
|
color: #fff;
|
||||||
|
margin: 15px auto;
|
||||||
|
border-radius: 8px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
/* .container {
|
/* .container {
|
||||||
background: #F5F5F5;
|
background: #F5F5F5;
|
||||||
} */
|
} */
|
||||||
@ -391,6 +401,9 @@ export default {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
}
|
}
|
||||||
|
.rsr{
|
||||||
|
width: 20%;
|
||||||
|
}
|
||||||
.ny-banner {
|
.ny-banner {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
@ -717,4 +730,9 @@ export default {
|
|||||||
padding: 15px;
|
padding: 15px;
|
||||||
margin: 15px auto;
|
margin: 15px auto;
|
||||||
}
|
}
|
||||||
|
.size-t{
|
||||||
|
width: 100%;
|
||||||
|
height: 50px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -723,4 +723,55 @@ export default {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-bottom: 50px;
|
margin-bottom: 50px;
|
||||||
}
|
}
|
||||||
|
::v-deep .el-pagination .el-pager li:not(.disabled) {
|
||||||
|
border-radius: 100%;
|
||||||
|
/* 圆形 */
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
/* 按钮高度 */
|
||||||
|
line-height: 50px;
|
||||||
|
/* 文字垂直居中 */
|
||||||
|
text-align: center;
|
||||||
|
/* 文字水平居中 */
|
||||||
|
margin: 0 15px;
|
||||||
|
/* 按钮间距 */
|
||||||
|
border-radius: 50%;
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
background: #FFFFFF;
|
||||||
|
|
||||||
|
border: 1px solid #DDDDDD;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 选中的页码按钮样式 */
|
||||||
|
::v-deep .el-pagination .el-pager .active {
|
||||||
|
background-color: #005375;
|
||||||
|
;
|
||||||
|
/* 背景颜色 */
|
||||||
|
color: #fff;
|
||||||
|
/* 文字颜色 */
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .el-pagination.is-background .btn-next,
|
||||||
|
::v-deep .el-pagination.is-background .btn-prev {
|
||||||
|
|
||||||
|
background-color: #f4f4f5;
|
||||||
|
color: #333;
|
||||||
|
margin: 0 15px;
|
||||||
|
border-radius: 50%;
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
background: #FFFFFF;
|
||||||
|
|
||||||
|
border: 1px solid #DDDDDD;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .el-pagination .btn-next .el-icon,
|
||||||
|
::v-deep .el-pagination .btn-prev .el-icon {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
.page-box{
|
||||||
|
width: 80%;
|
||||||
|
margin: 10px auto;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user