|
@@ -7,10 +7,10 @@
|
|
|
<div class="lefttop"><span class="title"> |</span> 专题研讨<a class="more">MORE</a></div>
|
|
|
<ul class="infoleftInfo">
|
|
|
<li v-for="(item, index) in zhuantiList" :key="index">
|
|
|
- <p>{{ item.date }}</p>
|
|
|
+ <p>{{ item.publish_time }}</p>
|
|
|
<p>
|
|
|
<span class="textOver">{{ item.title }}</span>
|
|
|
- <span>{{ item.brief }}</span>
|
|
|
+ <span>{{ item.content }}</span>
|
|
|
</p>
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -21,7 +21,7 @@
|
|
|
<li v-for="(item, index) in jishuList" :key="index">
|
|
|
<p>
|
|
|
<span class="textOver">{{ item.title }}</span
|
|
|
- ><span>{{ item.date }}</span>
|
|
|
+ ><span>{{ item.publish_time }}</span>
|
|
|
</p>
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -32,7 +32,7 @@
|
|
|
<li v-for="(item, index) in hangyeList" :key="index">
|
|
|
<p>
|
|
|
<span class="textOver">{{ item.title }}</span
|
|
|
- ><span>{{ item.date }}</span>
|
|
|
+ ><span>{{ item.publish_time }}</span>
|
|
|
</p>
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -41,10 +41,10 @@
|
|
|
<div class="lefttop"><span class="title"> |</span>教育培训<a class="more">MORE</a></div>
|
|
|
<ul class="downInfoListInfo">
|
|
|
<li v-for="(item, index) in jiaoyuList" :key="index">
|
|
|
- <p>{{ item.date }}</p>
|
|
|
+ <p>{{ item.publish_time }}</p>
|
|
|
<p>
|
|
|
<span class="textOver">{{ item.title }}</span>
|
|
|
- <span>{{ item.brief }}</span>
|
|
|
+ <span>{{ item.content }}</span>
|
|
|
</p>
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -237,9 +237,14 @@ export default {
|
|
|
methods: {
|
|
|
...news(['query']),
|
|
|
async searchInfo() {
|
|
|
- let res = await this.query({ skip: 0, limit: 4 });
|
|
|
- console.log(res);
|
|
|
- // if (this.$checkRes(res)) this.$set(this, `tecList`, res.data);
|
|
|
+ let res = await this.query({ skip: 0, limit: 4, column_name: '专题研讨' });
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `zhuantiList`, res.data);
|
|
|
+ res = await this.query({ skip: 0, limit: 4, column_name: '技术问答' });
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `jishuList`, res.data);
|
|
|
+ res = await this.query({ skip: 0, limit: 4, column_name: '行业研究' });
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `hangyeList`, res.data);
|
|
|
+ res = await this.query({ skip: 0, limit: 4, column_name: '教育培训' });
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `jiaoyuList`, res.data);
|
|
|
},
|
|
|
},
|
|
|
computed: {
|
|
@@ -285,6 +290,7 @@ export default {
|
|
|
width: 100%;
|
|
|
border-bottom: 1px dashed #ccc;
|
|
|
padding: 15px 0 15px 0;
|
|
|
+ height: 71px;
|
|
|
}
|
|
|
.infoleftInfo li:hover p:last-child span:first-child {
|
|
|
-webkit-transform: translateY(-3px);
|