Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Muse
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
Muse
Commits
313d3634
Commit
313d3634
authored
Sep 04, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加四舍五入
parent
cea7a3d1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
72 deletions
+61
-72
viittoData.vue
src/components/viitto/viittoData.vue
+61
-72
No files found.
src/components/viitto/viittoData.vue
View file @
313d3634
...
...
@@ -305,13 +305,13 @@ ul li {
<p
class=
"tit yuefen-box"
>
<span>
8月
</span>
<img
src=
"../../assets/img/viitto/xiajiantou.png"
alt=
""
></p>
</div>
-->
<p
class=
"sb-tit sb-tit-top"
>
今日交易总额
</p>
<h1
class=
"big-price"
><span>
{{
dataList
.
TotalMoney
}}
</span>
<h1
class=
"big-price"
><span>
{{
getIntegerNum
(
dataList
.
TotalMoney
,
2
)
}}
</span>
<img
v-if=
"dataList.ToDayMoneyChange==1"
src=
"../../assets/img/viitto/lvsedian.png"
alt=
""
>
<img
v-if=
"dataList.ToDayMoneyChange==2"
src=
"../../assets/img/viitto/hongsedian.png"
alt=
""
>
</h1>
<div
class=
"price-line"
></div>
<p
class=
"sb-tit sb-tit-top"
>
年度累计交易
</p>
<h1
class=
"big-price"
><span>
{{
dataList
.
YearTotalMoney
}}
</span>
<h1
class=
"big-price"
><span>
{{
getIntegerNum
(
dataList
.
YearTotalMoney
,
0
)
}}
</span>
<img
v-if=
"dataList.YearMoneyChange==1"
src=
"../../assets/img/viitto/lvsedian.png"
alt=
""
>
<img
v-if=
"dataList.YearMoneyChange==2"
src=
"../../assets/img/viitto/hongsedian.png"
alt=
""
>
</h1>
...
...
@@ -426,21 +426,6 @@ export default {
this
.
exChangeBoard
();
},
300000
);
},
methods
:{
//不同进度条不同颜色
customColorMethod
(
percentage
)
{
// console.log(percentage,'percentage');
// if (percentage
<=
20
)
{
// return '#f56c6c';
// } else if (percentage>20&&percentage
<=
40
)
{
// return '#e6a23c';
// } else if(percentage>40&&percentage
<=
60
){
// return '#5cb87a';
// } else if(percentage>60&&percentage
<=
80
){
// return '#1989fa'
// } else if(percentage>80&&percentage
<=
100
){
// return '#6f7ad3'
// }
},
init
(){
let
url
=
'http://47.96.23.199:5000/api/user/get_b2b_data'
let
msg
=
{
...
...
@@ -493,6 +478,10 @@ export default {
window
.
location
=
"http://data.oytour.com/#/viittoData2"
//window.location="http://192.168.0.112:8081/#/viittoData2";
window
.
location
.
reload
();
},
//向上取整
getIntegerNum
(
num
,
n
){
return
num
.
toFixed
(
n
);
}
}
}
...
...
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