Commit c7b2034c authored by anxixi's avatar anxixi

首页相关功能

parent 6af6d3bf
......@@ -175,22 +175,22 @@
envisible:false,
indextab:this.indextab_zh,
indextab_zh:[
{id:1,name:this.$t("topNav.index"),path:'/'},
{id:2,name:this.$t("topNav.guess"),path:'/guesslist'},
{id:3,name:this.$t("topNav.activity"),path:'/activitylist'},
{id:4,name:this.$t("topNav.topic"),path:'/topicList'},
{id:5,name:this.$t("topNav.match"),path:'/seeprojectlist'},
{id:6,name:this.$t("topNav.article"),path:'/articleList'},
{id:7,name:this.$t("topNav.industry"),path:'/industryReport'},
{id:8,name:this.$t("topNav.cooperationcase"),path:'/successfulcase'},
{id:1,name:this.$t("topNav.index"),path:'/',pathchild:'/'},
{id:2,name:this.$t("topNav.guess"),path:'/guesslist',pathchild:'/guessDetail'},
{id:3,name:this.$t("topNav.activity"),path:'/activitylist',pathchild:'/eventdetail'},
{id:4,name:this.$t("topNav.topic"),path:'/topicList',pathchild:'/topicDetails'},
{id:5,name:this.$t("topNav.match"),path:'/seeprojectlist',pathchild:'/seeprojectlist'},
{id:6,name:this.$t("topNav.article"),path:'/articleList',pathchild:'/articleDetail'},
{id:7,name:this.$t("topNav.industry"),path:'/industryReport',pathchild:'/industryReport'},
{id:8,name:this.$t("topNav.cooperationcase"),path:'/successfulcase',pathchild:'/casedetails'},
],
indextab_en:[
{id:1,name:this.$t("topNav.index"),path:'/'},
{id:2,name:this.$t("topNav.findProject"),path:'/seeprojectlist'},
{id:3,name:this.$t("topNav.findCustomer"),path:'/bigBusiness/list'},
{id:4,name:this.$t("topNav.Findevent"),path:'/activitylist'},
{id:5,name:this.$t("topNav.industry"),path:'/industryReport'},
{id:6,name:this.$t("topNav.cooperationcase"),path:'/successfulcase'},
{id:1,name:this.$t("topNav.index"),path:'/',pathchild:'/'},
{id:2,name:this.$t("topNav.findProject"),path:'/seeprojectlist',pathchild:'/seeprojectlist'},
{id:3,name:this.$t("topNav.findCustomer"),path:'/bigBusiness/list',pathchild:'/bigBusiness/list'},
{id:4,name:this.$t("topNav.Findevent"),path:'/activitylist',pathchild:'/eventdetail'},
{id:5,name:this.$t("topNav.industry"),path:'/industryReport',pathchild:'/industryReport'},
{id:6,name:this.$t("topNav.cooperationcase"),path:'/successfulcase',pathchild:'/casedetails'},
],
index_hover:1,
lang: this.$i18n.locale,
......@@ -328,7 +328,7 @@
},
tabstate(path){
for(let i in this.indextab){
if(path == this.indextab[i].path){
if(path == this.indextab[i].path || path == this.indextab[i].pathchild){
this.index_hover = this.indextab[i].id
return
}else this.index_hover = 1
......@@ -342,12 +342,8 @@
window.addEventListener('scroll', this.menu);
this.indextab = this.$i18n.locale == 'zh-CN'?this.indextab_zh:this.indextab_en;
this.wxopenlogin();
for(let i in this.indextab){
if(this.$route.path == this.indextab[i].path){
this.index_hover = this.indextab[i].id
return
}else this.index_hover = 1
}
console.log(this.$route.path)
this.tabstate(this.$route.path);
},
watch:{
tabpath(val){
......
......@@ -158,6 +158,7 @@
// this.maiDianFunc(data);
// })
globalMsg.$on("newTop_tab",(data)=>{
console.log(12333333)
this.tabpath= data;
})
globalMsg.$on("topShow",(data)=>{
......
......@@ -374,7 +374,7 @@
<p class="ellipsisFont1" style="margin-top: 5px;color: #AAAAAA;width: 100%;height: 17px;overflow: hidden;line-height: 17px;">{{item.isProfessor==1?item.professorIntroduction:item.createdTimeStr}}</p>
</div>
</div>
<p class="ellipsisFont2" style="margin: 10px 0;line-height: 24px;width: 100%;max-height: 48px;overflow: hidden;color: #1A1A1E;" v-html="item.pcState==1?publicFun.getTextInRichtext(item.discussContent):publicFun.analyzeEmoji(item.discussContent)"></p>
<p class="ellipsisFont2" style="margin: 10px 0;line-height: 24px;width: 100%;max-height: 48px;overflow: hidden;color: #1A1A1E;" v-html="item.pcState==1?publicFun.getTextInRichtext(item.simpleContent):publicFun.analyzeEmoji(item.simpleContent)"></p>
<div class="gendisplay" style="padding: 10px;background: #F5F5F5;">
<p style="width: calc(100% - 82px);color:#1A1A1E;">#{{item.baseTopic.topicTitle}}#</p>
<p style="width: 82px;"><img class="imgInfo" style="height: 56px;width: 82px;border-radius: 3px;border: none;" :style="{backgroundImage:'url('+(item.baseTopic.topicCover?item.baseTopic.topicCover:require('../../../assets/img/topicbackground.jpg'))+')'}" alt=""></p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment