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
11dc2b5b
Commit
11dc2b5b
authored
Mar 02, 2022
by
chenqikuai
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
07153e63
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
79 additions
and
10 deletions
+79
-10
charts.vue
src/components/charts.vue
+37
-2
chartsInAddr.vue
src/components/chartsInAddr.vue
+35
-1
m-chain-price.vue
src/components/mobile/m-chain-price.vue
+2
-2
Balance.vue
...mponents/pc/BlockChainBrowser/AddressOverview/Balance.vue
+1
-1
CurrencySelect.vue
src/components/pc/CurrencySelect.vue
+4
-4
No files found.
src/components/charts.vue
View file @
11dc2b5b
...
@@ -158,6 +158,11 @@ export default Vue.extend({
...
@@ -158,6 +158,11 @@ export default Vue.extend({
},
},
xAxis
:
{
xAxis
:
{
type
:
'category'
,
type
:
'category'
,
axisLabel
:
{
textStyle
:
{
color
:
'#7c88ad'
,
},
},
boundaryGap
:
false
,
boundaryGap
:
false
,
data
:
times
data
:
times
?.
map
((
i
)
=>
{
?.
map
((
i
)
=>
{
...
@@ -171,13 +176,43 @@ export default Vue.extend({
...
@@ -171,13 +176,43 @@ export default Vue.extend({
formatter
:
(
item
:
number
)
=>
{
formatter
:
(
item
:
number
)
=>
{
return
nFormatter
(
item
)
return
nFormatter
(
item
)
},
},
textStyle
:
{
color
:
'#7c88ad'
,
},
},
},
},
},
series
:
[
series
:
[
{
{
data
:
this
.
xData
.
map
((
i
:
any
)
=>
i
||
0
).
reverse
(),
type
:
'line'
,
type
:
'line'
,
areaStyle
:
{},
data
:
this
.
xData
.
map
((
i
:
any
)
=>
i
||
0
).
reverse
(),
areaStyle
:
{
color
:
'red'
,
normal
:
{
// 颜色渐变函数 前四个参数分别表示四个位置依次为左、下、右、上
color
:
new
echarts
.
graphic
.
LinearGradient
(
0
,
0
,
0
,
1
,
[
{
offset
:
0
,
color
:
'#2545CB'
,
// 0% 处的颜色
},
{
offset
:
0.6
,
color
:
'#9FAEE9'
,
// 40% 处的颜色
},
{
offset
:
1
,
color
:
'white'
,
// 100% 处的颜色
},
]),
//背景渐变色
lineStyle
:
{
// 系列级个性化折线样式
type
:
'solid'
,
color
:
'#2545CB'
,
//折线的颜色
},
},
},
smooth
:
true
,
showSymbol
:
false
,
itemStyle
:
{},
},
},
],
],
grid
:
this
.
grid
,
grid
:
this
.
grid
,
...
...
src/components/chartsInAddr.vue
View file @
11dc2b5b
...
@@ -86,6 +86,11 @@ export default VueTypedMixins(chartsMixin).extend({
...
@@ -86,6 +86,11 @@ export default VueTypedMixins(chartsMixin).extend({
},
},
xAxis
:
{
xAxis
:
{
type
:
'category'
,
type
:
'category'
,
axisLabel
:
{
textStyle
:
{
color
:
'#7c88ad'
,
},
},
boundaryGap
:
false
,
boundaryGap
:
false
,
data
:
times
data
:
times
?.
map
((
i
)
=>
{
?.
map
((
i
)
=>
{
...
@@ -99,6 +104,9 @@ export default VueTypedMixins(chartsMixin).extend({
...
@@ -99,6 +104,9 @@ export default VueTypedMixins(chartsMixin).extend({
formatter
:
(
item
:
number
)
=>
{
formatter
:
(
item
:
number
)
=>
{
return
nFormatter
(
item
)
return
nFormatter
(
item
)
},
},
textStyle
:
{
color
:
'#7c88ad'
,
},
},
},
},
},
series
:
[
series
:
[
...
@@ -109,7 +117,33 @@ export default VueTypedMixins(chartsMixin).extend({
...
@@ -109,7 +117,33 @@ export default VueTypedMixins(chartsMixin).extend({
.
map
((
i
)
=>
i
/
1
e8
)
.
map
((
i
)
=>
i
/
1
e8
)
.
reverse
(),
.
reverse
(),
type
:
'line'
,
type
:
'line'
,
areaStyle
:
{},
areaStyle
:
{
normal
:
{
// 颜色渐变函数 前四个参数分别表示四个位置依次为左、下、右、上
color
:
new
echarts
.
graphic
.
LinearGradient
(
0
,
0
,
0
,
1
,
[
{
offset
:
0
,
color
:
'#2545CB'
,
// 0% 处的颜色
},
{
offset
:
0.6
,
color
:
'#9FAEE9'
,
// 40% 处的颜色
},
{
offset
:
1
,
color
:
'white'
,
// 100% 处的颜色
},
]),
//背景渐变色
lineStyle
:
{
// 系列级个性化折线样式
type
:
'solid'
,
color
:
'#2545CB'
,
//折线的颜色
},
},
},
smooth
:
true
,
showSymbol
:
false
,
itemStyle
:
{},
},
},
],
],
grid
:
this
.
grid
,
grid
:
this
.
grid
,
...
...
src/components/mobile/m-chain-price.vue
View file @
11dc2b5b
...
@@ -15,10 +15,10 @@
...
@@ -15,10 +15,10 @@
>
>
{{
quoteChange
}}
{{
quoteChange
}}
</div>
</div>
<div
class=
"
font-bold text-xs text-white mt-4
"
>
<div
class=
"
text-xs text-white mt-6
"
>
{{
$t
(
'lang.price.realTimeQuotes'
)
}}
{{
$t
(
'lang.price.realTimeQuotes'
)
}}
</div>
</div>
<div
class=
"
font-bold text-xs text-white mt-2
"
>
<div
class=
"
text-xs text-white mt-1
"
>
{{
$t
(
'lang.price._24hourVolatility'
)
}}
{{
$t
(
'lang.price._24hourVolatility'
)
}}
</div>
</div>
</div>
</div>
...
...
src/components/pc/BlockChainBrowser/AddressOverview/Balance.vue
View file @
11dc2b5b
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
{{
$t
(
'lang.address.balance'
)
}}
{{
$t
(
'lang.address.balance'
)
}}
</div>
</div>
<div
class=
"balance-value"
>
{{
balance
|
filterAmount
}}
YCC
</div>
<div
class=
"balance-value"
>
{{
balance
|
filterAmount
}}
YCC
</div>
<div
class=
"text-sm text-white"
>
<div
class=
"text-sm text-white"
style=
"margin-top: 10px;"
>
{{
$t
(
'lang.address.freeze'
)
}}
{{
$t
(
'lang.address.freeze'
)
}}
<span
class=
"ml-2"
>
{{
frozen
|
filterAmount
}}
YCC
</span>
<span
class=
"ml-2"
>
{{
frozen
|
filterAmount
}}
YCC
</span>
</div>
</div>
...
...
src/components/pc/CurrencySelect.vue
View file @
11dc2b5b
...
@@ -126,15 +126,15 @@ export default Vue.extend({
...
@@ -126,15 +126,15 @@ export default Vue.extend({
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.c-select
{
.c-select
{
.selected-txt
{
.selected-txt
{
font-size
:
20
px
;
font-size
:
14
px
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#ffffff
;
color
:
#ffffff
;
margin-left
:
10px
;
margin-left
:
10px
;
white-space
:
nowrap
;
white-space
:
nowrap
;
}
}
.selected-txt-small
{
.selected-txt-small
{
font-size
:
1
4
px
;
font-size
:
1
2
px
;
margin-left
:
5
px
;
margin-left
:
10
px
;
}
}
.select
{
.select
{
width
:
100px
;
width
:
100px
;
...
@@ -148,7 +148,7 @@ export default Vue.extend({
...
@@ -148,7 +148,7 @@ export default Vue.extend({
}
}
}
}
.select-small
{
.select-small
{
width
:
7
0px
;
width
:
10
0px
;
height
:
30px
;
height
:
30px
;
}
}
.options
{
.options
{
...
...
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