Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Athena
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
华国豪
Athena
Commits
4edc91f3
Commit
4edc91f3
authored
Jul 26, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改NaN
parent
1fcc95e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
PersonalInfor.vue
...omponents/newPersonalCenter/block/model/PersonalInfor.vue
+3
-3
main.js
src/main.js
+4
-1
No files found.
src/components/newPersonalCenter/block/model/PersonalInfor.vue
View file @
4edc91f3
...
...
@@ -75,7 +75,7 @@
<span>
¥
</span>
</p>
<p
class=
"_text"
>
本月交易额
</p>
<p
class=
"_money"
>
¥
{{
moneyFormat
(
userInfo
.
monthTradeMoney
)
}}
</p>
<p
class=
"_money"
>
¥
{{
userInfo
.
monthTradeMoney
?
moneyFormat
(
userInfo
.
monthTradeMoney
)
:
0.00
}}
</p>
<div
class=
"_business_Line"
></div>
</el-col>
<el-col
:span=
"8"
class=
"_business_ite"
>
...
...
@@ -83,7 +83,7 @@
<span
class=
"_bg_color_org"
>
¥
</span>
</p>
<p
class=
"_text"
>
累计交易额
</p>
<p
class=
"_money"
>
¥
{{
moneyFormat
(
userInfo
.
sumTradeMoney
)
}}
</p>
<p
class=
"_money"
>
¥
{{
userInfo
.
sumTradeMoney
?
moneyFormat
(
userInfo
.
sumTradeMoney
)
:
0.00
}}
</p>
<div
class=
"_business_Line"
></div>
</el-col>
<el-col
:span=
"7"
class=
"_business_ite"
>
...
...
@@ -92,7 +92,7 @@
<span
class=
"_bg_color_green"
>
¥
</span>
</p>
<p
class=
"_text"
>
幸福存折
</p>
<p
class=
"_money"
>
¥
{{
moneyFormat
(
userInfo
.
Clientbalance
)
}}
</p>
<p
class=
"_money"
>
¥
{{
userInfo
.
Clientbalance
?
moneyFormat
(
userInfo
.
Clientbalance
)
:
0.00
}}
</p>
</div>
</el-col>
</el-row>
...
...
src/main.js
View file @
4edc91f3
...
...
@@ -89,7 +89,10 @@ Vue.prototype.DateDiff = function (sDate1, sDate2) {
return
iDays
}
//价钱格式化,三位数逗号分隔,保留两位小数 duanjun
Vue
.
prototype
.
moneyFormat
=
function
(
value
)
{
Vue
.
prototype
.
moneyFormat
=
function
(
value
)
{
if
(
!
value
)
{
return
0.00
}
let
nStr
=
Number
(
value
).
toFixed
(
2
)
nStr
+=
''
;
let
x
=
nStr
.
split
(
'.'
);
...
...
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