From 51b56fa953fe56232b7d230e2192f7104ec54dff Mon Sep 17 00:00:00 2001 From: Jason Date: Sat, 25 Sep 2021 17:38:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BA=E5=9D=97=E9=83=A8=E5=88=86=E7=9A=84?= =?UTF-8?q?=E5=9F=BA=E7=A1=80=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 + src/api/interfaces/block.ts | 2 +- src/components/Header.vue | 2 +- src/store/index.ts | 4 +- src/views/Address/index.vue | 19 ++-- src/views/Block/detail.vue | 95 ++++++++++++++-- src/views/Block/index.vue | 37 +++++-- src/views/Home/index.vue | 194 ++++++++++++++++++++++++++++++++- src/views/Other/analytical.vue | 15 ++- src/views/Other/broadcast.vue | 15 ++- src/views/Trade/detail.vue | 16 +-- src/views/Trade/index.vue | 65 +++++------ 12 files changed, 382 insertions(+), 84 deletions(-) diff --git a/src/App.vue b/src/App.vue index a0f25bd..69e39cb 100644 --- a/src/App.vue +++ b/src/App.vue @@ -30,10 +30,12 @@ watch(route, (to: RouteLocationNormalizedLoaded) => { * { padding: 0; margin: 0; + box-sizing: border-box; } body { font-size: 14px; + background: #FAFAFA; } #layout { diff --git a/src/api/interfaces/block.ts b/src/api/interfaces/block.ts index cfc1d34..0d98977 100644 --- a/src/api/interfaces/block.ts +++ b/src/api/interfaces/block.ts @@ -1,3 +1,3 @@ import Chain33Rpc from '@33cn/chain33-rpc-api' -export default new Chain33Rpc('http://explorer.cnskl.com/api', null) +export default new Chain33Rpc('http://47.100.214.15:8080/api', null) diff --git a/src/components/Header.vue b/src/components/Header.vue index 99356f5..2efeca6 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -27,7 +27,7 @@ const router = useRouter() .wrap { display: flex; - justify-content: space-around; + justify-content: space-between; .nav { width: 600px; diff --git a/src/store/index.ts b/src/store/index.ts index 0024dea..7cdc1f3 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -30,7 +30,7 @@ export default createStore({ tokenType: '', openId: '', loginAt: 0, - maxHeight:110, + maxHeight: 0, user: {} as BaseInfo }, getters: { @@ -71,7 +71,7 @@ export default createStore({ }, setMaxHeight: (state: State, height: number): void => { state.maxHeight = height - }, + } }, actions: { setUserInfo: ({ commit }, info: BaseInfo): void => { diff --git a/src/views/Address/index.vue b/src/views/Address/index.vue index 8ead53e..59e79b2 100644 --- a/src/views/Address/index.vue +++ b/src/views/Address/index.vue @@ -1,17 +1,16 @@ - + diff --git a/src/views/Block/index.vue b/src/views/Block/index.vue index 67d3627..ecd9fd4 100644 --- a/src/views/Block/index.vue +++ b/src/views/Block/index.vue @@ -13,35 +13,52 @@ - + - - - - + + + + + + + + + diff --git a/src/views/Other/analytical.vue b/src/views/Other/analytical.vue index 84d04f4..909bea7 100644 --- a/src/views/Other/analytical.vue +++ b/src/views/Other/analytical.vue @@ -1,11 +1,14 @@