aBin 5 years ago
parent
commit
0d56a1df6d
  1. 22
      src/components/PlatformList/PlatformList.vue
  2. 2
      src/views/ItInformation/ItDetails.vue

22
src/components/PlatformList/PlatformList.vue

@ -1,11 +1,20 @@
<template>
<div>
<div class="inner d-flex flex-wrap">
<div :class="(index + 1) % 4 === 0 ? 'margin-0' : ''" :key="index" class="item-box mb-8" v-for="(item, index) in list">
<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 />
<div
:class="(index + 1) % 4 === 0 ? 'margin-0' : ''"
:key="index"
class="item-box mb-8"
v-for="(item, index) in list"
>
<img :src="item.picUrl" :title="item.name" class="con-img" v-if="item.picUrl" />
<img :src="item.visitLocation" :title="item.name" class="con-img" v-else />
<p class="font-24 my-4 title">{{ item.name }}</p>
<p @click="jump(item)" 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 class="inner">
@ -93,12 +102,13 @@ export default {
},
created() {
this.current = this.shareCurrent;
console.log('this.listState: ', this.listState);
if (this.listState === 0) {
this.getProductLists();
this.getSear();
} else if (this.listState === 1) {
this.getSelI();
} else {
this.getSear();
this.getProductLists();
}
},
methods: {

2
src/views/ItInformation/ItDetails.vue

@ -11,7 +11,7 @@
style="font-size: 14px; margin-right: 10px"
type="clock-circle"
/>
<span>{{ $moment(+actDetail.time * 1000).format('YYYY-MM-DD HH:mm:ss') }}</span>
<span>{{ actDetail.time }}</span>
</span>
<span style="margin-left: 60px">
<a-icon class="baseColor" style="margin-right: 10px" type="environment" />

Loading…
Cancel
Save