Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
YH_RNComponent
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
高小祥
5 years ago
Commit
e61605b9aadbcb1514232e8b6899e87206070742
1 parent
3f537c6c
限时抢购优化,有销量,库存量较大,计算后百分比为0的问题 # reviewed by 枪兵
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
js/panicBuying/components/panicbuying/PBProductListView.js
js/panicBuying/components/panicbuying/PBProductListView.js
View file @
e61605b
...
...
@@ -50,6 +50,9 @@ export default class PBProductListView extends Component {
if
(
rowData
.
configStorage
&&
rowData
.
storageSum
&&
stock
!=
0
)
{
let
sale
=
rowData
.
configStorage
-
rowData
.
storageSum
;
percent
=
Math
.
floor
(
sale
/
stock
*
100
);
if
(
percent
==
0
&&
sale
>
0
)
{
percent
=
1
;
}
}
let
progressText
=
''
;
...
...
Please
register
or
login
to post a comment