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
0f972584
authored
Aug 28, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_create_order_20180813' into development
parents
97e5b1f9
66e85574
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
7 deletions
app/Http/Controllers/AddOrderController.php
public/js/add_order.js
resources/views/addOffline/content.blade.php
resources/views/addOnline/content.blade.php
resources/views/addOrder/content.blade.php
app/Http/Controllers/AddOrderController.php
View file @
0f972584
...
@@ -137,7 +137,11 @@ Class AddOrderController extends Controller
...
@@ -137,7 +137,11 @@ Class AddOrderController extends Controller
if
(
$request
->
isMethod
(
'post'
))
{
if
(
$request
->
isMethod
(
'post'
))
{
$mobile
=
$request
->
input
(
'mobile'
);
$mobile
=
$request
->
input
(
'mobile'
);
$user
=
DB
::
connection
(
'order'
)
->
table
(
'lie_user_main'
)
->
where
(
'mobile'
,
$mobile
)
->
select
(
'user_id'
,
'mobile'
,
'is_test'
)
->
first
();
if
(
preg_match
(
'/@/'
,
$mobile
))
{
$user
=
DB
::
connection
(
'order'
)
->
table
(
'lie_user_main'
)
->
where
(
'email'
,
$mobile
)
->
select
(
'user_id'
,
'email'
,
'is_test'
)
->
first
();
}
else
{
$user
=
DB
::
connection
(
'order'
)
->
table
(
'lie_user_main'
)
->
where
(
'mobile'
,
$mobile
)
->
select
(
'user_id'
,
'mobile'
,
'is_test'
)
->
first
();
}
if
(
!
empty
(
$user
))
{
if
(
!
empty
(
$user
))
{
// 收货地址
// 收货地址
...
...
public/js/add_order.js
View file @
0f972584
...
@@ -33,12 +33,18 @@
...
@@ -33,12 +33,18 @@
success
:
function
(
resp
)
{
success
:
function
(
resp
)
{
if
(
resp
.
errcode
==
0
)
{
if
(
resp
.
errcode
==
0
)
{
var
data
=
resp
.
data
;
var
data
=
resp
.
data
;
var
reg
=
/@/
;
$
(
'.user-info'
).
show
();
$
(
'.user-info'
).
show
();
// 账号信息
// 账号信息
$
(
'.user_id'
).
val
(
data
.
user
.
user_id
);
$
(
'.user_id'
).
val
(
data
.
user
.
user_id
);
$
(
'.user-mobile'
).
text
(
data
.
user
.
mobile
);
if
(
reg
.
test
(
mobile
))
{
$
(
'.user-mobile'
).
text
(
data
.
user
.
email
);
}
else
{
$
(
'.user-mobile'
).
text
(
data
.
user
.
mobile
);
}
var
is_test
=
data
.
user
.
is_test
?
'是'
:
'否'
;
var
is_test
=
data
.
user
.
is_test
?
'是'
:
'否'
;
$
(
'.user-test'
).
text
(
is_test
);
$
(
'.user-test'
).
text
(
is_test
);
...
...
resources/views/addOffline/content.blade.php
View file @
0f972584
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-6"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<span>
手机号码
:
</span>
<span>
会员账号
:
</span>
<span>
{{Config('website.internal-account')}}
</span>
<span>
{{Config('website.internal-account')}}
</span>
</div>
</div>
</div>
</div>
...
...
resources/views/addOnline/content.blade.php
View file @
0f972584
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
.get-user
{
padding
:
3px
6px
;
margin-right
:
20px
;}
.get-user
{
padding
:
3px
6px
;
margin-right
:
20px
;}
</style>
</style>
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-6"
>
<input
type=
"text"
class=
"search-user"
name=
"user-mobile"
value=
""
placeholder=
"请输入
用户手机号码
"
>
<input
type=
"text"
class=
"search-user"
name=
"user-mobile"
value=
""
placeholder=
"请输入
会员账号
"
>
<a
class=
"btn btn-info get-user"
>
获取用户信息
</a>
<a
class=
"btn btn-info get-user"
>
获取用户信息
</a>
<span>
快捷入口:
<a
href=
"{{Config('website.add-user-url')}}"
target=
"_blank"
>
新增用户账号
</a></span>
<span>
快捷入口:
<a
href=
"{{Config('website.add-user-url')}}"
target=
"_blank"
>
新增用户账号
</a></span>
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-6"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<span>
手机号码
:
</span>
<span>
会员账号
:
</span>
<span
class=
"user-mobile"
></span>
<span
class=
"user-mobile"
></span>
</div>
</div>
</div>
</div>
...
...
resources/views/addOrder/content.blade.php
View file @
0f972584
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
.get-user
{
padding
:
3px
6px
;
margin-right
:
20px
;}
.get-user
{
padding
:
3px
6px
;
margin-right
:
20px
;}
</style>
</style>
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-6"
>
<input
type=
"text"
class=
"search-user"
name=
"user-mobile"
value=
""
placeholder=
"请输入
用户手机号码
"
>
<input
type=
"text"
class=
"search-user"
name=
"user-mobile"
value=
""
placeholder=
"请输入
会员账号
"
>
<a
class=
"btn btn-info get-user"
>
获取用户信息
</a>
<a
class=
"btn btn-info get-user"
>
获取用户信息
</a>
<span>
快捷入口:
<a
href=
"{{Config('website.add-user-url')}}"
target=
"_blank"
>
新增用户账号
</a></span>
<span>
快捷入口:
<a
href=
"{{Config('website.add-user-url')}}"
target=
"_blank"
>
新增用户账号
</a></span>
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-6"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<span>
手机号码
:
</span>
<span>
会员账号
:
</span>
<span
class=
"user-mobile"
></span>
<span
class=
"user-mobile"
></span>
</div>
</div>
</div>
</div>
...
...
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