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

5

@@ -345,6 +345,12 @@ class PersonalcenterController extends WeChatBaseController{ @@ -345,6 +345,12 @@ class PersonalcenterController extends WeChatBaseController{
345 345
346 $code = session('code'); 346 $code = session('code');
347 if($code == $_POST['code']){ 347 if($code == $_POST['code']){
  348 + //判断是否提交过
  349 + $id_num = $_POST['id_num'];
  350 + $id_number = Db::name('sale_audit') -> where("id_number = '$id_num' ") -> find();
  351 + if(!empty($id_number)){
  352 + return 4;
  353 + }
348 $data['name'] = $_POST['name']; 354 $data['name'] = $_POST['name'];
349 $data['phone'] = $_POST['phone']; 355 $data['phone'] = $_POST['phone'];
350 $data['id_number'] = $_POST['id_num']; 356 $data['id_number'] = $_POST['id_num'];
@@ -36,11 +36,11 @@ @@ -36,11 +36,11 @@
36 </tr> 36 </tr>
37 <tr> 37 <tr>
38 <th>身份证正面</th> 38 <th>身份证正面</th>
39 - <td><img src="{:cmf_get_image_url($data.img_front)}" alt=""></td> 39 + <td><img src="{:cmf_get_image_url($data.img_front)}" style="width:auto;height:auto;max-width: 100%;max-height: 100%;" alt=""></td>
40 </tr> 40 </tr>
41 <tr> 41 <tr>
42 <th>身份证反面</th> 42 <th>身份证反面</th>
43 - <td><img src="{:cmf_get_image_url($data.img_back)}" alt=""></td> 43 + <td><img src="{:cmf_get_image_url($data.img_back)}" style="width:auto;height:auto;max-width: 100%;max-height: 100%;" alt=""></td>
44 </tr> 44 </tr>
45 </table> 45 </table>
46 <div class="form-group"> 46 <div class="form-group">
@@ -202,6 +202,8 @@ @@ -202,6 +202,8 @@
202 }else if(data == 2){ 202 }else if(data == 2){
203 $('.log_two_bottom_btn').text('提交').attr('disabled',false); 203 $('.log_two_bottom_btn').text('提交').attr('disabled',false);
204 alert('提交失败'); 204 alert('提交失败');
  205 + }else if(data == 4){
  206 + alert('已提交');
205 }else if(data == 1){ 207 }else if(data == 1){
206 window.location.href = "{:url('Personalcenter/personal_center')}"; 208 window.location.href = "{:url('Personalcenter/personal_center')}";
207 } 209 }