From c7d16efc4cacb4eae0d160bf9c7853156a10ad4a Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Mon, 15 May 2023 17:59:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E6=89=8B=E6=8C=87=E5=BC=95=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2=E6=B4=BB=E5=8A=A8=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/index.vue | 54 +++++++++++++++++++++++++++++----------- 1 file changed, 40 insertions(+), 14 deletions(-) diff --git a/src/views/home/index.vue b/src/views/home/index.vue index eb7f0ed..4bdf9d9 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -449,20 +449,14 @@

新手指引

即刻开始
-
购买既出售数字货币
探索币安交易
挖矿产品教程
+
+
{{itemV.label}}
+
-
- -
3分钟极速了解法币交易
-
-
- -
如何购买数字货币
-
-
- -
如何出售数字货币
-
+
+ +
{{ item.title }}
+
@@ -1201,6 +1195,8 @@ export default { noticeList: [], data: [99, 71, 78, 25, 36, 92], line: "", + itemList: [], + cid: '', }; }, methods: { @@ -1403,6 +1399,30 @@ export default { let _time = new Date(str); return _time.getMonth() + 1 + "-" + _time.getDate(); }, + getArticleListItem() { + College.getArticleList(this.cid).then(data => { + + this.articleList = data.splice(0, 3); + }).catch(); + }, + getCollegeLinks() { + College.getCategoryList().then(list => { + list.forEach(item => { + if (this.cid === '') this.cid = item.id; + this.itemList.push({ + url : `/college/list/${item.id}`, + label : item.name, + value : item.name, + id : item.id + }) + }) + this.getArticleListItem(); + }).catch(err => {}); + }, + routerLink(e){ + this.cid = e; + this.getArticleListItem(); + } }, created() { this.indexList(); @@ -1413,7 +1433,7 @@ export default { this.getCollect(); } this.indexMarketList(); - this.getArticleList(); + this.getCollegeLinks(); /* * swiper 轮播图效果 */ @@ -2527,6 +2547,12 @@ path { margin-bottom: 0.5rem; } } + .de{ + background: #F7D558; + } + .in{ + background: #F5F5F6; + } } .section-block-8{