From fe282a54ca44a83831d1ea44295520921ba51f8d Mon Sep 17 00:00:00 2001 From: Zhiting Lin Date: Wed, 5 Aug 2020 18:49:00 +0800 Subject: [PATCH] update list asset page --- src/assets/language/cn.js | 12 +- src/assets/style.css | 47 +++-- src/components/backButton/button.vue | 13 +- src/views/assetList.vue | 218 ++++++++++++--------- src/views/home.vue | 22 +-- src/views/received.vue | 2 +- .../sendTransaction/crossChainTransaction.vue | 2 +- src/views/sendTransaction/transfer.vue | 2 +- src/views/sideMenu/homeMenu.vue | 2 +- src/views/transferDetail.vue | 2 +- src/views/vote/listCancel.vue | 2 +- src/views/vote/listVote.vue | 2 +- src/views/vote/veto.vue | 2 +- src/views/vote/vote.vue | 2 +- src/views/vote/voteRecord.vue | 2 +- src/views/vote/voteRegulation.vue | 2 +- 16 files changed, 193 insertions(+), 141 deletions(-) diff --git a/src/assets/language/cn.js b/src/assets/language/cn.js index 9ce3c2b..3c76c77 100644 --- a/src/assets/language/cn.js +++ b/src/assets/language/cn.js @@ -17,7 +17,10 @@ const cn = { vote: '投票', transfer:'转账', issue:'资产发行', - retire:'资产销毁' + retire:'资产销毁', + transfer_in:'收款', + transfer_out:'转账', + cross_chain:'跨链' }, welcome: { enterMain:'进入主界面', @@ -81,6 +84,10 @@ const cn = { hideAll:'隐藏全部', types:'交易类型' }, + listAsset: { + all:'全部', + fail:'失败' + }, crossChain:{ title:'跨链', detail:'跨链详情', @@ -165,6 +172,9 @@ const cn = { network:'网络', totalAsset:'总资产' }, + asset:{ + title:'资产' + }, transactionDetail: { title: '交易详情', fee: '矿工费用', diff --git a/src/assets/style.css b/src/assets/style.css index 509f0ca..8d82716 100644 --- a/src/assets/style.css +++ b/src/assets/style.css @@ -93,13 +93,14 @@ a { background: #FAFAFA; padding: 20px 20px 0; } -.warp-chlid { +.warp-child { position: absolute; top: 0; left: 0; - width: 360px; - height: 600px; + width: calc( 100% - 40px ); + height: calc( 100% - 20px ); z-index: 995; + padding: 20px 20px 0; } .panel{ @@ -134,7 +135,6 @@ ul { li:active, li:hover, li.active { - background-color: #f7f7f7; cursor: pointer; } @@ -362,6 +362,9 @@ hr { .bg-gray { background-color: #F0F0F0 !important; } +.bg-grey { + background-color: #FAFAFA !important; +} .bg-white { background-color: #FFFFFF !important; } @@ -378,12 +381,12 @@ hr { background-color: #035BD4 !important; } -.bg-image{ - background-image: url('img/background-1@2x.png'); - background-repeat: no-repeat; - background-size: 360px 420px; -} +.bg-shadow-white{ + background: #FFFFFF; + box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.04); + border-radius: 8px; +} .bg-secondary{ background-color: #ffffff !important; } @@ -539,13 +542,9 @@ hr { color: #010101; } -.list-item { - padding: 5px 10px; -} .list-item:active, .list-item:hover, .list-item.active { - background-color: #f7f7f7; cursor: pointer; } .list-item i { @@ -659,3 +658,25 @@ label{ .d-flex{ display:flex; } + +.list-item { + position: relative; + display: flex; + justify-content: space-between; + height: 49px; + background: #FFFFFF; + box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.04); + border-radius: 8px; + padding: 14px; + margin-bottom: 12px; +} + +.list-item:hover, .list-item:focus, .list-item:active{ + border: 1px solid #004EE4; + padding: 13px; +} + +.c-icon{ + height: 36px; + padding-right: 12px; +} diff --git a/src/components/backButton/button.vue b/src/components/backButton/button.vue index 3359ae8..91cac80 100644 --- a/src/components/backButton/button.vue +++ b/src/components/backButton/button.vue @@ -1,6 +1,6 @@ @@ -8,6 +8,7 @@ export default { props: { des:null, + small:false }, methods: { goBack:function () { @@ -29,4 +30,12 @@ export default { .iconfont:hover { background: #F5F5F5; } + +.small{ + width: 56px; + height: 12px; + background: #EEEEEE; + border-radius: 20px; + padding: 2px 16px; +} diff --git a/src/views/assetList.vue b/src/views/assetList.vue index 2cc3d9e..f358e41 100644 --- a/src/views/assetList.vue +++ b/src/views/assetList.vue @@ -1,4 +1,4 @@ -