Browse Source

Merge branch 'master' of dd.tall.wiki:binbin0314/green.v0.3

master
lucky 5 years ago
parent
commit
6330b9ec22
  1. 13
      src/components/PlatformList/PlatformList.vue
  2. 15
      src/views/NewPlatform/Children/ShareChild/Institute.vue

13
src/components/PlatformList/PlatformList.vue

@ -5,7 +5,7 @@
<img :src="item.picUrl" class="con-img" v-if="item.picUrl" :title="item.name" /> <img :src="item.picUrl" class="con-img" v-if="item.picUrl" :title="item.name" />
<img :src="item.visitLocation" class="con-img" :title="item.name" v-else /> <img :src="item.visitLocation" class="con-img" :title="item.name" v-else />
<p class="font-24 my-4 title">{{ item.name }}</p> <p class="font-24 my-4 title">{{ item.name }}</p>
<p @click="jump(item.id)" class="font-16 baseColor" style="text-align: right; cursor: pointer">了解更多</p> <p @click="jump(item)" class="font-16 baseColor" style="text-align: right; cursor: pointer">了解更多</p>
</div> </div>
</div> </div>
<div class="inner"> <div class="inner">
@ -182,24 +182,27 @@ export default {
} }
}, },
// / // /
jump(id) { jump(item) {
if (this.listState === 0) { if (this.listState === 0) {
this.$router.push({ this.$router.push({
path: '/NewPlatform/Share/Institute', path: '/NewPlatform/Share/Institute',
name: 'Institute', name: 'Institute',
params: { id }, params: {
id: item.id,
direction: item.direction,
},
}); });
} else if (this.listState === 1) { } else if (this.listState === 1) {
this.$router.push({ this.$router.push({
path: '/NewPlatform/Share/InsDet', path: '/NewPlatform/Share/InsDet',
name: 'InsDet', name: 'InsDet',
params: { id }, params: { id: item.id },
}); });
} else if (this.listState === 3) { } else if (this.listState === 3) {
this.$router.push({ this.$router.push({
path: '/NewPlatform/Share/InsDet', path: '/NewPlatform/Share/InsDet',
name: 'InsDet', name: 'InsDet',
params: { id }, params: { id: item.id },
}); });
} }
}, },

15
src/views/NewPlatform/Children/ShareChild/Institute.vue

@ -7,15 +7,10 @@
<banner :show-page="showPage" /> <banner :show-page="showPage" />
<div class="inner ins-box"> <div class="inner ins-box">
<p class="font-bold-24 item-title">研究院介绍</p> <p class="font-bold-24 item-title">研究院介绍</p>
<div>研究院介绍</div> <div>{{ direction }}</div>
<p class="font-bold-24 item-title" v-if="list[0]">设备列表</p> <p class="font-bold-24 item-title" v-if="list[0]">设备列表</p>
<div class="d-flex flex-wrap" v-if="list[0]"> <div class="d-flex flex-wrap" v-if="list[0]">
<div <div :class="(index + 1) % 4 === 0 ? 'margin-0' : ''" :key="index" class="item-box mb-8" v-for="(item, index) in list">
:class="(index + 1) % 4 === 0 ? 'margin-0' : ''"
:key="index"
class="item-box mb-8"
v-for="(item, index) in list"
>
<img :src="item.visitLocation" style="height: 220px; width: 100%" /> <img :src="item.visitLocation" style="height: 220px; width: 100%" />
<p class="font-24 my-4">{{ item.name }}</p> <p class="font-24 my-4">{{ item.name }}</p>
<p @click="jump(item.id)" class="font-16 baseColor item-more">了解更多</p> <p @click="jump(item.id)" class="font-16 baseColor item-more">了解更多</p>
@ -63,7 +58,7 @@
<div class="h-box" style="flex: 1">职称职务</div> <div class="h-box" style="flex: 1">职称职务</div>
<div class="h-box" style="flex: 1">研究方向</div> <div class="h-box" style="flex: 1">研究方向</div>
</div> </div>
<div v-if="obj.teamMemberList && obj.teamMemberList.length>0"> <div v-if="obj.teamMemberList && obj.teamMemberList.length > 0">
<div :key="index" class="d-flex" v-for="(item, index) in obj.teamMemberList"> <div :key="index" class="d-flex" v-for="(item, index) in obj.teamMemberList">
<div class="con-box" style="flex: 1">{{ item.name }}</div> <div class="con-box" style="flex: 1">{{ item.name }}</div>
<div class="con-box" style="flex: 1"> <div class="con-box" style="flex: 1">
@ -104,6 +99,7 @@ export default {
], ],
obj: null, obj: null,
list: [], list: [],
direction: '',
}; };
}, },
computed: mapState('home', ['LabId']), computed: mapState('home', ['LabId']),
@ -114,6 +110,9 @@ export default {
} else { } else {
this.id = this.LabId; this.id = this.LabId;
} }
if (this.$route.params.direction) {
this.direction = this.$route.params.direction;
}
this.getData(); this.getData();
this.getTeam(); this.getTeam();
}, },

Loading…
Cancel
Save