From 5fa22cfa40e3420ab4c42d323207320a7b4d616f Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Mon, 13 Apr 2020 11:35:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/ArticleController.class.php | 9 +++ .../Admin/View/Article/pop_rule_edit.html | 7 +- .../Controller/PromoteController.class.php | 74 +++++++++++-------- .../Home/View/default/Promote/index.html | 27 ++++--- .../View/default/Promote/pop_rule_detail.html | 3 +- 5 files changed, 75 insertions(+), 45 deletions(-) diff --git a/Application/Admin/Controller/ArticleController.class.php b/Application/Admin/Controller/ArticleController.class.php index 464fd307a..cf37c0992 100644 --- a/Application/Admin/Controller/ArticleController.class.php +++ b/Application/Admin/Controller/ArticleController.class.php @@ -944,6 +944,14 @@ class ArticleController extends AdminController { if (!$rule) { return $this->error('记录不存在'); } + if (empty($rule['document_route'])) { + $doc = "当前无文档"; + }else { + $document_route_arr = explode("/", $rule['document_route']); + $doc = $document_route_arr[2]; + } + + $this->assign("doc", $doc); $rule['pop_time'] = $rule['type'] == 1 ? date("Y-m-d", $rule['pop_time']) : $rule['pop_time']; $this->assign('rule', $rule); } @@ -973,6 +981,7 @@ class ArticleController extends AdminController { $updateres = M('document_pop_rules')->where(['id' => $id])->save($data); if ($updateres) { $backData['code'] = 10000; + $backData['filename'] = $name; }else { $backData['code'] = 10001; } diff --git a/Application/Admin/View/Article/pop_rule_edit.html b/Application/Admin/View/Article/pop_rule_edit.html index f7120294f..c019ce359 100644 --- a/Application/Admin/View/Article/pop_rule_edit.html +++ b/Application/Admin/View/Article/pop_rule_edit.html @@ -27,8 +27,9 @@ + 当前文档:{$doc} - +
推广总用户
{$data.count}推广总用户{$match_rules_route}
{$data.count}昨日注册用户
{$data.yesterday}今日注册用户
{$data.today}