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
d8d02b6a
authored
Oct 31, 2019
by
allen
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整权限 重新重新开放
parent
b9de71cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
app/Http/Controllers/AddOrderController.php
public/js/add_order.js
app/Http/Controllers/AddOrderController.php
View file @
d8d02b6a
...
...
@@ -96,7 +96,7 @@ Class AddOrderController extends Controller
$UserMainModel
=
new
UserMainModel
;
if
(
!
empty
(
$user_id
)){
if
(
!
empty
(
$user_id
)
&&
strlen
(
$request
->
input
(
'user_id'
)
<
11
)
){
$user
=
$UserMainModel
->
where
(
'user_id'
,
$user_id
)
->
select
(
'user_id'
,
'email'
,
'mobile'
,
'is_test'
)
->
orderBy
(
'create_time'
,
'desc'
)
->
first
();
}
else
{
...
...
public/js/add_order.js
View file @
d8d02b6a
...
...
@@ -31,9 +31,14 @@
var
loading
=
this
;
// 获取用户信息
function
get_user
(){
function
get_user
(
mobile
=
-
1
){
// var mobile = $(this).siblings('.search-user').val();
var
mobile
=
getUrlParam
(
'user_id'
);
if
(
mobile
==
-
1
){
var
mobile
=
getUrlParam
(
'user_id'
);
}
if
(
!
mobile
)
return
false
;
...
...
@@ -44,10 +49,12 @@
$
(
'#business_type'
).
val
(
1
).
attr
(
'disabled'
,
false
);
}
$
.
ajax
({
url
:
'/ajax/getUserInfo'
,
type
:
'post'
,
data
:
{
user_id
:
mobile
.
trim
(),
goods_type
:
goods_typ
e
},
data
:
{
user_id
:
mobile
.
trim
(),
goods_type
:
goods_type
,
mobile
:
mobil
e
},
dataType
:
'json'
,
success
:
function
(
resp
)
{
if
(
resp
.
errcode
==
0
)
{
...
...
@@ -102,7 +109,12 @@
})
}
get_user
();
get_user
();
$
(
'.get-user'
).
click
(
function
(){
var
mobile
=
$
(
this
).
siblings
(
'.search-user'
).
val
();
get_user
(
mobile
)
})
// 选择收货地址
$
(
'.user-info'
).
delegate
(
'#address'
,
'change'
,
function
()
{
...
...
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