Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
梁志锋
9 years ago
Commit
0694d70c7e97c71cb5f0f880440f38b9755c5a5a
1 parent
6c2bc5e5
修改bug
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletions
apps/product/models/outlets-handler.js
apps/product/models/sale-handler.js
package.json
apps/product/models/outlets-handler.js
View file @
0694d70
...
...
@@ -36,6 +36,7 @@ const discountSplit = (text) => {
let
endNum
=
0
,
i
;
text
=
text
||
''
;
for
(
i
=
0
;
i
<
text
.
length
;
i
++
)
{
if
(
/^
([
0-9
]
|
\%)
*$/
.
test
(
text
[
i
]))
{
endNum
=
i
+
1
;
...
...
apps/product/models/sale-handler.js
View file @
0694d70
...
...
@@ -57,6 +57,7 @@ const discountSplit = (text, targetString) => {
let
endNum
=
0
,
i
;
text
=
text
||
''
;
for
(
i
=
0
;
i
<
text
.
length
;
i
++
)
{
if
(
targetString
!==
null
)
{
if
(
text
[
i
]
!==
targetString
)
{
...
...
package.json
View file @
0694d70
{
"name"
:
"yohobuy-node"
,
"version"
:
"4.8.1
2
"
,
"version"
:
"4.8.1
5
"
,
"private"
:
true
,
"description"
:
"A New Yohobuy Project With Express"
,
"repository"
:
{
...
...
Please
register
or
login
to post a comment