Browse Source

分类查询

master
lucky 5 years ago
parent
commit
3942d8b69e
  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> <template>
<div> <div>
<div class="inner d-flex flex-wrap"> <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"> <div
<img :src="item.picUrl" class="con-img" v-if="item.picUrl" :title="item.name" /> :class="(index + 1) % 4 === 0 ? 'margin-0' : ''"
<img :src="item.visitLocation" class="con-img" :title="item.name" v-else /> :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 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> </div>
<div class="inner"> <div class="inner">
@ -93,12 +102,13 @@ export default {
}, },
created() { created() {
this.current = this.shareCurrent; this.current = this.shareCurrent;
console.log('this.listState: ', this.listState);
if (this.listState === 0) { if (this.listState === 0) {
this.getProductLists(); this.getSear();
} else if (this.listState === 1) { } else if (this.listState === 1) {
this.getSelI(); this.getSelI();
} else { } else {
this.getSear(); this.getProductLists();
} }
}, },
methods: { methods: {

2
src/views/ItInformation/ItDetails.vue

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

Loading…
Cancel
Save