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
e5043dda
Commit
e5043dda
authored
Feb 14, 2022
by
chenqikuai
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
consensus-node template
parent
6b4fcf9d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
1 deletion
+78
-1
m-consensus-node.vue
src/components/mobile/m-consensus-node.vue
+70
-0
index.vue
src/views/mobile/blockDetail/index.vue
+7
-1
tailwind.config.js
tailwind.config.js
+1
-0
No files found.
src/components/mobile/m-consensus-node.vue
0 → 100644
View file @
e5043dda
<
template
>
<div
class=
"consensus-node bg-white"
>
<div
class=
"box"
:style=
"
{
backgroundColor:
type === 'package' ? 'rgba(248, 164, 87, 0.05)' : 'white',
}"
>
<div
class=
"flex items-center justify-between"
>
<div
class=
"text-darkBlue text-sm font-bold"
>
{{
type
===
'package'
?
$t
(
'lang.block.packingNode'
)
:
$t
(
'lang.block.votingNode'
)
}}
</div>
<Count
:time=
"109280192"
class=
"text-text-color text-xs"
></Count>
</div>
<div
class=
"flex justify-between items-center"
>
<div>
<span
class=
"text-text-color text-xs"
>
{{
$t
(
'lang.block.consensusAddress'
)
}}
:
</span>
<span
class=
"text-text-color text-xs"
:class=
"[
type === 'package' ? ' text-orange' : ' text-footer-color',
]"
>
{{
'aslkdjfla'
|
filterHash
}}
</span>
</div>
<div
class=
"mt-2"
>
<span
class=
"text-text-color text-xs"
>
{{
$t
(
'lang.block.blockReward'
)
}}
:
</span>
<span
class=
"font-bold text-darkBlue text-xs"
>
11YCC
</span>
</div>
</div>
</div>
</div>
</
template
>
<
script
lang=
"ts"
>
import
Vue
,
{
PropType
}
from
'vue'
import
Count
from
'../pc/BlockChainBrowser/Count.vue'
export
default
Vue
.
extend
({
components
:
{
Count
,
},
props
:
{
type
:
{
type
:
String
as
PropType
<
'package'
|
'vote'
>
,
default
:
'package'
,
},
},
})
</
script
>
<
style
lang=
"scss"
scoped
>
.consensus-node
{
.box
{
padding
:
10px
;
margin
:
5px
;
height
:
70px
;
border-radius
:
2px
;
}
}
</
style
>
src/views/mobile/blockDetail/index.vue
View file @
e5043dda
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
:focusedTab=
"focusedTab"
:focusedTab=
"focusedTab"
:setFocusedTab=
"setFocusedTab"
:setFocusedTab=
"setFocusedTab"
></m-tabs>
></m-tabs>
<div
v-if=
"focusedTab === '1'"
class=
"
flow-root"
>
<div
v-if=
"focusedTab === '1'"
class=
"flow-root"
>
<m-tx-item
<m-tx-item
v-for=
"(trade, i) in Trades"
v-for=
"(trade, i) in Trades"
:key=
"i"
:key=
"i"
...
@@ -40,6 +40,10 @@
...
@@ -40,6 +40,10 @@
:total=
"pages.total"
:total=
"pages.total"
></m-page-container>
></m-page-container>
</div>
</div>
<div
v-if=
"focusedTab === '2'"
class=
"flow-root"
>
<m-consensus-node></m-consensus-node>
<m-consensus-node
type=
"vote"
></m-consensus-node>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
...
@@ -50,6 +54,7 @@ import MBlockDescCard from '@/components/mobile/m-block-desc-card.vue'
...
@@ -50,6 +54,7 @@ import MBlockDescCard from '@/components/mobile/m-block-desc-card.vue'
import
MTabs
from
'@/components/mobile/m-tabs.vue'
import
MTabs
from
'@/components/mobile/m-tabs.vue'
import
MTxItem
from
'@/components/mobile/m-txItem.vue'
import
MTxItem
from
'@/components/mobile/m-txItem.vue'
import
MPageContainer
from
'@/components/mobile/m-pageContainer.vue'
import
MPageContainer
from
'@/components/mobile/m-pageContainer.vue'
import
MConsensusNode
from
'@/components/mobile/m-consensus-node.vue'
export
default
VueTypedMixins
(
blockDetailMixin
).
extend
({
export
default
VueTypedMixins
(
blockDetailMixin
).
extend
({
components
:
{
components
:
{
MChainSearch
,
MChainSearch
,
...
@@ -57,6 +62,7 @@ export default VueTypedMixins(blockDetailMixin).extend({
...
@@ -57,6 +62,7 @@ export default VueTypedMixins(blockDetailMixin).extend({
MTabs
,
MTabs
,
MTxItem
,
MTxItem
,
MPageContainer
,
MPageContainer
,
MConsensusNode
,
},
},
})
})
</
script
>
</
script
>
...
...
tailwind.config.js
View file @
e5043dda
...
@@ -42,6 +42,7 @@ module.exports = {
...
@@ -42,6 +42,7 @@ module.exports = {
lightBlue2
:
'rgba(79, 221, 252, 0.04)'
,
lightBlue2
:
'rgba(79, 221, 252, 0.04)'
,
'active'
:
'#0276F7'
,
'active'
:
'#0276F7'
,
"darkBlue"
:
"#1F3470"
,
"darkBlue"
:
"#1F3470"
,
'orange'
:
'#F8A457'
,
black
:
colors
.
black
,
black
:
colors
.
black
,
white
:
colors
.
white
,
white
:
colors
.
white
,
gray
:
colors
.
coolGray
,
gray
:
colors
.
coolGray
,
...
...
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