Browse Source

首页填充数据

master
wanghongjun 3 years ago
parent
commit
7cb57bed83
  1. 16
      src/views/home/index.vue

16
src/views/home/index.vue

@ -385,11 +385,11 @@
</div> </div>
<div class="section-block section-block-4" v-if="isLogin"> <div class="section-block section-block-4" v-if="isLogin">
<div class="d-flex mb-3" style="margin-top: 20px;"> <div class="d-flex mb-3" style="margin-top: 20px;">
<img src="../../../static/images/illustration-4.png" alt="" width="300" height="150" class="img"> <router-link v-for="sysItem in articleSysList" :to="`/college/detail/${sysItem.category_id}/${sysItem.id}`" class="target-a">
<img src="../../../static/images/illustration-5.png" alt="" width="300" height="150" class="img"> <img :src="sysItem.full_cover" alt="" width="300" height="150" class="img">
<img src="../../../static/images/illustration-6.png" alt="" width="300" height="150" class="img"> </router-link>
</div> </div>
<div class="d-flex" style="color: #6A6E74;"><div>{{ $t("xtzcoins3.a68") }}</div><div style="margin:0px 30px;">(2023-04-25)</div><div>{{ $t("xtzcoins3.a69") }}</div></div> <!-- <div class="d-flex" style="color: #6A6E74;"><div>{{ $t("xtzcoins3.a68") }}</div><div style="margin:0px 30px;">(2023-04-25)</div><div>{{ $t("xtzcoins3.a69") }}</div></div>-->
</div> </div>
<div class="section-block section-block-2"> <div class="section-block section-block-2">
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
@ -1189,6 +1189,7 @@ export default {
cid: '', cid: '',
price_cny: 0, price_cny: 0,
email: '', email: '',
articleSysList: [],
}; };
}, },
methods: { methods: {
@ -1416,6 +1417,11 @@ export default {
this.cid = e; this.cid = e;
this.getArticleListItem(); this.getArticleListItem();
}, },
getArticleSysList(){
College.getArticleList(4).then(data => {
this.articleSysList = data.splice(0, 3);
}).catch();
},
// //
getCurrencyExCny() { getCurrencyExCny() {
@ -1458,6 +1464,8 @@ export default {
this.indexMarketList(); this.indexMarketList();
this.getCollegeLinks(); this.getCollegeLinks();
this.getCurrencyExCny(); this.getCurrencyExCny();
this.getArticleSysList();
console.log(this.articleSysList);
/* /*
* swiper 轮播图效果 * swiper 轮播图效果
*/ */

Loading…
Cancel
Save