Browse Source

第二版修改

master
lucky 5 years ago
parent
commit
cadc6828b7
  1. 20
      src/views/NewPlatform/Children/ShareChild/Institute.vue

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

@ -7,17 +7,22 @@
<banner :show-page="showPage" />
<div class="inner ins-box">
<p class="font-bold-24 item-title">研究院介绍</p>
<div>123</div>
<div>研究院介绍</div>
<p class="font-bold-24 item-title" v-if="list[0]">设备列表</p>
<div class="d-flex flex-wrap" v-if="list[0]">
<div :class="(index + 1) % 4 === 0 ? 'margin-0' : ''" :key="index" class="item-box mb-8" v-for="(item, index) in list">
<div
: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%" />
<p class="font-24 my-4">{{ item.name }}</p>
<p @click="jump(item.id)" class="font-16 baseColor item-more">了解更多</p>
</div>
</div>
<p class="font-bold-24 item-title" v-if="obj !== {}">人才团队带头人情况</p>
<div class="d-flex" v-if="obj !== {}">
<p class="font-bold-24 item-title" v-if="obj !== null">人才团队带头人情况</p>
<div class="d-flex" v-if="obj !== null">
<div class="header-box" style="flex: 1">
<p style="background: #11b7ce; color: #fff">姓名</p>
<p>性别</p>
@ -69,7 +74,7 @@
<div class="con-box" style="flex: 1">{{ item.position }}</div>
<div class="con-box" style="flex: 1">{{ item.direction }}</div>
</div>
</div> -->
</div>-->
</div>
</div>
</template>
@ -95,7 +100,7 @@ export default {
{ name: '科技资源开放共享服务平台', url: '/NewPlatform/Share' },
{ name: '研究院详情', url: '' },
],
obj: {},
obj: null,
list: [],
};
},
@ -142,8 +147,9 @@ export default {
const res = await teamSearch(params);
const { code, msg, data } = res.data;
if (code === 200) {
if (data !== []) {
if (data !== [] && data.length > 0) {
this.obj = data[0];
console.log('this.obj: ', this.obj);
}
}
} catch (error) {

Loading…
Cancel
Save