From 9e2bb1e809076ddacb2973b9c99cd39f8ac2da00 Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Sat, 9 Nov 2019 15:12:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E7=AE=A1=E7=90=86admin?= =?UTF-8?q?=E5=90=8E=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/PromoteController.class.php | 58 +++++++++++++++++++ Application/Admin/View/Promote/edit.html | 37 ++++++++++++ Application/Admin/View/Promote/lists.html | 1 + 3 files changed, 96 insertions(+) diff --git a/Application/Admin/Controller/PromoteController.class.php b/Application/Admin/Controller/PromoteController.class.php index 7d63f35f0..ecf159a88 100644 --- a/Application/Admin/Controller/PromoteController.class.php +++ b/Application/Admin/Controller/PromoteController.class.php @@ -193,6 +193,31 @@ unset($_REQUEST['parent_id']); $model = D('Promote'); $data = $model->find($id); $data['bank_area']=explode(',',$data['bank_area']); + $idcardpic = $data["idcarpic"]; + $businesspic = $data['businesspic']; + $agreementpic = $data["agreementpic"]; + + if(!empty($idcardpic)) { + $idcardpicArr = explode(',', $idcardpic); + foreach ($idcardpicArr as $key => $value) { + $idcardImg[$key] = get_cover($value, 'path'); + } + } + if(!empty($businesspic)) { + $businesspicArr = explode(',', $businesspic); + foreach ($businesspicArr as $key => $value1) { + $businesspicImg[$key] = get_cover($value1, 'path'); + } + } + if(!empty($agreementpic)) { + $agreementpicArr = explode(',', $agreementpic); + foreach ($agreementpicArr as $key => $value2) { + $agreementpicImg[$key] = get_cover($value2, 'path'); + } + } + $this->assign("agreementpicimg",$agreementpicImg); + $this->assign('businesspicImg',$businesspicImg); + $this->assign('idcardimg',$idcardImg); $this->assign('data',$data); $this->meta_title ='编辑渠道信息'; @@ -233,6 +258,39 @@ unset($_REQUEST['parent_id']); $this->success('操作失败'); } } + + /** + *资质审核 + */ + public function idcar_status($model='Promote') { + if(empty($_REQUEST['ids'])){ + $this->error('请选择要操作的数据'); + } + if(isset($_REQUEST['model'])){ + $model=$_REQUEST['model']; + unset($_REQUEST['model']); + } + $a=0; + $map['id']=array('in',$_REQUEST['ids']); + $set = M('promote','tab_')->where($map)->setField('ver_status',$_REQUEST['status']); + if($set){ + if($_REQUEST['status']==1){ + $select=M('promote','tab_')->where($map)->select(); + foreach ($select as $key => $value) { + if($count=="000000"){ + $a++; + } + } + $this->success('操作成功');/**,已通知'.$a.'人'*/ + }else{ + $this->success('操作成功'); + } + + }else{ + $set=M('promote','tab_')->where($map)->setField('ver_status',2); + $this->success('操作失败'); + } + } /** *短信发送 diff --git a/Application/Admin/View/Promote/edit.html b/Application/Admin/View/Promote/edit.html index 1cafd2b15..64bac02d2 100644 --- a/Application/Admin/View/Promote/edit.html +++ b/Application/Admin/View/Promote/edit.html @@ -92,6 +92,43 @@