Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmp_vip
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
zhenfei.zhang
fmp_vip
Commits
fc60f1b9
Commit
fc60f1b9
authored
Aug 14, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 20积分抵扣1元。
parent
15076e58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
windows/fmviporder.h
+5
-3
No files found.
windows/fmviporder.h
View file @
fc60f1b9
...
...
@@ -58,7 +58,7 @@ private:
this
->
_needPayStr
=
needPayStr
;
_amount
=
_amountStr
.
toInt
()
/
100
.
0
;
_score
=
score
/
100
.
0
;
_score
=
(
score
/
20
)
*
100
;
// 20积分=1元钱
_needPay
=
_needPayStr
.
toInt
()
/
100
.
0
;
_maxWillPay
=
_useScore
=
_couponAmount
=
0
;
...
...
@@ -77,7 +77,8 @@ private:
QString
getScoreAmount
()
{
return
DOUBLE_STR
(
MIN
(
_score
,
_needPay
));
int
needPayAmount
=
(
int
)
_needPay
;
// 取整
return
DOUBLE_STR
(
MIN
(
_score
,
needPayAmount
));
}
QString
getPayAmountStr
(
QString
amountStr
)
...
...
@@ -102,7 +103,8 @@ private:
void
setUseScore
(
bool
isUse
)
{
if
(
isUse
)
{
_useScore
=
MIN
(
_score
,
_needPay
);
int
needPayAmount
=
(
int
)
_needPay
;
// 取整
_useScore
=
MIN
(
_score
,
needPayAmount
);
}
else
{
_useScore
=
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