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
6b916b4e
authored
Jun 09, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整查询商品
parent
36b82f1a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
app/Http/Controllers/AddOrderController.php
public/js/add_order.js
app/Http/Controllers/AddOrderController.php
View file @
6b916b4e
...
...
@@ -310,6 +310,11 @@ Class AddOrderController extends Controller
if
(
$request
->
isMethod
(
'post'
))
{
$url
=
Config
(
'website.search-skuid'
);
$data
[
'id'
]
=
$request
->
input
(
'sku_id'
);
$user_id
=
$request
->
input
(
'user_id'
,
0
);
if
(
$user_id
)
{
$data
[
'uid'
]
=
$user_id
;
}
$data
[
'k1'
]
=
time
();
$data
[
'k2'
]
=
md5
(
md5
(
$data
[
'k1'
])
.
'fh6y5t4rr351d2c3bryi'
);
...
...
public/js/add_order.js
View file @
6b916b4e
...
...
@@ -252,6 +252,7 @@
// 获取SKU信息
$
(
'.get-sku'
).
click
(
function
()
{
var
sku_id
=
$
(
this
).
siblings
(
'.search-sku'
).
val
();
var
user_id
=
$
(
'.user_id'
).
val
()
||
0
;
if
(
!
sku_id
)
{
layer
.
msg
(
'请输入SKU_ID'
);
...
...
@@ -266,7 +267,7 @@
$
.
ajax
({
url
:
'/ajax/getSku'
,
type
:
'post'
,
data
:
{
sku_id
:
sku_id
.
trim
()},
data
:
{
sku_id
:
sku_id
.
trim
()
,
user_id
:
user_id
},
dataType
:
'json'
,
success
:
function
(
resp
)
{
console
.
log
(
resp
)
if
(
resp
.
errcode
!=
0
)
{
...
...
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