安全管理admin后台

master
sunke 5 years ago
parent d7b4ec366f
commit 9e2bb1e809

@ -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('操作失败');
}
}
/**
*短信发送

@ -92,6 +92,43 @@
<td class="r">
<input type="text" class="txt" name="mobile_phone" value="{$data['mobile_phone']}" disabled="disabled" style="background:#CCCCCC">
</td>
</tr>
<tr>
<td class="l">身份证照:</td>
<td class="r">
<div id="businesspicList" class="uploader-list" style="display: flex;">
<?php if(!empty($idcardimg)):?>
<?php foreach ($idcardimg as $key => $info):?>
<a href="javascript:;"><img src="<?php echo $info?>" style="width: 100px;height: 100px;cursor: move;"></a>
<?php endforeach;?>
<?php endif;?>
</div>
</td>
</tr>
<tr>
<td class="l">营业执照:</td>
<td class="r">
<div id="businesspicList" class="uploader-list" style="display: flex;">
<?php if(!empty($businesspicImg)):?>
<?php foreach ($businesspicImg as $key => $info1):?>
<a href="javascript:;"><img src="<?php echo $info1?>" style="width: 100px;height: 100px;cursor: move;"></a>
<?php endforeach;?>
<?php endif;?>
</div>
</tr>
<tr>
<td class="l">合作合同:</td>
<td class="r">
<div id="businesspicList" class="uploader-list" style="display: flex;">
<?php if(!empty($agreementpicimg)):?>
<?php foreach ($agreementpicimg as $key => $info2):?>
<a href="javascript:;"><img src="<?php echo $info2?>" style="width: 100px;height: 100px;cursor: move;"></a>
<?php endforeach;?>
<?php endif;?>
</div>
</td>
</tr>
<td class="l">邮箱:</td>
<td class="r">

@ -52,6 +52,7 @@
<empty name="show_status">
<a class=" " href="{:U('add?model='.$model['id'])}"><span class="button_icon button_icon1"></span>新增</a>
<a class="ajax-post " target-form="ids" url="{:U('Promote/set_status',array('status'=>1,'msg_type'=>5,'field'=>'status'))}"><span class="button_icon button_icon9"></span>审核</a>
<a class="ajax-post " target-form="ids" url="{:U('Promote/idcar_status',array('status'=>1,'msg_type'=>5,'field'=>'status'))}"><span class="button_icon button_icon9"></span>资质审核</a>
<if condition="C(PROMOTE_AUTO_AUDIT) eq 0">
<a class="ajax-get" target-form="ids" url='{:U("set_config_auto_audit",array("val"=>1,"config_key"=>"PROMOTE_AUTO_AUDIT"))}'><span class="button_icon button_icon4"></span>开启自动审核</a>
<else/>

Loading…
Cancel
Save