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
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
37de997de480b447b268499b9e2bf890ca7d77fc
1 parent
bb484893
left num
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
apps/shopping/helpers/index.js
public/helper/showStorage.js
apps/shopping/helpers/index.js
View file @
37de997
...
...
@@ -47,7 +47,7 @@ exports.showStorage = (leftNumber) => {
leftNumber
=
+
leftNumber
;
if
(
leftNumber
<=
3
&&
leftNumber
>=
0
)
{
return
`仅剩
$
{
leftNumber
}
件`
;
return
'余量有限'
;
}
else
if
(
leftNumber
<
0
)
{
return
'库存不足'
;
}
...
...
public/helper/showStorage.js
View file @
37de997
...
...
@@ -7,7 +7,7 @@ module.exports = function(leftNumber) {
leftNumber
=
+
leftNumber
;
if
(
leftNumber
<=
3
&&
leftNumber
>=
0
)
{
return
'
仅剩'
+
leftNumber
+
'件
'
;
return
'
余量有限
'
;
}
else
if
(
leftNumber
<
0
)
{
return
'库存不足'
;
}
...
...
Please
register
or
login
to post a comment