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
300bec3b
Commit
300bec3b
authored
Feb 14, 2022
by
chenqikuai
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: show diff bg color when tx is txGroup
parent
e5043dda
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
m-txItem.vue
src/components/mobile/m-txItem.vue
+13
-2
blockDetail.ts
src/mixin/blockDetail.ts
+0
-1
index.vue
src/views/mobile/blockDetail/index.vue
+1
-0
No files found.
src/components/mobile/m-txItem.vue
View file @
300bec3b
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
</div>
</div>
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
Vue
,
{
PropType
}
from
'vue'
import
Vue
from
'vue'
import
TxStatus
from
'../pc/txStatus.vue'
import
TxStatus
from
'../pc/txStatus.vue'
import
txGroupIcon
from
'@/assets/images/blockChainBrowser/tradeDetail/txGroupIcon.png'
import
txGroupIcon
from
'@/assets/images/blockChainBrowser/tradeDetail/txGroupIcon.png'
export
default
Vue
.
extend
({
export
default
Vue
.
extend
({
...
@@ -100,7 +100,7 @@ export default Vue.extend({
...
@@ -100,7 +100,7 @@ export default Vue.extend({
},
},
props
:
{
props
:
{
blockTime
:
Number
,
blockTime
:
Number
,
t
xGroup
:
String
as
PropType
<
'isGroupItem'
|
'isGroupItemEnd'
>
,
t
radeG
:
Number
,
amount
:
Number
,
amount
:
Number
,
txHash
:
String
,
txHash
:
String
,
from
:
String
,
from
:
String
,
...
@@ -112,6 +112,17 @@ export default Vue.extend({
...
@@ -112,6 +112,17 @@ export default Vue.extend({
txGroupIcon
,
txGroupIcon
,
}
}
},
},
computed
:
{
txGroup
()
{
if
(
this
.
tradeG
===
1
||
this
.
tradeG
===
2
)
{
return
'isGroupItem'
}
else
if
(
this
.
tradeG
===
3
)
{
return
'isGroupItemEnd'
}
else
{
return
''
}
},
},
})
})
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
src/mixin/blockDetail.ts
View file @
300bec3b
...
@@ -51,7 +51,6 @@ export default Vue.extend({
...
@@ -51,7 +51,6 @@ export default Vue.extend({
if
(
data
.
error
==
null
)
{
if
(
data
.
error
==
null
)
{
// this.searchIcon(data.result.txs);
// this.searchIcon(data.result.txs);
this
.
Trades
=
this
.
checkGroup
(
data
.
result
.
txs
);
this
.
Trades
=
this
.
checkGroup
(
data
.
result
.
txs
);
console
.
log
(
this
.
Trades
,
"show Trades"
);
}
else
{
}
else
{
message
.
warning
(
this
.
$t
(
"components.tip"
)
+
data
.
error
);
message
.
warning
(
this
.
$t
(
"components.tip"
)
+
data
.
error
);
}
}
...
...
src/views/mobile/blockDetail/index.vue
View file @
300bec3b
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
:from=
"trade.tx.from"
:from=
"trade.tx.from"
:blockTime=
"trade.blockTime"
:blockTime=
"trade.blockTime"
:to=
"trade.tx.to"
:to=
"trade.tx.to"
:tradeG=
"trade.tradeG"
:status=
"isSuccess(trade.tx.execer, trade.receipt.ty)"
:status=
"isSuccess(trade.tx.execer, trade.receipt.ty)"
></m-tx-item>
></m-tx-item>
<m-page-container
<m-page-container
...
...
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