前端补正

This commit is contained in:
xvv 2024-08-02 16:38:43 +08:00
parent 8506989c79
commit dc25681010
2 changed files with 16 additions and 5 deletions

View File

@ -305,9 +305,7 @@ export default {
} }
if(data.linkType == 1){ if(data.linkType == 1){
window.open(data.link, '_blank'); window.open(data.link, '_blank');
} }
}, },
/** 顶部tab列表 */ /** 顶部tab列表 */
tabLsit() { tabLsit() {

View File

@ -22,7 +22,7 @@
</div> </div>
</div> </div>
<div class="committee-cont"> <div class="committee-cont">
<div class="tabber-box " v-if="currentActive == 3" > <div class="tabber-box " v-if="false" >
<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;">
@ -115,11 +115,12 @@
</div> </div>
<!-- main --> <!-- main -->
<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 != 3 && currentActive != 2 " class="neirong" v-html="pageContextList[index]"></div>
<div class="wrapbox"> <div class="wrapbox">
<div v-if="currentActive == 2 " v-for="(item,index) in nav[2].children.list"> <div v-if="currentActive == 2 " 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>{{item.contentTitle}}</div>
</div> </div>
@ -206,13 +207,25 @@ export default {
}, },
methods: { 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) { getCurrentActive(value) {
if (this.currentActive == value) { if (this.currentActive == value) {
return return
} }
this.currentActive = value this.currentActive = value
console.log(this.nav[2].children.list,'nav' ) console.log(this.nav,'nav' )
}, },
initPageData() { initPageData() {