From c00f08a8e0de9cb6219bba0274e187efd7f21df2 Mon Sep 17 00:00:00 2001 From: cxdbz Date: Sun, 15 Dec 2019 10:41:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chengji/controller/Index.php | 4 +--- config/jump.php | 8 ++++---- public/error/error.tpl | 27 ------------------------ public/error/success.tpl | 35 -------------------------------- 4 files changed, 5 insertions(+), 69 deletions(-) delete mode 100644 public/error/error.tpl delete mode 100644 public/error/success.tpl diff --git a/app/chengji/controller/Index.php b/app/chengji/controller/Index.php index aee5c5bf..35104168 100644 --- a/app/chengji/controller/Index.php +++ b/app/chengji/controller/Index.php @@ -472,10 +472,8 @@ class Index extends BaseController if($data){ $this->success($msg = '删除成功', $url = '/chengji/index/deletecjs/'.$src['kaoshi'], $data = '', $wait = 3, $header = []); - $this->error('成绩删除失败'); - $this->success('成绩删除成功','/chengji/index/deletecjs/'.$src['kaoshi']); }else{ - $this->error('成绩删除失败'); + $this->error($msg = '删除失败', $url = '/chengji/index/deletecjs/'.$src['kaoshi'], $wait = 3); } // 根据更新结果设置返回提示信息 diff --git a/config/jump.php b/config/jump.php index 03b4ef57..bf46f371 100644 --- a/config/jump.php +++ b/config/jump.php @@ -7,8 +7,8 @@ */ return[ // 默认跳转页面对应的模板文件 - // 'dispatch_success_tmpl' => app()->getRootPath().'/vendor/liliuwei/thinkphp-jump/src/tpl/dispatch_jump.tpl', - // 'dispatch_error_tmpl' => app()->getRootPath().'/vendor/liliuwei/thinkphp-jump/src/tpl/dispatch_jump.tpl', - 'dispatch_success_tmpl' => app()->getRootPath().'/public/error/success.tpl', - 'dispatch_error_tmpl' => app()->getRootPath().'/public/error/error.tpl', + 'dispatch_success_tmpl' => app()->getRootPath().'/vendor/liliuwei/thinkphp-jump/src/tpl/dispatch_jump.tpl', + 'dispatch_error_tmpl' => app()->getRootPath().'/vendor/liliuwei/thinkphp-jump/src/tpl/dispatch_jump.tpl', + // 'dispatch_success_tmpl' => app()->getRootPath().'/public/error/success.tpl', + // 'dispatch_error_tmpl' => app()->getRootPath().'/public/error/error.tpl', ]; diff --git a/public/error/error.tpl b/public/error/error.tpl deleted file mode 100644 index 4ecac4fa..00000000 --- a/public/error/error.tpl +++ /dev/null @@ -1,27 +0,0 @@ - - - - - 后台登录-X-admin2.1 - - - - - - - - - 系统提示 - - -
-
-
-

-

,啥都看不到了…

-
-
-
-
- - \ No newline at end of file diff --git a/public/error/success.tpl b/public/error/success.tpl deleted file mode 100644 index 64a26d3a..00000000 --- a/public/error/success.tpl +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - -{css href="/static/H-ui.admin_v3.1.3.1/H-ui.admin/static/h-ui/css/H-ui.min.css" /} -{css href="/static/H-ui.admin_v3.1.3.1/H-ui.admin/static/h-ui.admin/css/H-ui.admin.css" /} -{css href="/static/H-ui.admin_v3.1.3.1/H-ui.admin/lib/Hui-iconfont/1.0.8/iconfont.css" /} - -系统提示 - - -
-

- 系统提示 -

-

{$msg}

- -
- - \ No newline at end of file