bindPhone.html 5.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <ion-view style="background-color:#ededf0;" title="绑定手机号码">
  2. <div class="bar bar-header bar-header-blue">
  3. <div class="button button-icon icon pus_blue" ng-click="hideModel()"></div>
  4. <button class="ion-android-close hideBackModel" ng-click="hideModel()"></button>
  5. <h3 class="DockingTheme_h3">绑定手机号</h3>
  6. </div>
  7. <ion-content class="has-header" id="content_scroll" has-bouncing="true" overflow-scroll="true" style="padding: 0 12px;background-color: #fff;">
  8. <div>
  9. <img ng-src="{{titleLogo}}" width="50%" height="35" style="display: block;margin:50px auto 53px"/>
  10. </div>
  11. <form name="form" novalidate="novalidate" style="margin-top: 25px;">
  12. <div class="input-wrap row row-center" style="width: 90%;border: 1px solid #ccc; height: 50px;margin: 0 auto 20px;border-radius: 4px;top: -12px;" ng-class="{warn:form.tel.$dirty&&form.tel.$error.required}">
  13. <label class="left-icon-wrap" style="padding-right: 4px;">
  14. <span class="bindPhonTel">手机号</span>
  15. </label>
  16. <input type="tel" name="tel" class="col login-input" placeholder="输入手机号码" ng-model="user.name" ng-minlength="11" ng-maxlength="11" required ng-pattern="/1[3|4|5|7|8|9][0-9]{9}/" ng-focus/>
  17. </div>
  18. <div style="width: 100%; height: 20px; position: relative;top:-11px;">
  19. <span ng-if="(form.tel.$invalid&&form.tel.$dirty &&!form.tel.$focused) || (form.tel.$invalid && submitted )" class="tel_error">
  20. <!--//验证1-->
  21. <small ng-if="form.tel.$error.required">*请输入11位手机号</small>
  22. <!--//验证2-->
  23. <small ng-if="form.tel.$error.pattern">*请填写正确的手机号</small>
  24. <!--//验证3-->
  25. <small ng-if="form.tel.$error.maxlength">手机号不能多于11位</small>
  26. </span>
  27. </div>
  28. <!--<span style="color:red" ng-if"myForm.user.$dirty && myForm.user.$invalid">
  29. <span ng-if="myForm.user.$error.required">手机号错误</span>
  30. </span>-->
  31. <div class="input-wrap row row-center mt-20" style="width: 90%;border: 1px solid #ccc !important; height: 50px;margin: 0 auto 6px;border-radius: 4px;" ng-class="{warn:form.password.$dirty&&form.password.$error.required}">
  32. <label class="left-icon-wrap" style="text-align: right;padding-right: 4px;">
  33. <span class="bindPhonTel">密码</span>
  34. </label>
  35. <input type="{{show_psd ? 'text' : 'password'}}" name="password" class="col login-input" placeholder="输入6-20位密码" ng-model="user.password" onkeyup="value=value.replace(/[^\w\.\/]/ig,'')"
  36. required
  37. ng-focus
  38. ng-maxlength="20"
  39. ng-minlength="6"/>
  40. <!--<button class="psd-control bindTruePassword" ng-click="showPassword()">-->
  41. <!--获取验证码-->
  42. <!--</button>-->
  43. </div>
  44. <div>
  45. <div style="width: 100%; height: 20px; position: relative;top:2px;">
  46. <span class="tel_error" ng-if="(form.password.$invalid && form.password.$dirty && !form.password.$focused) || (form.password.$invalid && submitted)">
  47. <small ng-if="form.password.$error.minlength">*密码不能少于6位</small>
  48. <small ng-if="form.password.$error.maxlength">*密码不能多于20位</small>
  49. <small ng-if="form.password.$error.required">*密码不能为空</small>
  50. </span>
  51. </div>
  52. </div>
  53. <div class=" text-left" style="width: 100%;padding: 10px;text-align: center;">
  54. <span ng-click="readCommition()" ng-class="{'submit-mark':true,'bg-blue':readCommit}">
  55. <i class="icon ion-checkmark-round"></i>
  56. </span>
  57. <span>同意接受</span>
  58. <span style="color: blue" ng-click="showRegistePolicy()">《平台注册协议》</span>
  59. <span>及</span>
  60. <span style="color: blue" ng-click="showPrivacyPolicy()">《平台隐私政策》</span>
  61. </div>
  62. <div style="width: 100%; height: 20px;color: red;font-size: 12px;padding: 10px;text-align: center" ng-if="readCommit==false&&form.tel.$dirty&&form.password.$dirty&&form.password.$valid&&form.tel.$valid">
  63. <span>您尚未接受《平台注册协议》,请勾选后再绑定!</span>
  64. </div>
  65. <div class="blank-h12"></div>
  66. <div class="blank-h12"></div>
  67. <button class="button button-block button-positive my_login" ng-click="wechatReqLogin()" type="submit" ng-disabled="(form.tel.$pristine||form.password.$pristine)||(form.tel.$dirty&&form.tel.$invalid )||(form.password.$dirty&& form.password.$invalid)||readCommit==false">
  68. 立即绑定
  69. </button>
  70. </form>
  71. <p class="bindAlert" ng-if="type==2">绑定后,您的微信号和手机号都可以登录</p>
  72. <p class="bindAlert" ng-if="type==3">绑定后,您的QQ号和手机号都可以登录</p>
  73. </ion-content>
  74. <div ng-if="isWechat" ng-show="showMessage" class="container">
  75. <div class="message-box">{{messageTitle}}</div>
  76. </div>
  77. </ion-view>