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
biao
2016-08-08 16:54:18 +0800
Commit
449aaf95251e153e38731dadf75eae231ccd8a2d
2 parents
0123115a
929cf50b
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
2 changed files
with
4 additions
and
4 deletions
apps/shopping/helpers/index.js
public/helper/showStorage.js
apps/shopping/helpers/index.js
View file @
449aaf9
...
...
@@ -46,9 +46,9 @@ exports.lte = (num1, num2, options) => {
exports
.
showStorage
=
(
leftNumber
)
=>
{
leftNumber
=
+
leftNumber
;
if
(
leftNumber
<=
3
&&
leftNumber
>
0
)
{
if
(
leftNumber
<=
3
&&
leftNumber
>
=
0
)
{
return
`仅剩
$
{
leftNumber
}
件`
;
}
else
if
(
leftNumber
<
=
0
)
{
}
else
if
(
leftNumber
<
0
)
{
return
'库存不足'
;
}
};
...
...
public/helper/showStorage.js
View file @
449aaf9
...
...
@@ -6,9 +6,9 @@
module
.
exports
=
function
(
leftNumber
)
{
leftNumber
=
+
leftNumber
;
if
(
leftNumber
<=
3
&&
leftNumber
>
0
)
{
if
(
leftNumber
<=
3
&&
leftNumber
>
=
0
)
{
return
'仅剩'
+
leftNumber
+
'件'
;
}
else
if
(
leftNumber
<
=
0
)
{
}
else
if
(
leftNumber
<
0
)
{
return
'库存不足'
;
}
};
...
...
Please
register
or
login
to post a comment