前端补正
This commit is contained in:
parent
8506989c79
commit
dc25681010
@ -305,9 +305,7 @@ export default {
|
||||
}
|
||||
if(data.linkType == 1){
|
||||
window.open(data.link, '_blank');
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
/** 顶部tab列表 */
|
||||
tabLsit() {
|
||||
|
@ -22,7 +22,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="committee-cont">
|
||||
<div class="tabber-box " v-if="currentActive == 3" >
|
||||
<div class="tabber-box " v-if="false" >
|
||||
<div class="titel_">赛区参赛报名表(本科组)</div>
|
||||
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="180px" class="demo-ruleForm">
|
||||
<div style="display: flex;">
|
||||
@ -115,11 +115,12 @@
|
||||
|
||||
</div>
|
||||
<!-- 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 class="about-conts-item1" v-if="currentActive == index">
|
||||
<div v-if="currentActive != 3 && currentActive != 2 " class="neirong" v-html="pageContextList[index]"></div>
|
||||
<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">
|
||||
<div>{{item.contentTitle}}</div>
|
||||
</div>
|
||||
@ -206,13 +207,25 @@ 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) {
|
||||
if (this.currentActive == value) {
|
||||
return
|
||||
}
|
||||
this.currentActive = value
|
||||
console.log(this.nav[2].children.list,'nav' )
|
||||
console.log(this.nav,'nav' )
|
||||
},
|
||||
initPageData() {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user