This commit is contained in:
xvv 2024-08-20 18:25:01 +08:00
parent d9355f2556
commit 8f2acefd86
8 changed files with 53 additions and 41 deletions

View File

@ -8,6 +8,13 @@ export function getPageData(data) {
})
}
export function postcontentList(data) {
return request({
url: '/api/category/contentList',
method: 'post',
data
})
}
export function getPageColumn(data) {
return request({
url: '/api/category',

View File

@ -167,9 +167,9 @@ export default {
</script>
<style scoped>
/* .container {
.container {
background: #F5F5F5;
} */
}
.bj {
background: #F5F5F5;
}
@ -362,6 +362,10 @@ export default {
width: 80%;
margin: 15px auto;
padding: 30px 0;
background: #fff;
box-sizing: border-box;
padding: 15px;
border-radius: 8px;
}
.committee-cont .news {
@ -614,6 +618,7 @@ export default {
border-bottom: 1px solid #DDDDDD;
box-sizing: border-box;
padding: 15px 0px;
background: #fff;
}
.noticeRsr:hover{
color: #00A0E8;

View File

@ -446,18 +446,7 @@ export default {
this.createRules()
},
methods: {
goDeatail(data){
// console.log(data)
if(data.linkType == 0){
this.$router.push({
name: 'details',
query:{ id: data.id }
});
}
if(data.linkType == 1){
window.open(data.link, '_blank');
}
},
createRules(){
for (let i = 0; i < 2; i++){
this.rules[`teacherInfoList.${i}.teacherName`] = [
@ -750,6 +739,7 @@ export default {
}
.rsr{
width: 20%;
text-align: center;
}
.newRsr{
width: 25%;
@ -845,6 +835,7 @@ export default {
overflow: hidden;
box-sizing: border-box;
padding: 15px;
min-height: 400px;
img{
width: 100%;
}

View File

@ -43,7 +43,7 @@
<script>
import { Swiper, SwiperSlide } from "vue-awesome-swiper";
import "swiper/css/swiper.min.css";
import { getPageData, } from "@/api/officialWebsite/getPageData";
import { getPageData,postcontentList } from "@/api/officialWebsite/getPageData";
import headers from '@/views/officialWebsite/Components/header.vue'
import footers from '@/views/officialWebsite/Components/footer.vue'
@ -95,20 +95,7 @@ export default {
},
methods: {
goDeatail(data){
// console.log(data)
if(data.linkType == 0){
this.$router.push({
name: 'details',
query:{ id: data.id }
});
}
if(data.linkType == 1){
window.open(data.link, '_blank');
}
},
//
getCurrentActive(value) {
@ -121,7 +108,7 @@ export default {
// console.log("id", this.$route.query.id);
// console.log(this.queryParams)
if (!this.queryParams.categoryId) return;
getPageData(this.queryParams).then(res => {
postcontentList(this.queryParams).then(res => {
// console.log('',res)
this.listinfo = res.data.list;
this.total =res.data.total;

View File

@ -135,9 +135,9 @@ export default {
</script>
<style scoped>
/* .container {
.container {
background: #F5F5F5;
} */
}
.bj {
background: #F5F5F5;
}
@ -331,6 +331,10 @@ export default {
padding: 30px 0;
width: 80%;
margin: 20px auto;
background: #fff;
box-sizing: border-box;
padding: 15px;
border-radius: 8px;
}
.page-box{
width: 82%;
@ -549,6 +553,7 @@ export default {
border-bottom: 1px solid #DDDDDD;
box-sizing: border-box;
padding: 15px 0px;
background: #fff;
}
.noticeRsr:hover{
color: #00A0E8;

View File

@ -1,5 +1,5 @@
<template>
<div class="container">
<div class="containerss">
<div class="top-box">
<headers :msg='msg'></headers>
@ -50,7 +50,10 @@
</div>
</div>
</div>
<page-util :category-id="categoryId" @event-message="handleDataFromPage" />
<div style="background: #fff">
<page-util :category-id="categoryId" @event-message="handleDataFromPage" />
</div>
<!-- <div class="neirong" v-html="professionalResources"></div>-->
</div>
@ -146,9 +149,9 @@ export default {
</script>
<style scoped>
/* .container {
.containerss {
background: #F5F5F5;
} */
}
.bj {
background: #F5F5F5;
}
@ -285,7 +288,11 @@ export default {
}
.about-conts {
padding: 40px 0;
width: 80%;
margin: 15px auto;
padding: 15px;
background: #fff;
border-radius: 8px;
}
.about-conts .about-conts-item1 {
@ -297,7 +304,7 @@ export default {
.about-conts .ayptjs {
padding: 30px 0;
width: 80%;
width: 100%;
margin: 0 auto;
}

View File

@ -155,9 +155,9 @@ export default {
</script>
<style scoped>
/* .container {
.container {
background: #F5F5F5;
} */
}
.bj {
background: #F5F5F5;
}

View File

@ -169,9 +169,9 @@ export default {
</script>
<style scoped>
/* .container {
.container {
background: #F5F5F5;
} */
}
.bj {
background: #F5F5F5;
}
@ -587,6 +587,9 @@ export default {
margin-top: 50px;
display: flex;
flex-wrap: wrap;
background: #fff;
box-sizing: border-box;
padding: 15px;
}
.news11 .news11-list .news11-list-item {
@ -595,6 +598,7 @@ export default {
margin-bottom: 20px;
position: relative;
margin-right: 10px;
margin-right: 1%;
}
.news11 .news11-list .news11-list-item:hover>.backmo {
@ -693,10 +697,16 @@ export default {
font-size: 14px;
}
.pagin{
width: 80%;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 50px;
background: #fff;
margin: 0 auto;
margin-bottom: 10px;
box-sizing: border-box;
padding-bottom: 10px;
}
::v-deep .el-pagination .el-pager li:not(.disabled) {
border-radius: 100%;