资质认证

master
sunke 5 years ago
parent ed4a184f79
commit dc35008201

@ -2403,6 +2403,8 @@ class DownloadController extends BaseController {
foreach ($data as &$list) { foreach ($data as &$list) {
//提现状态 //提现状态
$list['pay_order_number'] = $this->encryption($list['pay_order_number']);
$list['user_account'] = $this->encryption($list['user_account']);
if ($list['pay_status'] == 1) { if ($list['pay_status'] == 1) {
switch ($list['selle_status']) { switch ($list['selle_status']) {
case 0: case 0:

@ -156,12 +156,14 @@ class SafeController extends BaseController{
$metaTitle = '基础信息'; $metaTitle = '基础信息';
$modelList = ['基础信息', $metaTitle]; $modelList = ['基础信息', $metaTitle];
$this->verifyPasswordView($modelList); $this->verifyPasswordView($modelList);
if($_POST) {
$id = get_pid(); $id = get_pid();
$ver_status = M('promote','tab_')->where(['id'=>$id])->getField('ver_status',true); $ver_status = M('promote','tab_')->where(['id'=>$id])->getField('ver_status',true);
if($ver_status[0] == 1) { if($ver_status[0] == 1) {
$this->success('认证',U('editModify')); //return $this->display('editModify');
$this->redirect('editModify');
} }
if($_POST) {
$username = $_REQUEST['username']; //真实姓名 $username = $_REQUEST['username']; //真实姓名
$id_card = $_REQUEST["id_card"]; //身份证号码 $id_card = $_REQUEST["id_card"]; //身份证号码
$tel = $_REQUEST['tel']; $tel = $_REQUEST['tel'];
@ -389,7 +391,7 @@ class SafeController extends BaseController{
$id = get_pid(); $id = get_pid();
$updateRs = M("promote","tab_")->where(['id'=>$id])->save($data); $updateRs = M("promote","tab_")->where(['id'=>$id])->save($data);
if($updateRs) { if($updateRs) {
$this->success("更新信息成功"); $this->success("更新信息成功",U('modifyBaseInfo'));
}else { }else {
$this->error("更新信息失败"); $this->error("更新信息失败");
} }
@ -397,7 +399,7 @@ class SafeController extends BaseController{
public function ajaxEdit() { public function ajaxEdit() {
$id = get_pid(); $id = get_pid();
$rs = M("promote","tab_")->field('mobile_phone,address,email,account_type,bank_card')->where(['id'=>$id])->find(); $rs = M("promote","tab_")->field('mobile_phone,address,email,account_type,bank_card,anothpic')->where(['id'=>$id])->find();
$this->assign('tel',$rs['mobile_phone']); $this->assign('tel',$rs['mobile_phone']);
$this->assign('address',$rs['address']); $this->assign('address',$rs['address']);
$this->assign('email',$rs['email']); $this->assign('email',$rs['email']);
@ -410,6 +412,7 @@ class SafeController extends BaseController{
'account_type'=> $rs['account_type'], 'account_type'=> $rs['account_type'],
'bank_card'=> $rs['bank_card'], 'bank_card'=> $rs['bank_card'],
'idcarpic' => $rs['idcarpic'], 'idcarpic' => $rs['idcarpic'],
'anothpic' => $rs['anothpic'],
]; ];
if($rs['account_type'] == 1) { if($rs['account_type'] == 1) {
$res['complanystatus'] = true; $res['complanystatus'] = true;

@ -175,6 +175,7 @@
success:function(res) { success:function(res) {
var tel = res.tel var tel = res.tel
var address = res.address var address = res.address
console.log(res)
var email = res.email var email = res.email
var account_type = res.account_type var account_type = res.account_type
if(account_type == 1) { if(account_type == 1) {
@ -187,7 +188,7 @@
var bank_card = res.bank_card var bank_card = res.bank_card
var complanystatus = res.complanystatus var complanystatus = res.complanystatus
var personalstatus = res.personalstatus var personalstatus = res.personalstatus
var anothpic = res.anothpic
layer.open({ layer.open({
type: 1 type: 1
,title: false //不显示标题栏 ,title: false //不显示标题栏
@ -211,7 +212,7 @@
+' <tr><td class="l">开户银行:</td><td class="r"><input type="text" class="input txt" name="bank" id="confirm_password" style="width:430px" placeholder="" value="'+bank_card+'">' +' <tr><td class="l">开户银行:</td><td class="r"><input type="text" class="input txt" name="bank" id="confirm_password" style="width:430px" placeholder="" value="'+bank_card+'">'
+'<span id="confirm_password_tip"></span></td></tr>' +'<span id="confirm_password_tip"></span></td></tr>'
+' <tr> <td class="l" style="margin-top:20px">补充协议:</td><td class="r">' +' <tr> <td class="l" style="margin-top:20px">补充协议:</td><td class="r">'
+' <input type="hidden" name="agreementpic" id="" value=""/>' +' <input type="hidden" name="agreementpic" id="" value="'+anothpic+'"/>'
+'<div id="uploader-demo" > <div id="agreementpic"><div class="webuploader-pick" style="line-height:30px" onclick="">点击上传</div></div>' +'<div id="uploader-demo" > <div id="agreementpic"><div class="webuploader-pick" style="line-height:30px" onclick="">点击上传</div></div>'
+'<div id="agreementpicList" class="uploader-list" style="display: flex;"></div></td></tr>' +'<div id="agreementpicList" class="uploader-list" style="display: flex;"></div></td></tr>'
+'<tr><td class="l" colspan="5"><div style="margin-top:40px;" id="tab"><span style="padding-left:20px;color:#26c7dbd4" >*须补充修改协议(联系平台签署)</span></div> </td></tr>' +'<tr><td class="l" colspan="5"><div style="margin-top:40px;" id="tab"><span style="padding-left:20px;color:#26c7dbd4" >*须补充修改协议(联系平台签署)</span></div> </td></tr>'

Loading…
Cancel
Save