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
7cfa8a62
authored
Nov 01, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://119.23.72.7/zhujilai/Order
into zjl_form_duplicate_submit_20191031
parents
5c5ffcdb
d8d02b6a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
7 deletions
app/Http/Controllers/AddOrderController.php
public/js/add_order.js
resources/views/addOnline/content.blade.php
resources/views/addOrder/content.blade.php
app/Http/Controllers/AddOrderController.php
View file @
7cfa8a62
...
...
@@ -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 @
7cfa8a62
...
...
@@ -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
()
{
...
...
resources/views/addOnline/content.blade.php
View file @
7cfa8a62
...
...
@@ -5,7 +5,7 @@
<div
class=
"ibox-content create-order"
>
<div
class=
"row"
style=
"margin-bottom: 30px;"
>
<div
class=
"col-sm-12"
hidden
>
<div
class=
"col-sm-12"
>
<input
type=
"text"
class=
"search-user"
name=
"user-mobile"
value=
""
placeholder=
"请输入会员账号"
>
<a
class=
"btn btn-info get-user"
>
获取用户信息
</a>
...
...
resources/views/addOrder/content.blade.php
View file @
7cfa8a62
...
...
@@ -4,7 +4,7 @@
</div>
<div
class=
"ibox-content create-order"
>
<div
class=
"row"
style=
"margin-bottom: 30px;"
hidden
>
<div
class=
"row"
style=
"margin-bottom: 30px;"
>
<div
class=
"col-sm-12"
>
<input
type=
"text"
class=
"search-user"
name=
"user-mobile"
value=
""
placeholder=
"请输入会员账号"
>
<a
class=
"btn btn-info get-user"
>
获取用户信息
</a>
...
...
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