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
088d588f
authored
Nov 05, 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
fef0efb9
23f42d64
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
app/Http/Controllers/AddOrderController.php
resources/views/addOnline/content.blade.php
resources/views/detail/content.blade.php
app/Http/Controllers/AddOrderController.php
View file @
088d588f
...
...
@@ -95,11 +95,12 @@ Class AddOrderController extends Controller
$operator_id
=
$request
->
user
->
userId
;
$UserMainModel
=
new
UserMainModel
;
if
(
!
empty
(
$user_id
)
&&
strlen
(
$request
->
input
(
'user_id'
)
<
11
)
){
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
{
if
(
preg_match
(
'/@/'
,
$mobile
))
{
$user
=
$UserMainModel
->
where
(
'email'
,
$mobile
)
->
select
(
'user_id'
,
'email'
,
'is_test'
)
->
orderBy
(
'create_time'
,
'desc'
)
->
first
();
}
else
{
...
...
resources/views/addOnline/content.blade.php
View file @
088d588f
...
...
@@ -6,7 +6,7 @@
<div
class=
"ibox-content create-order"
>
<div
class=
"row"
style=
"margin-bottom: 30px;"
>
<div
class=
"col-sm-12"
>
<input
type=
"text"
class=
"search-user"
name=
"user-mobile"
value=
""
placeholder=
"请输入会员账号"
>
<input
type=
"text"
class=
"search-user
user-mobile
"
name=
"user-mobile"
value=
""
placeholder=
"请输入会员账号"
>
<a
class=
"btn btn-info get-user"
>
获取用户信息
</a>
<span>
快捷入口:
...
...
resources/views/detail/content.blade.php
View file @
088d588f
...
...
@@ -503,16 +503,16 @@
<td>
{{$v['brand_name']}}
</td>
<td
id=
"goods_number_{{$v['rec_id']}}"
>
{{$v['goods_number']}}
</td>
<td>
<span
id=
"{{$v['rec_id']}}"
>
{{$v['goods_price
_format
']}}
</span>
<span
id=
"{{$v['rec_id']}}"
>
{{$v['goods_price']}}
</span>
</td>
@if (in_array($order_info['order_type'], [2, 3]))
<td>
{{ $currency . number_format($v['goods_price'] * $v['goods_number'],
4
, '.', '') }}
</td>
<td>
{{ $currency . number_format($v['goods_price'] * $v['goods_number'],
2
, '.', '') }}
</td>
@elseif ($username != 'vpadmin@ichunt.com')
<td>
{{$v['single_pre_price_format']}}
</td>
<td>
{{$v['single_pre_price_amount']}}
</td>
@else
<td>
{{ $currency . number_format($v['goods_price'] * $v['goods_number'],
4
, '.', '') }}
</td>
<td>
{{ $currency . number_format($v['goods_price'] * $v['goods_number'],
2
, '.', '') }}
</td>
@endif
<td>
{{$v['delivery_time']}}
</td>
...
...
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