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 @@ 平台能量球余量 - 0 + {{chains.balance}} 上期能量球价值 - 0 + {{chains.up}} 昨日瓜分能量碎片 - 0 + {{chains.score}} 区块链高度 - 0 + {{chains.height}} 已开通节点数 - 0 + {{chains.number}} @@ -90,7 +89,7 @@