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
11573682
authored
Apr 09, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加快递单号
parent
eae64ece
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
app/Http/Controllers/OrderController.php
resources/views/orderlist/content.blade.php
app/Http/Controllers/OrderController.php
View file @
11573682
...
...
@@ -110,11 +110,11 @@ function getShipping($order_id)
$shipping
=
DB
::
connection
(
'order'
)
->
table
(
'lie_order_shipping'
)
->
where
([
'order_id'
=>
$order_id
,
'shipping_type'
=>
1
])
->
select
(
'status'
)
->
select
(
's
hipping_no'
,
's
tatus'
)
->
first
();
if
(
!
empty
(
$shipping
))
{
return
$shipping
->
status
;
return
$shipping
;
}
return
false
;
...
...
resources/views/orderlist/content.blade.php
View file @
11573682
...
...
@@ -233,10 +233,10 @@
</td>
<td
class=
"show-list"
class=
"show-list"
>
<?php
$s
tatus
=
App\Http\Controllers\getShipping
(
$v
[
'order_id'
]);
$s
hipping
=
App\Http\Controllers\getShipping
(
$v
[
'order_id'
]);
if
(
$s
tatus
)
{
switch
(
$status
)
{
if
(
$s
hipping
)
{
switch
(
$s
hipping
->
s
tatus
)
{
case
1
:
echo
'已配送'
;
break
;
case
2
:
echo
'已签收'
;
break
;
default
:
echo
'未配送'
;
break
;
...
...
@@ -340,9 +340,12 @@
<td
class=
"table-list-title"
>
优惠金额
</td>
<td
class=
"table-list-content"
>
<?php
echo
App\Http\Controllers\getCoupon
(
$v
[
'order_id'
]);
?>
</td>
</tr>
<tr>
<tr>
<td
class=
"table-list-title"
>
快递单号
</td>
<td
class=
"table-list-content"
>
{{$shipping ? $shipping->shipping_no : ''}}
</td>
<td
class=
"table-list-title"
>
Adtag或其它
</td>
<td
class=
"table-list-content"
colspan=
"3"
>
<td
class=
"table-list-content"
>
<p
class=
"show-title"
title=
"{{$v['order_source']}}"
>
{{$v['order_source']}}
</p>
</td>
</tr>
...
...
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