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
c6c79448
authored
Nov 02, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
bc69f462
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
app/Http/Controllers/OrderController.php
public/css/detail.css
resources/views/detail/content.blade.php
app/Http/Controllers/OrderController.php
View file @
c6c79448
...
...
@@ -1494,7 +1494,13 @@ Class OrderController extends Controller
public
function
changeShipping
(
Request
$request
,
$id
=
''
)
{
if
(
$request
->
isMethod
(
'post'
)){
$data
[
'map'
]
=
$request
->
input
();
$data
[
'shipping_type'
]
=
$request
->
input
(
'shipping_type'
,
1
);
$data
[
'consignee'
]
=
$request
->
input
(
'consignee'
,
''
);
$data
[
'mobile'
]
=
$request
->
input
(
'mobile'
,
''
);
$data
[
'province'
]
=
$request
->
input
(
'province'
,
0
);
$data
[
'city'
]
=
$request
->
input
(
'city'
,
0
);
$data
[
'district'
]
=
$request
->
input
(
'district'
,
''
);
$data
[
'address'
]
=
$request
->
input
(
'address'
,
''
);
$data
[
'k1'
]
=
time
();
$data
[
'k2'
]
=
md5
(
md5
(
$data
[
'k1'
])
.
'fh6y5t4rr351d2c3bryi'
);
...
...
public/css/detail.css
View file @
c6c79448
...
...
@@ -80,10 +80,10 @@ li {
.shipping-info
select
{
width
:
150px
;
}
.shipping-info
textarea
{
/*
.shipping-info textarea {
width: 300px;
height: 100px;
}
}
*/
.order-amount
select
,
.order-invoice
select
,
#inv_shipping_id
{
height
:
28px
;
...
...
resources/views/detail/content.blade.php
View file @
c6c79448
...
...
@@ -182,7 +182,7 @@
<a
href=
"/changeShipping/{{$order_info['order_id']}}"
class=
"btn btn-success btn-sm changeBtn"
>
更改收货地址
</a>
@endif
@elseif (isset($_REQUEST['tags'])
&&
$_REQUEST['tags'] == 'self')
@if (in_array($order_info['status'], array(2, 4))
&&
in_array('self_order_update_address', $userPerms))
@if (in_array($order_info['status'], array(
1,
2, 4))
&&
in_array('self_order_update_address', $userPerms))
<a
href=
"/changeShipping/{{$order_info['order_id']}}?tags={{$_REQUEST['tags']}}"
class=
"btn btn-success btn-sm changeBtn"
>
更改收货地址
</a>
@endif
@elseif (isset($_REQUEST['tags'])
&&
$_REQUEST['tags'] == 'erp')
...
...
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