区块链首页数据对接
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user