From 0688a046d39dccdc06445f6bd1e82d8b8c20d85b Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Wed, 20 Nov 2019 17:37:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Home/Controller/PromoteController.class.php | 15 +++++++++++++-- Application/Home/Event/PromoteEvent.class.php | 3 ++- .../Home/View/default/Promote/children.html | 2 +- .../Home/View/default/Promote/edit_chlid.html | 2 +- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/Application/Home/Controller/PromoteController.class.php b/Application/Home/Controller/PromoteController.class.php index b09ae54ac..8d76ec0e6 100644 --- a/Application/Home/Controller/PromoteController.class.php +++ b/Application/Home/Controller/PromoteController.class.php @@ -867,7 +867,6 @@ class PromoteController extends BaseController $realName = I('real_name', ''); $status = I('status', 'all'); $promoteType = I('promote_type', 0); - $loginer = $this->getLoginPromote(); $map = []; @@ -950,6 +949,8 @@ class PromoteController extends BaseController $this->assign('count', $count); $this->assign('pagination', $pagination); $this->assign('records', $records); + $this->assign('promoteType',$promoteType); + $this->assign('promoteTypeTitle',$promoteTypeTitle); $this->display(); } @@ -1077,6 +1078,16 @@ class PromoteController extends BaseController public function edit_chlid($id = 0) { + $promoteType = $_REQUEST['promote_type']; + if($promoteType == 0) { + $promoteTypeTitle = "部门长管理"; + } + if($promoteType == 1) { + $promoteTypeTitle = "组长管理"; + } + if($promoteType == 2) { + $promoteTypeTitle = "推广员管理"; + } if (IS_POST) { $type = $_REQUEST['type']; $map['id'] = $id; @@ -1185,7 +1196,7 @@ class PromoteController extends BaseController } else { $promote = A('Promote', 'Event'); $this->meta_title = '子帐号'; - $promote->baseinfo('edit_chlid', $id); + $promote->baseinfo('edit_chlid', $id,$promoteTypeTitle); } } diff --git a/Application/Home/Event/PromoteEvent.class.php b/Application/Home/Event/PromoteEvent.class.php index 47512ceea..0ed193438 100644 --- a/Application/Home/Event/PromoteEvent.class.php +++ b/Application/Home/Event/PromoteEvent.class.php @@ -17,11 +17,12 @@ class PromoteEvent extends BaseEvent { /** 获取基本信息 */ - public function baseinfo($tem_edit,$id=0) { + public function baseinfo($tem_edit,$id=0,$promotetitle=0) { $model = M('Promote','tab_'); $data = $model->find($id); $data['bank_area'] = explode(',', $data['bank_area']); $this->assign("data",$data); + $this->assign('promotetitle',$promotetitle); $this->display($tem_edit); } diff --git a/Application/Home/View/default/Promote/children.html b/Application/Home/View/default/Promote/children.html index f2f30dc63..52e049283 100644 --- a/Application/Home/View/default/Promote/children.html +++ b/Application/Home/View/default/Promote/children.html @@ -83,7 +83,7 @@