diff --git a/Application/Home/Controller/SafeController.class.php b/Application/Home/Controller/SafeController.class.php index 1da2fa477..76f7a91ce 100644 --- a/Application/Home/Controller/SafeController.class.php +++ b/Application/Home/Controller/SafeController.class.php @@ -154,7 +154,11 @@ class SafeController extends BaseController{ //修改用户信息 public function modifyBaseInfo() { if($_POST) { - + $id = get_pid(); + $ver_status = M('promote','tab_')->where(['id'=>$id])->getField('ver_status',true); + if($ver_status !== 0) { + return $this->success('认证',U('editModify')); + } $username = $_REQUEST['username']; //真实姓名 $id_card = $_REQUEST["id_card"]; //身份证号码 $tel = $_REQUEST['tel']; @@ -242,7 +246,6 @@ class SafeController extends BaseController{ $this->error('卡号格式错误'); return false; } - $id = get_pid(); $data["real_name"] = $username; $data['mobile_phone'] = $tel; $data['idcard'] = $id_card; @@ -317,7 +320,73 @@ class SafeController extends BaseController{ } $this->display(); } - + + public function editModify() { + $id = get_pid(); + $rs = M("promote","tab_")->field('anothpic,ver_status,real_name,bank_card,mobile_phone,email,address,idcard')->where(['id'=>$id])->find(); + $anothpic = $rs['anothpic']; + if(!empty($anothpic)) { + $idcarpicArr = explode(',', $anothpic); + foreach ($idcarpicArr as $key => $value) { + $promoteInfo['valuedata'][$key] = $value; + } + } + $this->assign('ver_status',$rs['ver_status']); + $this->assign('rs',$rs); + $this->assign('promoteInfo',$promoteInfo); + + $this->display(); + } + + public function edit() { + $tel = $_REQUEST["tel"]; + $address = $_REQUEST["address"]; + $email = $_REQUEST["email"]; + $account_type = $_REQUEST["account_type"]; + $bank = $_REQUEST["bank"]; + $agreementpic = $_REQUEST["agreementpic"]; + $data['mobile_phone'] = $tel; + $data['address'] = $address; + $data['email'] = $email; + $data['account_type'] = $account_type; + $data['bank_card'] = $bank; + // $data['agreementpic'] = $ + $data['anothpic'] = $agreementpic; + $id = get_pid(); + $updateRs = M("promote","tab_")->where(['id'=>$id])->save($data); + if($updateRs) { + $this->success("更新信息成功"); + }else { + $this->error("更新信息失败"); + } + } + + public function ajaxEdit() { + $id = get_pid(); + $rs = M("promote","tab_")->field('mobile_phone,address,email,account_type,bank_card')->where(['id'=>$id])->find(); + $this->assign('tel',$rs['mobile_phone']); + $this->assign('address',$rs['address']); + $this->assign('email',$rs['email']); + $this->assign('account_type',$rs['account_type']); + $this->assign('bank_card',$rs['bank_card']); + $res = [ + 'tel'=> $rs['mobile_phone'], + 'address'=> $rs['address'], + 'email'=> $rs['email'], + 'account_type'=> $rs['account_type'], + 'bank_card'=> $rs['bank_card'], + 'idcarpic' => $rs['idcarpic'], + ]; + if($rs['account_type'] == 1) { + $res['complanystatus'] = true; + $res['personalstatus'] = false; + }else { + $res['personalstatus'] = true; + $res['complanystatus'] = false; + } + $this->ajaxReturn($res); + } + public function safeDocument() { $time = time(); $today = date('Y-m-d'); diff --git a/Application/Home/View/default/Safe/editModify.html b/Application/Home/View/default/Safe/editModify.html new file mode 100644 index 000000000..3d5bf82ef --- /dev/null +++ b/Application/Home/View/default/Safe/editModify.html @@ -0,0 +1,375 @@ + + + + + + + + + + + + + + + + +
+
+
资质认证
+
+ 真实姓名: {$rs['real_name']} +
+
+ 身份证号码: {$rs['idcard']} +
+
+ 身份证扫描: 已认证 +
+
+ 营业执照: 已认证 +
+
+ 合作合同: 已认证{ +
+ +
+ +
+
资质认证
+
+ 电话: {$rs['mobile_phone']} +
+
+ 联系地址: {$rs['address']} +
+
+ 邮箱: {$rs['email']} +
+
+ 账户类型: 已认证 +
+
+ 开户银行: {$rs['bank_card']}       + 修改 +
+
+
+ + + + + +
+ + + + + + + + \ No newline at end of file diff --git a/Application/Home/View/default/Safe/modifyBaseInfo.html b/Application/Home/View/default/Safe/modifyBaseInfo.html index eb9eda853..95fc7f4c5 100644 --- a/Application/Home/View/default/Safe/modifyBaseInfo.html +++ b/Application/Home/View/default/Safe/modifyBaseInfo.html @@ -49,28 +49,43 @@ + +
+ 正在审核中,请耐心等待~加急,请联系您的平台对接人员 +
+
- 资质认证
- +
- - @@ -168,7 +183,14 @@ - @@ -180,7 +202,13 @@       - + + + + + + +
真实姓名: + + + + + + +
身份证号码: + + + + + + + +
电话: + + + + + + + +