Commit c8f435fd by 朱继来

调整提交订单成功页面

parent ff2f0f74
...@@ -665,6 +665,7 @@ Class AddOrderController extends Controller ...@@ -665,6 +665,7 @@ Class AddOrderController extends Controller
$info['title'] = $title; $info['title'] = $title;
$info['paths'] = [["title" => $title, "href" => '#']]; $info['paths'] = [["title" => $title, "href" => '#']];
$info['type'] = $type; $info['type'] = $type;
$info['is_quiry'] = $request->input('is_quiry', '');
$order = DB::connection('order')->table('lie_order')->where('order_id', $order_id)->first(); $order = DB::connection('order')->table('lie_order')->where('order_id', $order_id)->first();
......
...@@ -811,7 +811,14 @@ layui.config({ ...@@ -811,7 +811,14 @@ layui.config({
success: function(resp){ success: function(resp){
if (resp.errcode == 0) { if (resp.errcode == 0) {
layer.msg(resp.errmsg); layer.msg(resp.errmsg);
location.href = '/addorder/success?order_id='+resp.data.order_id+'&type='+resp.data.type;
var redirect_url = '/addorder/success?order_id='+resp.data.order_id+'&type='+resp.data.type;
if (report_ids) {
redirect_url += '&is_quiry=1';
}
location.href = redirect_url;
return false; return false;
} else if (resp.errcode == 21024) { } else if (resp.errcode == 21024) {
......
...@@ -37,7 +37,9 @@ ...@@ -37,7 +37,9 @@
<div class="section-3"> <div class="section-3">
@if ($type == 1) @if ($type == 1)
<a class="btn btn-success" href="/change/{{ $order_info->order_id }}">审核订单</a> <a class="btn btn-success" href="/change/{{ $order_info->order_id }}">审核订单</a>
@if ($is_quiry)
<a class="btn btn-default" href="/add_order">继续新增</a> <a class="btn btn-default" href="/add_order">继续新增</a>
@endif
@elseif ($type == 2) @elseif ($type == 2)
<a class="btn btn-success" href="/self_order">查看订单</a> <a class="btn btn-success" href="/self_order">查看订单</a>
<a class="btn btn-default" href="/add_online">继续新增</a> <a class="btn btn-default" href="/add_online">继续新增</a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment