Commit c8f435fd by 朱继来

调整提交订单成功页面

parent ff2f0f74
......@@ -653,7 +653,7 @@ Class AddOrderController extends Controller
$info = $this->getPageInfo($request);
$order_id = $request->input('order_id');
$type = $request->input('type');
$type = $request->input('type');
switch ($type) {
case 1: $title = '新增联营订单'; break;
......@@ -662,9 +662,10 @@ Class AddOrderController extends Controller
case 4: $title = '新增自营其他业务订单'; break;
}
$info['title'] = $title;
$info['paths'] = [["title" => $title, "href" => '#']];
$info['type'] = $type;
$info['title'] = $title;
$info['paths'] = [["title" => $title, "href" => '#']];
$info['type'] = $type;
$info['is_quiry'] = $request->input('is_quiry', '');
$order = DB::connection('order')->table('lie_order')->where('order_id', $order_id)->first();
......
......@@ -811,7 +811,14 @@ layui.config({
success: function(resp){
if (resp.errcode == 0) {
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;
} else if (resp.errcode == 21024) {
......
......@@ -37,7 +37,9 @@
<div class="section-3">
@if ($type == 1)
<a class="btn btn-success" href="/change/{{ $order_info->order_id }}">审核订单</a>
<a class="btn btn-default" href="/add_order">继续新增</a>
@if ($is_quiry)
<a class="btn btn-default" href="/add_order">继续新增</a>
@endif
@elseif ($type == 2)
<a class="btn btn-success" href="/self_order">查看订单</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