gistfile1.txt 前台:/********快闪重定向*********/ var message = "{{Session::get('message')}}"; $(window).ready(function () { if (message) { layer.msg(message, { time: 3000, }); } });/********快闪重定向*********/后台:/* * 添加
前台: /********快闪重定向*********/ var message = "{{Session::get('message')}}"; $(window).ready(function () { if (message) { layer.msg(message, { time: 3000, }); } }); /********快闪重定向*********/ 后台: /* * 添加层级信息 * */ public function postAddAgentLev(){ $res = $this->agentlev->addAgentLev(request()); //dd($res); if($res['status']==200){ return redirect()->back()->with('message', $res['msg'])->withInput(); //return redirect()->back()->with('errors', '(^_^)!'.$res['msg']); }else{ return redirect()->back()->with('message', $res['msg'])->withInput(); //return redirect('center/agentlev'); //return redirect()->back()->with('errors', '提交失败(﹀_﹀")! '.$res['msg']); } }