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 1/3] =?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 @@ + + + 身份证照: + +
+ + $info):?> + + + +
+ + + + + 营业执照: + +
+ + $info1):?> + + + +
+ + + + 合作合同: + +
+ + $info2):?> + + + +
+ 邮箱: diff --git a/Application/Admin/View/Promote/lists.html b/Application/Admin/View/Promote/lists.html index 5473d271c..12265cc67 100644 --- a/Application/Admin/View/Promote/lists.html +++ b/Application/Admin/View/Promote/lists.html @@ -52,6 +52,7 @@ 新增 审核 + 资质审核 开启自动审核 From e75907ed07859dcdfc601dcfc5b75b3bcf1f6c5c Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Sat, 9 Nov 2019 15:14:21 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E9=9A=90=E8=97=8F=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/View/default/Public/promote_base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Home/View/default/Public/promote_base.html b/Application/Home/View/default/Public/promote_base.html index 1ea544a54..47a40a8c0 100644 --- a/Application/Home/View/default/Public/promote_base.html +++ b/Application/Home/View/default/Public/promote_base.html @@ -38,7 +38,7 @@ 后台首页
- + +
+
+
@@ -259,45 +266,32 @@ }); }); - $("#partner_id").change(function(){ + function get_game_list() + { + var game_name = "{:I('game_name')}"; $.ajax({ url:"{:U('Finance/getGameList')}", type:"post", - data:{partner_id:$("#partner_id option:selected").attr('partner-id')}, + data:{partner_id:$("#partner_id option:selected").attr('partner-id'), sdk_type:$("#sdk_version1 option:selected").val()}, dataType:'json', success:function(data){ var str = ""; for (var i in data){ - str += "" + str += "" } // console.log(str); - $("#game_id").empty(); - $("#game_id").append(str); + $("#game_name").empty(); + $("#game_name").append(str); // $("#server_id").select2(); } }) + } + $("#partner_id, #sdk_type").change(function(){ + get_game_list(); }); - var game_id = "{:I('game_name')}"; - var game_server = "{:I('server_id')}"; - if(game_id){ - $.ajax({ - url:"{:U('Ajax/getSpendServer')}", - type:"post", - data:{game_id:game_id,type:2}, - dataType:'json', - success:function(data){ - str = ""; - for (var i in data){ - str += "" - } - $("#server_id").empty(); - $("#server_id").append(str); - $("#server_id").select2(); - } - }) - } + $("#partner_id").change(); }) diff --git a/Application/Admin/View/Game/lists.html b/Application/Admin/View/Game/lists.html index 56fac7fac..5991d6528 100644 --- a/Application/Admin/View/Game/lists.html +++ b/Application/Admin/View/Game/lists.html @@ -69,7 +69,7 @@ text-indent:0; -
+ +
+ +
+
+
- - - - + + + +
@@ -157,7 +157,7 @@ 注册时间 最后登录时间 渠道类型 - 上线会长 + 所属会长 商务专员 状态 可申请游戏 diff --git a/Application/Admin/View/Provide/lists.html b/Application/Admin/View/Provide/lists.html index 0f38f3a6a..977f4c48e 100644 --- a/Application/Admin/View/Provide/lists.html +++ b/Application/Admin/View/Provide/lists.html @@ -52,12 +52,19 @@ value="{:I('user_account')}">
- + + + + +
+
+ + +
@@ -334,5 +341,31 @@ }); }) + var game_name = "{:I('game_name')}"; + $("#sdk_version1").change(function(){ + $.ajax({ + url:"{:U('Ajax/getGameList')}", + type:"get", + data:{sdk_type:$("#sdk_version1 option:selected").val()}, + dataType:'json', + success:function(response){ + str = ''; + // $.each(response.data, function(index, item){ + // console.log(item.id); + // str += ''; + // }); + data = response.data; + for (var i in data){ + str += "" + } + $("#game_name").empty(); + $("#game_name").append(str); + $("#game_name").select2(); + $("#game_name").change(); + } + }) + }); + $("#sdk_version1").change(); + diff --git a/Application/Admin/View/Server/lists.html b/Application/Admin/View/Server/lists.html index dde7f9340..1f7f90a50 100644 --- a/Application/Admin/View/Server/lists.html +++ b/Application/Admin/View/Server/lists.html @@ -71,11 +71,18 @@
- + + + + +
+
+
@@ -85,14 +92,6 @@
-
-
-
   
- + + + + +
+
+
- -
- +
+