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
dcc7d494
authored
Feb 02, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1. 修复JS错误;
2. 订单列表添加使用优惠券金额;
parent
c37a8585
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
app/Http/Controllers/OrderController.php
public/js/order.js
resources/views/orderlist/content.blade.php
app/Http/Controllers/OrderController.php
View file @
dcc7d494
...
...
@@ -71,6 +71,21 @@ function createMenu($menus, $url)
return
createMenuReal
(
$menus
,
$actives
,
0
);
}
// 获取订单优惠券金额
function
getCoupon
(
$order_id
)
{
$price
=
DB
::
connection
(
'order'
)
->
table
(
'lie_order_price'
)
->
where
([
'order_id'
=>
$order_id
,
'price_type'
=>
-
4
])
->
first
();
if
(
$price
)
{
return
$price
->
price
;
}
return
null
;
}
Class
OrderController
extends
Controller
{
// 首页
...
...
public/js/order.js
View file @
dcc7d494
...
...
@@ -79,7 +79,7 @@
listUrl
+=
'&test_order='
+
1
;
}
if
(
!
order_contain
&&
!
time_start
&&
!
time_end
&&
!
order_
type_a
&&
!
order_
pay_type
&&
!
order_status
&&
!
shipping_name
&&
!
order_send
&&
!
order_source_pf
&&
!
order_source_adtag
&&
!
test_order
.
is
(
':checked'
))
{
if
(
!
order_contain
&&
!
time_start
&&
!
time_end
&&
!
order_pay_type
&&
!
order_status
&&
!
shipping_name
&&
!
order_send
&&
!
order_source_pf
&&
!
order_source_adtag
&&
!
test_order
.
is
(
':checked'
))
{
listUrl
=
'/list'
;
}
...
...
resources/views/orderlist/content.blade.php
View file @
dcc7d494
...
...
@@ -275,7 +275,9 @@
<td
class=
"table-list-title"
>
订单编号
</td>
<td
class=
"table-list-content"
>
{{$v['order_sn']}}
</td>
<td
class=
"table-list-title"
>
公司名称
</td>
<td
class=
"table-list-content"
>
{{$v['com_name']}}
</td>
<td
class=
"table-list-content"
>
<p
class=
"show-title"
title=
"{{$v['com_name']}}"
>
{{$v['com_name']}}
</p>
</td>
</tr>
<tr>
<td
class=
"table-list-title"
>
支付时间
</td>
...
...
@@ -306,7 +308,11 @@
</tr>
<tr>
<td
class=
"table-list-title"
>
Adtag或其它
</td>
<td
colspan=
"3"
>
{{$v['order_source']}}
</td>
<td
class=
"table-list-content"
>
<p
class=
"show-title"
title=
"{{$v['order_source']}}"
>
{{$v['order_source']}}
</p>
</td>
<td
class=
"table-list-title"
>
优惠金额
</td>
<td
class=
"table-list-content"
>
<?php
echo
App\Http\Controllers\getCoupon
(
$v
[
'order_id'
]);
?>
</td>
</tr>
</table>
</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