Merge branch 'feature/promote_base_info' of wmtx/platform into release

用户基本信息
master
廖金灵 5 years ago committed by Gogs
commit c114446d55

@ -202,7 +202,6 @@ class SafeController extends BaseController{
$userAddress[0] = $_REQUEST['s_province'].','.$_REQUEST['s_city'].','.$_REQUEST['s_county'];
$userAddress[1] = $contactAddress;
$email = $_REQUEST['email'];
$account_type = $_REQUEST['account_type']; //账户类型
$bank_name = $_REQUEST["bank_name"]; //开户银行
$bank_account = $_REQUEST['bank_account']; //银行账户名
$bank_card = $_REQUEST['bank_card']; //银行账号
@ -210,7 +209,7 @@ class SafeController extends BaseController{
$businesspic = $_REQUEST['businesspic'];
$agreementpic = $_REQUEST['agreementpic'];
$alipayaccount = $_REQUEST['alipay_account'];
$alipayrealname = $_REQUEST['aplipay_real_name'];
$alipayrealname = $_REQUEST['alipay_real_name'];
if(empty($_REQUEST['agree'])) {
$this->error("请先认真阅读协议,然后勾选协议");
return false;
@ -228,7 +227,7 @@ class SafeController extends BaseController{
$this->error("手机号码格式不合法");
return false;
}
$telInfo = M('promote','tab_')->field('id')->where(['mobile_phone'=>$tel])->find();
$telInfo = M('promote','tab_')->field('id')->where("mobile_phone = $tel and id <> $id")->find();
if(!empty($telInfo)) {
$this->error("手机号码已存在");
return false;
@ -261,10 +260,6 @@ class SafeController extends BaseController{
$this->error('邮箱地址错误');
return false;
}
if(empty($account_type)) {
$this->error("账户类型不能为空");
return false;
}
if(empty($bank_name)) {
$this->error("开户银行不能为空");
return false;
@ -310,7 +305,6 @@ class SafeController extends BaseController{
$data['idcard'] = $id_card;
$data['address'] = json_encode($userAddress,FALSE);
$data['email'] = $email;
$data['account_type'] = $account_type;
$data['bank_name'] = $bank_name;
$data['bank_account'] = $bank_account;
$data['bank_card'] = $bank_card;
@ -318,12 +312,14 @@ class SafeController extends BaseController{
$data['businesspic'] = $businesspic;
$data['agreementpic'] = $agreementpic;
$data['ver_status'] = 3;
dd($data);
if($account_type == "公司") {
$data['account_type'] = 1;
}else {
$data['account_type'] = 2;
}
$data['alipay_account'] = $alipayaccount;
$data['alipay_real_name'] = $alipayrealname;
// if($account_type == "公司") {
// $data['account_type'] = 1;
// }else {
// $data['account_type'] = 2;
// }
$updateRs = M("promote","tab_")->where(['id'=>$id])->save($data);
if($updateRs) {

@ -256,7 +256,7 @@
<span id="confirm_password_tip"></span></td>
</tr>
<tr>
<!-- <tr>
<td class="l"><span style="color:red">*</span>账户类型{$promoteinfo['complanystatus']}</td>
<td class="r">
<if condition="$ver_status eq 1">
@ -265,7 +265,7 @@
<input type="radio" class="input txt" name="account_type" value="公司" >公司<input type="radio" class="input txt" style="margin-left:20px" name="account_type" value="个人" checked>个人
</if>
<span id="confirm_password_tip"></span></td>
</tr>
</tr> -->
<tr>
<td class="l"><span style="color:red">*</span>开户银行:</td>
<td class="r">
@ -302,6 +302,30 @@
<span id="confirm_password_tip"></span></td>
</tr>
<tr>
<td class="l"><span style="color:red">*</span>真实支付宝姓名:</td>
<td class="r">
<if condition="$ver_status eq 1">
<input type="text" class="input txt" disabled ="disabled" name="alipay_real_name" id="alipay_real_name" style="width:430px" value="{$promoteinfo['alipay_real_name']}">
<else />
<input type="text" class="input txt" name="alipay_real_name" id="alipay_real_name" style="width:430px" value="{$promoteinfo['alipay_real_name']}">
</if>
<span id="confirm_password_tip"></span></td>
</tr>
<tr>
<td class="l"><span style="color:red">*</span>支付宝账号:</td>
<td class="r">
<if condition="$ver_status eq 1">
<input type="text" class="input txt" disabled ="disabled" name="alipay_account" id="alipay_account" style="width:430px" value="{$promoteinfo['alipay_account']}">
<else />
<input type="text" class="input txt" name="alipay_account" id="alipay_account" style="width:430px" value="{$promoteinfo['alipay_account']}">
</if>
<span id="confirm_password_tip"></span></td>
</tr>
<?php if ($promoteCompany['service_agreement_show'] > 0):?>
<tr>
<td class="l"></td>

Loading…
Cancel
Save