作者 anyv
1 个管道 的构建 通过 耗费 0 秒

5

... ... @@ -345,6 +345,12 @@ class PersonalcenterController extends WeChatBaseController{
$code = session('code');
if($code == $_POST['code']){
//判断是否提交过
$id_num = $_POST['id_num'];
$id_number = Db::name('sale_audit') -> where("id_number = '$id_num' ") -> find();
if(!empty($id_number)){
return 4;
}
$data['name'] = $_POST['name'];
$data['phone'] = $_POST['phone'];
$data['id_number'] = $_POST['id_num'];
... ...
... ... @@ -36,11 +36,11 @@
</tr>
<tr>
<th>身份证正面</th>
<td><img src="{:cmf_get_image_url($data.img_front)}" alt=""></td>
<td><img src="{:cmf_get_image_url($data.img_front)}" style="width:auto;height:auto;max-width: 100%;max-height: 100%;" alt=""></td>
</tr>
<tr>
<th>身份证反面</th>
<td><img src="{:cmf_get_image_url($data.img_back)}" alt=""></td>
<td><img src="{:cmf_get_image_url($data.img_back)}" style="width:auto;height:auto;max-width: 100%;max-height: 100%;" alt=""></td>
</tr>
</table>
<div class="form-group">
... ...
... ... @@ -202,6 +202,8 @@
}else if(data == 2){
$('.log_two_bottom_btn').text('提交').attr('disabled',false);
alert('提交失败');
}else if(data == 4){
alert('已提交');
}else if(data == 1){
window.location.href = "{:url('Personalcenter/personal_center')}";
}
... ...