mobile.blade.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. @extends('theme::layout.public')
  2. @section('content')
  3. <div class="row">
  4. <!--左侧菜单-->
  5. @include('theme::layout.profile_menu')
  6. <div id="main" class="settings col-md-10 form-horizontal main">
  7. <h2 class="h3 post-title">修改手机</h2>
  8. @if(Auth()->user()->userData->mobile_status == 1)
  9. <div class="alert alert-success" role="alert">
  10. 您的手机已绑定,如需修改,请按照下方提示进行操作!
  11. </div>
  12. @else
  13. <div class="alert alert-warning" role="alert">
  14. 您还未进行手机绑定,绑定后可通过手机号码登录系统.
  15. </div>
  16. @endif
  17. <div class="row mt30">
  18. <div class="col-md-8">
  19. <form name="baseForm" id="base_form" action="{{ route('auth.profile.mobile')}}" method="POST">
  20. <input type="hidden" name="_token" value="{{ csrf_token() }}">
  21. <div class="form-group @if ($errors->first('mobile')) has-error @endif">
  22. <label for="mobile" class="required control-label col-sm-3">手机号码</label>
  23. <div class="col-sm-6">
  24. <input name="mobile" id="mobile" type="text" maxlength="15" placeholder="请填写11位手机号码" class="form-control" value="{{ old('mobile',Auth()->user()->mobile) }}" />
  25. @if ($errors->first('mobile'))
  26. <span class="help-block">{{ $errors->first('mobile') }}</span>
  27. @endif
  28. </div>
  29. </div>
  30. <div class="form-group @if ($errors->first('code')) has-error @endif">
  31. <label for="mobile" class="required control-label col-sm-3">短信验证码</label>
  32. <div class="col-sm-4">
  33. <input name="code" id="code" type="text" maxlength="6" placeholder="收到的手机验证码" class="form-control" value="{{ old('code','') }}" />
  34. @if ($errors->first('mobile'))
  35. <span class="help-block">{{ $errors->first('code') }}</span>
  36. @endif
  37. </div>
  38. <div class="col-sm-3"><button class="btn btn-xl btn-default btn-send-code" data-mobile_id="mobile" data-send_type="bind" data-toggle="modal" data-target="#verify_code_modal" type="button">发送验证码</button></div>
  39. </div>
  40. <div class="form-action row mb-30">
  41. <div class="col-sm-offset-3 col-sm-9">
  42. <button class="btn btn-xl btn-primary" type="submit">提交</button>
  43. </div>
  44. </div>
  45. </form>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. @endsection
  51. @section('script')
  52. @include('theme::layout.sms_code_modal')
  53. @endsection