Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
xuqi
2016-08-05 15:31:28 +0800
Commit
1f322ac0bf2b590fbc49573d18668c2a0757eb12
2 parents
df880299
63f817d3
Merge branch 'release/1.0' of
http://git.yoho.cn/fe/yoho-blk
into release/1.0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
apps/shopping/helpers/index.js
apps/shopping/helpers/index.js
View file @
1f322ac
...
...
@@ -47,7 +47,7 @@ exports.showStorage = (leftNumber) => {
leftNumber
=
typeof
num1
===
'number'
?
leftNumber
:
parseFloat
(
leftNumber
,
10
);
if
(
leftNumber
<=
3
&&
leftNumber
>=
0
)
{
return
`仅剩
$
{
leftNumber
}
件`
;
return
'仅剩'
+
leftNumber
+
'件'
;
}
else
if
(
leftNumber
<
0
)
{
return
'库存不足'
;
}
...
...
Please
register
or
login
to post a comment