Commit bbb1f584 authored by chenqikuai's avatar chenqikuai

fix: 按照ui需求更改样式

parent b734ec0f
...@@ -95,10 +95,10 @@ export const lang = { ...@@ -95,10 +95,10 @@ export const lang = {
}, },
trade: { trade: {
title: "All Txns", title: "All Txns",
filterSucceedTx: "查看成功的交易", filterSucceedTx: "seeSucceedTx",
filterFailedTx: "查看失败的交易", filterFailedTx: "seeFailedTx",
filterSentTx: "查看发出的交易", filterSentTx: "seeSentTx",
filterReceivedTx: "查看接收的交易", filterReceivedTx: "seeReceivedTx",
count: "Txns", count: "Txns",
totalTip: "All", totalTip: "All",
tip: "show the last 100,000 entries", tip: "show the last 100,000 entries",
......
<template> <template>
<div class="c-perf"> <div class="c-perf py-2">
<div class="h-full">
<div <div
v-for="(item, i) in list" v-for="(item, i) in list"
:key="i" :key="i"
...@@ -14,6 +15,7 @@ ...@@ -14,6 +15,7 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</template> </template>
<script lang="ts"> <script lang="ts">
import { filterNum } from '@/utils/utils' import { filterNum } from '@/utils/utils'
...@@ -51,7 +53,7 @@ export default Vue.extend({ ...@@ -51,7 +53,7 @@ export default Vue.extend({
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.c-perf { .c-perf {
height: 225px; height: 240px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 1px 8px 0px rgba(31, 52, 112, 0.06); box-shadow: 0px 1px 8px 0px rgba(31, 52, 112, 0.06);
border-radius: 2px; border-radius: 2px;
......
<template> <template>
<div class="c-chain-price"> <div class="c-chain-price flex flex-col">
<div <div
class="top" class="top w-full"
:style="{ :style="{
backgroundImage: `url(${bg})`, backgroundImage: `url(${bg})`,
}" }"
...@@ -22,12 +22,14 @@ ...@@ -22,12 +22,14 @@
{{ $t('lang.price._24hourVolatility') }} {{ $t('lang.price._24hourVolatility') }}
</div> </div>
</div> </div>
<div class="bottom text-center"> <div class="bottom text-center flex items-center w-full justify-center flex-grow">
<div class="text-text-color text-xs" style="margin-top: 6px;"> <div>
<div class="text-text-color text-xs">
{{ $t('lang.price.marketValueInDollars') }} {{ $t('lang.price.marketValueInDollars') }}
</div> </div>
<div class="text-footer-color font-bold"> <div class="text-footer-color font-bold">
{{ marketValue | filterNum}} {{ marketValue | filterNum }}
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -53,7 +55,7 @@ export default Vue.extend({ ...@@ -53,7 +55,7 @@ export default Vue.extend({
<style lang="scss" scoped> <style lang="scss" scoped>
.c-chain-price { .c-chain-price {
width: 175px; width: 175px;
height: 225px; height: 240px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 1px 8px 0px rgba(31, 52, 112, 0.06); box-shadow: 0px 1px 8px 0px rgba(31, 52, 112, 0.06);
border-radius: 2px; border-radius: 2px;
......
...@@ -11,7 +11,11 @@ ...@@ -11,7 +11,11 @@
> >
<div class="flex-grow overflow-hidden overflow-ellipsis"> <div class="flex-grow overflow-hidden overflow-ellipsis">
{{ (item && item.txs && item.txs.length) || '' }} {{ (item && item.txs && item.txs.length) || '' }}
{{ $t('lang.transaction') }} {{
item && item.txs && item.txs.length === 1
? $t('lang.block.txCount_single')
: $t('lang.block.txCount')
}}
</div> </div>
</div> </div>
<div class="w-full ml-5"> <div class="w-full ml-5">
...@@ -48,7 +52,7 @@ ...@@ -48,7 +52,7 @@
}, },
}" }"
> >
<span class=" text-footer-color"> <span class="text-footer-color">
{{ item.minerHash | filterHash(9) }} {{ item.minerHash | filterHash(9) }}
</span> </span>
</router-link> </router-link>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment