Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
8 years ago
Commit
e434f13593699ffccfb7c9f4aa6c4ba3cfb8d960
1 parent
45db61b4
'code-check'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
apps/home/models/vip-service.js
apps/home/models/vip-service.js
View file @
e434f13
...
...
@@ -44,10 +44,10 @@ module.exports = class extends global.yoho.BaseModel {
}
else
if
(
vip
.
current_total_growth
<=
vip
.
grades
[
2
].
val
)
{
vip
.
current_total_percent
=
(
vip
.
current_total_growth
*
scale
/
vip
.
grades
[
2
].
val
+
scale
);
}
else
if
(
vip
.
current_total_growth
<=
vip
.
grades
[
3
].
val
)
{
vip
.
current_total_percent
=
(
vip
.
current_total_growth
*
scale
/
vip
.
grades
[
3
].
val
+
scale
*
2
)
vip
.
current_total_percent
=
(
vip
.
current_total_growth
*
scale
/
vip
.
grades
[
3
].
val
+
scale
*
2
)
;
}
vip
.
current_total_percent
=
(
vip
.
current_total_percent
*
100
).
toFixed
(
2
);
vip
.
current_total_percent
=
(
vip
.
current_total_percent
*
100
).
toFixed
(
2
);
vip
.
user_name
=
decodeURIComponent
(
this
.
ctx
&&
this
.
ctx
.
req
&&
this
.
ctx
.
req
.
user
.
name
||
''
);
...
...
Please
register
or
login
to post a comment