Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ycc-website
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Website
ycc-website
Commits
15d50d4d
Commit
15d50d4d
authored
Mar 02, 2022
by
chenqikuai
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
239ae41a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
84 additions
and
34 deletions
+84
-34
en.ts
src/assets/lang/en.ts
+0
-0
charts.vue
src/components/charts.vue
+6
-0
chartsInAddr.vue
src/components/chartsInAddr.vue
+6
-0
m-consensus-node.vue
src/components/mobile/m-consensus-node.vue
+2
-2
m-vote-pack.vue
src/components/mobile/m-vote-pack.vue
+1
-1
m-numOfOnChainTx.vue
src/components/mobile/map/m-numOfOnChainTx.vue
+1
-1
index.vue
src/components/pc/BlockChainBrowser/LatestTx/index.vue
+10
-18
txStatus.vue
src/components/pc/txStatus.vue
+1
-1
Header.vue
src/layout/MainPage/Header.vue
+2
-1
common.ts
src/utils/common.ts
+42
-1
index.vue
...ws/mobile/address/components/m-address-overview/index.vue
+2
-2
m-address-balance-graph.vue
...components/m-address-overview/m-address-balance-graph.vue
+2
-2
m-address-blue-card.vue
...ess/components/m-address-overview/m-address-blue-card.vue
+2
-2
tradeDetail.vue
src/views/mobile/tradeDetail.vue
+1
-1
consensusNodeTable.vue
src/views/pc/blockDetail/components/consensusNodeTable.vue
+5
-1
tradeDetail.vue
src/views/pc/tradeDetail.vue
+1
-1
No files found.
src/assets/lang/en.ts
View file @
15d50d4d
This diff is collapsed.
Click to expand it.
src/components/charts.vue
View file @
15d50d4d
...
...
@@ -30,6 +30,7 @@ import { LabelLayout, UniversalTransition } from 'echarts/features'
import
{
CanvasRenderer
}
from
'echarts/renderers'
import
{
numOfOnChainTx
,
statSearch
}
from
'@/service/api'
import
moment
from
'moment'
import
{
nFormatter
}
from
'@/utils/common'
// 通过 ComposeOption 来组合出一个只有必须组件和图表的 Option 类型
type
ECOption
=
echarts
.
ComposeOption
<
|
BarSeriesOption
...
...
@@ -166,6 +167,11 @@ export default Vue.extend({
},
yAxis
:
{
type
:
'value'
,
axisLabel
:
{
formatter
:
(
item
:
number
)
=>
{
return
nFormatter
(
item
)
},
},
},
series
:
[
{
...
...
src/components/chartsInAddr.vue
View file @
15d50d4d
...
...
@@ -41,6 +41,7 @@ echarts.use([
import
chartsMixin
from
'@/mixin/componentsMixin/charts'
import
VueTypedMixins
from
'vue-typed-mixins'
import
{
nFormatter
}
from
'@/utils/common'
export
default
VueTypedMixins
(
chartsMixin
).
extend
({
props
:
{
...
...
@@ -94,6 +95,11 @@ export default VueTypedMixins(chartsMixin).extend({
},
yAxis
:
{
type
:
'value'
,
axisLabel
:
{
formatter
:
(
item
:
number
)
=>
{
return
nFormatter
(
item
)
},
},
},
series
:
[
{
...
...
src/components/mobile/m-consensus-node.vue
View file @
15d50d4d
...
...
@@ -18,7 +18,7 @@
<Count
:time=
"time"
class=
"text-text-color text-xs"
></Count>
</div>
<div
class=
"flex justify-between items-center"
>
<div>
<div
class=
" mt-2"
>
<span
class=
"text-text-color text-xs"
>
{{
$t
(
'lang.block.consensusAddress'
)
}}
:
</span>
...
...
@@ -36,7 +36,7 @@
},
}"
>
{{
address
|
filterHash
}}
{{
address
|
filterHash
(
6
)
}}
</router-link>
</span>
</div>
...
...
src/components/mobile/m-vote-pack.vue
View file @
15d50d4d
...
...
@@ -8,7 +8,7 @@
]"
>
<div>
<span
class=
"text-base font-bold"
>
{{
rewardAmount
}}
</span>
<span
class=
"text-base font-bold"
>
{{
rewardAmount
|
filterAmount
}}
</span>
<span
class=
"text-xs"
>
YCC
</span>
...
...
src/components/mobile/map/m-numOfOnChainTx.vue
View file @
15d50d4d
...
...
@@ -2,7 +2,7 @@
<div
class=
"num flow-root"
>
<div
class=
"mt-2.5 flex items-center justify-between"
>
<div
class=
"text-darkBlue font-bold"
>
链上交易数量
{{
$t
(
'lang.chainPerf.txNumberOnTheChain'
)
}}
</div>
<div>
<span
...
...
src/components/pc/BlockChainBrowser/LatestTx/index.vue
View file @
15d50d4d
...
...
@@ -9,51 +9,43 @@
<div
class=
"left"
>
<div>
<span
class=
"graytxt"
>
{{
$t
(
'lang.trade.hash'
)
}}
:
</span>
<span
class=
"text-footer-color"
>
<router-link
<span
class=
"text-footer-color"
><router-link
:to=
"
{
path: '/tradeHash',
query: {
hash: item.hash,
},
}"
>
{{
item
.
hash
|
filterHash
(
9
)
}}
</router-link>
>
{{
item
.
hash
|
filterHash
(
8
)
}}
</router-link>
</span>
</div>
<div
class=
"graytxt"
>
{{
item
.
time_block
|
formatTime
}}
<div
class=
"graytxt"
>
{{
item
.
time_block
|
formatTime
}}
</div>
</div>
<div
class=
"middle"
>
<div>
<span
class=
"graytxt"
>
{{
$t
(
'lang.trade.sender'
)
}}
:
</span>
<span
class=
"text-footer-color"
>
<router-link
<span
class=
"text-footer-color"
><router-link
:to=
"
{
path: '/address',
query: {
address: item.from,
},
}"
>
{{
item
.
from
|
filterHash
(
9
)
}}
>
{{
item
.
from
|
filterHash
(
8
)
}}
</router-link>
</span>
</div>
<div
class=
"graytxt"
>
<span
class=
"graytxt"
>
{{
$t
(
'lang.trade.receiver'
)
}}
:
</span>
<span
class=
"text-footer-color"
>
<router-link
<span
class=
"text-footer-color"
><router-link
:to=
"
{
path: '/address',
query: {
address: item.to,
},
}"
>
{{
item
.
to
|
filterHash
(
9
)
}}
>
{{
item
.
to
|
filterHash
(
8
)
}}
</router-link>
</span>
</div>
...
...
@@ -125,14 +117,14 @@ export default Vue.extend({
color
:
#7c88ad
;
}
.left
{
min-width
:
23
3
px
;
min-width
:
23
0
px
;
}
.middle
{
min-width
:
1
68
px
;
min-width
:
1
81
px
;
}
.right
{
min-width
:
5
6px
;
min-width
:
4
6px
;
}
</
style
>
src/components/pc/txStatus.vue
View file @
15d50d4d
...
...
@@ -60,7 +60,7 @@ export default Vue.extend({
<
style
scoped
lang=
"scss"
>
.c-txStatus
{
.status
{
width
:
70px
;
min-
width
:
70px
;
height
:
30px
;
border-radius
:
15px
;
}
...
...
src/layout/MainPage/Header.vue
View file @
15d50d4d
...
...
@@ -250,7 +250,8 @@ export default Vue.extend({
watch
:
{
$route
(
n
,
o
)
{
const
scrollY
=
window
.
scrollY
this
.
iconType
=
n
.
query
.
lang
||
'zh-CN'
this
.
iconType
=
n
.
query
.
lang
||
window
.
sessionStorage
.
getItem
(
'language'
)
||
'zh-CN'
this
.
isTop
=
scrollY
<
70
?
true
:
false
window
.
addEventListener
(
'scroll'
,
()
=>
{
const
scrollY
=
window
.
scrollY
...
...
src/utils/common.ts
View file @
15d50d4d
...
...
@@ -18,4 +18,45 @@ const tradeAccuracy = function(Actuators: string, ty: number, execer?: any) {
}
};
export
{
tradeAccuracy
};
const
nFormatter
=
(
num
:
number
,
digits
=
2
)
=>
{
const
si
=
[
{
value
:
1
,
symbol
:
""
,
},
{
value
:
1
e3
,
symbol
:
"K"
,
},
{
value
:
1
e6
,
symbol
:
"M"
,
},
{
value
:
1
e9
,
symbol
:
"G"
,
},
{
value
:
1
e12
,
symbol
:
"T"
,
},
{
value
:
1
e15
,
symbol
:
"P"
,
},
{
value
:
1
e18
,
symbol
:
"E"
,
},
];
const
rx
=
/
\.
0+$|
(\.[
0-9
]
*
[
1-9
])
0+$/
;
let
i
;
for
(
i
=
si
.
length
-
1
;
i
>
0
;
i
--
)
{
if
(
num
>=
si
[
i
].
value
)
{
break
;
}
}
return
(
num
/
si
[
i
].
value
).
toFixed
(
digits
).
replace
(
rx
,
"$1"
)
+
si
[
i
].
symbol
;
};
export
{
tradeAccuracy
,
nFormatter
};
src/views/mobile/address/components/m-address-overview/index.vue
View file @
15d50d4d
...
...
@@ -27,11 +27,11 @@ import MFourParams from './m-four-params.vue'
import
MAddressBalanceGraph
from
'./m-address-balance-graph.vue'
export
default
VueTypedMixins
(
AddressOverview
).
extend
({
props
:
{
balance
:
Number
,
balance
:
[
Number
,
Object
]
,
selectedValue
:
String
,
optionsList
:
Array
,
handleSelectChange
:
Function
,
frozen
:
Number
frozen
:
[
Number
,
Object
],
},
components
:
{
mAddressDisplay
,
...
...
src/views/mobile/address/components/m-address-overview/m-address-balance-graph.vue
View file @
15d50d4d
...
...
@@ -30,8 +30,8 @@
:grid=
"
{
top: '10px',
bottom: '25px',
left: '
4
0px',
right: '
4
0px',
left: '
6
0px',
right: '
6
0px',
}"
style="height: 110px;"
>
</charts-in-addr>
...
...
src/views/mobile/address/components/m-address-overview/m-address-blue-card.vue
View file @
15d50d4d
...
...
@@ -43,8 +43,8 @@ export default Vue.extend({
Select
,
},
props
:
{
forzen
:
Number
,
balance
:
Number
,
forzen
:
[
Number
,
Object
]
,
balance
:
[
Number
,
Object
]
,
selectedValue
:
String
,
optionsList
:
Array
,
handleSelectChange
:
Function
,
...
...
src/views/mobile/tradeDetail.vue
View file @
15d50d4d
...
...
@@ -143,7 +143,7 @@ export default vueTypedMixins(tradeDetail).extend({
font
-
family
:
PingFangSC
-
Regular
,
PingFang
SC
;
font
-
weight
:
400
;
color
:
#
7
c88ad
;
width
:
73
px
;
width
:
110
px
;
min
-
height
:
40
px
;
line
-
height
:
40
px
;
}
...
...
src/views/pc/blockDetail/components/consensusNodeTable.vue
View file @
15d50d4d
...
...
@@ -75,7 +75,11 @@
<el-table-column
:label=
"$t('lang.trade.type')"
align=
"right"
width=
"90"
>
<
template
slot-scope=
"{ row }"
>
<div
class=
"text-darkBlue"
>
{{
row
.
type
===
'vote'
?
'投票节点'
:
'打包节点'
}}
{{
row
.
type
===
'vote'
?
$t
(
'lang.block.votingNode'
)
:
$t
(
'lang.block.packingNode'
)
}}
</div>
</
template
>
</el-table-column>
...
...
src/views/pc/tradeDetail.vue
View file @
15d50d4d
...
...
@@ -234,7 +234,7 @@ export default vueTypedMixins(tradeDetail).extend({
}
.
item
-
text
{
.
status
{
width
:
70
px
;
min
-
width
:
70
px
;
height
:
30
px
;
border
-
radius
:
15
px
;
padding
:
3
px
10
px
;
...
...
chenqikuai
@chenqikuai
mentioned in commit
748f7ae1
·
Mar 03, 2022
mentioned in commit
748f7ae1
mentioned in commit 748f7ae18ac2f8eb14ee7c2865eaea786342a520
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment