Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f0123913
authored
Mar 27, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加SKUID校验
parent
8c8a841d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
public/js/add_order.js
public/js/add_order.js
View file @
f0123913
...
...
@@ -233,7 +233,15 @@
$
(
'.get-sku'
).
click
(
function
()
{
var
sku_id
=
$
(
this
).
siblings
(
'.search-sku'
).
val
();
if
(
!
sku_id
)
return
false
;
if
(
!
sku_id
)
{
layer
.
msg
(
'请输入SKU_ID'
);
return
false
;
}
if
(
!
/
\d
/
.
test
(
sku_id
))
{
layer
.
msg
(
'参数错误,请输入正确的SKU_ID'
);
return
false
;
}
$
.
ajax
({
url
:
'/ajax/getSku'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment