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
e52e111a
authored
Jan 29, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整预付款切换时定金显示问题
parent
d6067dc7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
app/Http/Controllers/OrderController.php
resources/views/detail/changeOrder.blade.php
app/Http/Controllers/OrderController.php
View file @
e52e111a
...
@@ -403,13 +403,13 @@ Class OrderController extends Controller
...
@@ -403,13 +403,13 @@ Class OrderController extends Controller
return
array
(
'errcode'
=>
1
,
'errmsg'
=>
'订单参数有误!'
);
return
array
(
'errcode'
=>
1
,
'errmsg'
=>
'订单参数有误!'
);
}
}
$order_info
=
DB
::
connection
(
'order'
)
->
table
(
'lie_order'
)
->
where
(
'order_id'
,
$order_id
)
->
first
();
//
$order_info = DB::connection('order')->table('lie_order')->where('order_id', $order_id)->first();
$info
=
$this
->
getPageInfo
(
$request
);
//
$info = $this->getPageInfo($request);
if
(
$order_info
->
status
==
1
&&
$order_info
->
adjust_count
<=
2
&&
!
in_array
(
$info
[
'role'
],
array
(
1
,
2
)))
{
//
if ($order_info->status == 1 && $order_info->adjust_count <= 2 && !in_array($info['role'], array(1, 2))) {
return
array
(
'errcode'
=>-
10010
,
'errmsg'
=>
'没有权限进行二次调价'
);
//
return array('errcode'=>-10010,'errmsg'=>'没有权限进行二次调价');
}
//
}
$url
=
Config
(
'website.api_domain'
)
.
'order/changeOrder'
;
$url
=
Config
(
'website.api_domain'
)
.
'order/changeOrder'
;
...
...
resources/views/detail/changeOrder.blade.php
View file @
e52e111a
...
@@ -134,7 +134,7 @@
...
@@ -134,7 +134,7 @@
<p
class=
"text-danger"
>
{{$currency}}
<p
class=
"text-danger"
>
{{$currency}}
<?php
<?php
if
(
!
$order_info
[
'advance_amount'
]
OR
$order_info
[
'advance_amount'
]
==
0
)
{
if
(
!
$order_info
[
'advance_amount'
]
OR
$order_info
[
'advance_amount'
]
==
0
)
{
$price
=
number_format
(
$order_info
[
'order_amount'
]
*
(
3
/
10
),
2
);
$price
=
number_format
(
$order_info
[
'order_amount'
]
*
(
3
/
10
),
2
,
'.'
,
''
);
echo
'<input type="text" name="deposit_amount" class="only_number advance" value="'
.
$price
.
'">'
;
echo
'<input type="text" name="deposit_amount" class="only_number advance" value="'
.
$price
.
'">'
;
}
else
{
}
else
{
...
...
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