Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dexfilter-web-nuxt3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haojie
dexfilter-web-nuxt3
Commits
95be55e0
Commit
95be55e0
authored
Mar 25, 2023
by
lei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
daa7ebe1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
views/token/RightDetail.vue
+16
-11
No files found.
views/token/RightDetail.vue
View file @
95be55e0
...
...
@@ -155,15 +155,20 @@ const headerBtns = computed(() => [
value
:
"echart"
,
},
]);
const
props
=
defineProps
<
{
token
:
string
;
scene
:
string
;
tb
:
string
;
currentPath
:
string
;
r24h
:
number
;
mt
:
string
;
up
?:
number
;
}
>
();
const
props
=
withDefaults
(
defineProps
<
{
token
:
string
;
scene
:
string
;
tb
:
string
;
currentPath
:
string
;
r24h
:
number
;
mt
:
string
;
up
?:
number
;
}
>
(),
{
up
:
0
,
}
);
const
emit
=
defineEmits
([
"update:setPool"
,
"SettwitterRul"
]);
const
r24h
=
ref
(
""
);
const
numR24h
=
ref
<
string
>
(
""
);
...
...
@@ -195,8 +200,8 @@ const getPriceRange = () => {
// -,跌
let
newR24h
=
parseFloat
((
proR24h
+
""
).
replace
(
"-"
,
""
));
// 原价
let
oldPrice
=
props
.
up
/
(
1
-
newR24h
);
numR24h
.
value
=
oldPrice
-
props
.
up
+
""
;
let
oldPrice
=
up
/
(
1
-
newR24h
);
numR24h
.
value
=
oldPrice
-
up
+
""
;
numR24h
.
value
=
"-"
+
parseCoinAmount
(
numR24h
.
value
);
}
else
if
(
proR24h
==
0
)
{
numR24h
.
value
=
"+0"
;
...
...
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