From 4a7b322bd421f4c4e99d5c29f04cc62d63ed7774 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=94=90=E6=98=8E=E6=98=8E?= <970899069@qq.com>
Date: Sun, 26 Sep 2021 17:38:26 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=93=BE=E9=A6=96=E9=A1=B5?=
=?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=AF=B9=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
apis/interfaces/chain.js | 28 ++----------------
pages/index/index.vue | 62 ++++++++++++++++------------------------
2 files changed, 27 insertions(+), 63 deletions(-)
diff --git a/apis/interfaces/chain.js b/apis/interfaces/chain.js
index 3956fad..ddb188c 100644
--- a/apis/interfaces/chain.js
+++ b/apis/interfaces/chain.js
@@ -8,31 +8,10 @@
import { request } from '../index'
-// 最新区块列表
+// 最新统计
const chain = () => {
return request({
- url: 'chain'
- })
-}
-
-// 发行量概况
-const situation = () => {
- return request({
- url: 'nodes'
- })
-}
-
-// 区块详情
-const hash = (hash) => {
- return request({
- url: 'chain/block/' + hash
- })
-}
-
-// 区块链首页
-const occ = () => {
- return request({
- url: 'occ/index'
+ url: 'chain/tasks'
})
}
@@ -54,9 +33,6 @@ const thawlog = (data) => {
export {
chain,
- situation,
- hash,
- occ,
crystals,
thawlog
}
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 9a55ac9..cb817ed 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -42,14 +42,13 @@
-
-
- slogan
+
+ {{item.remark}}
-
+
- 任务标题
- 能量碎片+10
+ {{item.title}}
+ 能量碎片{{item.tips}}
@@ -57,23 +56,23 @@
@@ -90,7 +89,7 @@