FortPasd.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <ion-view>
  2. <div class="bar bar-header bar-header-blue">
  3. <div class="button button-icon icon pus_blue" ng-click="goback()"></div>
  4. <button class="button button-icon icon goback whiteGoBack noneContent" ng-click="goback()"></button>
  5. <h1 ng-if="defaultLan == 'Chinese'" class="bar_title" style="color: #fff">忘记密码</h1>
  6. <h1 ng-if="defaultLan == 'English'" class="bar_title" style="color: #fff">Forget the password</h1>
  7. </div>
  8. <ion-content has-bouncing="true" overflow-scroll="true" id="new_register" style="background-color:#ffffff;" class="has-header web-style">
  9. <div ng-if="defaultLan == 'Chinese'">
  10. <img ng-src="{{loginLogo}}" width="65%" height="31" style="display: block;margin:50px auto 53px"/>
  11. </div>
  12. <div ng-if="defaultLan == 'English'" height="31">
  13. </div>
  14. <div class="login-mian">
  15. <div class="register-content">
  16. <form name="form" novalidate="novalidate">
  17. <div class="input-wrap row row-center reg" ng-class="{warn:form.tel.$dirty&&form.tel.$error.required}">
  18. <label ng-if="defaultLan == 'Chinese'" class="left-icon-wrap">
  19. 手机号
  20. </label>
  21. <label ng-if="defaultLan == 'English'" class="left-icon-wrap">
  22. Mobile Phone
  23. </label>
  24. <input type="tel" class="col login-input " name="tel" 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/>
  25. <span class="login_pep"></span>
  26. </div>
  27. <div style="width: 100%; height: 20px; position: absolute;top:55px;">
  28. <span ng-if="(form.tel.$invalid&&form.tel.$dirty &&!form.tel.$focused) || (form.tel.$invalid && submitted )" class="tel_error">
  29. <!--//验证1-->
  30. <small ng-if="form.tel.$error.required && defaultLan == 'Chinese'">*请输入手机号</small>
  31. <small ng-if="form.tel.$error.required && defaultLan == 'English'">*Please enter mobile phone</small>
  32. <!--//验证2-->
  33. <small ng-if="form.tel.$error.pattern && defaultLan == 'Chinese'">*请填写正确的手机号</small>
  34. <small ng-if="form.tel.$error.pattern && defaultLan == 'English'">*Please enter correct mobile phone</small>
  35. <!--//验证3-->
  36. <small ng-if="form.tel.$error.maxlength && defaultLan == 'Chinese'">手机号不能多于11位</small>
  37. <small ng-if="form.tel.$error.maxlength && defaultLan == 'English'">Mobile phone number cannot be more than 11 digits</small>
  38. </span>
  39. </div>
  40. <div class="input-wrap row row-center reg" ng-class="{warn:form.captcha.$dirty&&form.captcha.$error.required}">
  41. <input type="text" class="col login-input " name="captcha" ng-model="user.captcha" required ng-focus/>
  42. <label ng-if="defaultLan == 'Chinese'" class="left-icon-wrap">
  43. <button class="button button-small button-positive" ng-click="captcha()" ng-disabled="form.tel.$pristine||form.tel.$invalid||time!=60" ><span ng-if="time==60">获取验证码</span><span ng-if="time!=60">{{time}}秒后可重新获取</span></button>
  44. </label>
  45. <label ng-if="defaultLan == 'English'" class="left-icon-wrap">
  46. <button class="button button-small button-positive" ng-click="captcha()" ng-disabled="form.tel.$pristine||form.tel.$invalid">Get captcha</button>
  47. </label>
  48. </div>
  49. <!-- <div style="width: 100%; height: 20px; position: absolute;top:127px;">-->
  50. <!-- <span ng-if="localStorage.ifcta!=user.captcha" class="tel_error">-->
  51. <!-- <small ng-if="localStorage.ifcta!=user.captcha && defaultLan == 'Chinese'">*验证码错误</small>-->
  52. <!-- <small ng-if="localStorage.ifcta!=user.captcha && defaultLan == 'English'">*Verification code error</small>-->
  53. <!-- </span>-->
  54. <!-- </div>-->
  55. <div class="input-wrap row row-center mt-20 reg" ng-class="{warn:form.password.$dirty&&form.password.$error.required}" ng-focus="input_focus()">
  56. <label ng-if="defaultLan == 'Chinese'" class="left-icon-wrap">
  57. 重设密码
  58. </label>
  59. <label ng-if="defaultLan == 'English'" class="left-icon-wrap re_password">Password</label>
  60. <input type="{{show_psd ? 'text' : 'password'}}" class="col login-input" name="password" ng-model="user.password"
  61. id="password"
  62. required
  63. ng-focus
  64. onfocus="this.removeAttribute('readonly')"
  65. autocomplete="new-password"
  66. ng-pattern="/^(?=.*?[0-9])(?=.*?[a-z])[0-9a-z]{6,}$/"
  67. ng-maxlength="20"
  68. ng-minlength="6"/>
  69. <button class="psd-control" ng-click="showPassword()">
  70. <i class="icon {{show_psd ? 'ion-ios-unlocked-outline' : 'ion-ios-locked-outline'}} " style="font-size: 26px;"></i>
  71. </button>
  72. <!-- <button class="psd-control" ng-click="showPassword()">
  73. <i class="icon {{show_psd ? 'icon-psddisvisiable' : 'icon-psdvisiable'}} " ></i>
  74. </button>-->
  75. </div>
  76. <div style="width: 100%; height: 20px; position: absolute;top:197px;text-align: center">
  77. <span class="tel_error" ng-if="(form.password.$invalid && form.password.$dirty && !form.password.$focused) || (form.password.$invalid && submitted)">
  78. <small ng-if="defaultLan == 'Chinese'&& form.password.$error.pattern">密码不能少于6位,必须包含字母与阿拉伯数字</small>
  79. <small ng-if="defaultLan == 'English' && form.password.$error.pattern">The password cannot be less than 6 characters and must contain letters and Arabic numbers</small>
  80. <small ng-if="form.password.$error.maxlength && defaultLan == 'Chinese'">密码不能多于20位</small>
  81. <small ng-if="form.password.$error.maxlength && defaultLan == 'English'">Password cannot be more than 20 digits</small>
  82. <small ng-if="form.password.$error.required && defaultLan == 'Chinese'">密码不能为空</small>
  83. <small ng-if="form.password.$error.required && defaultLan == 'English'">Password cannot be empty</small>
  84. </span>
  85. </div>
  86. <div class="input-wrap row row-center mt-20 reg" ng-class="{warn:(form.repeat_password.$dirty&&form.repeat_password.$error.required )||(form.repeat_password.$dirty&&repeat_password!=password)}" ng-focus="input_focus()">
  87. <label ng-if="defaultLan == 'Chinese'" class="left-icon-wrap">
  88. 确认密码
  89. </label>
  90. <label ng-if="defaultLan == 'English'" class="left-icon-wrap">
  91. Confirm Password
  92. </label>
  93. <input type="{{show_psd1 ? 'text' : 'password'}}" class="col login-input" ng-model="user.repeat_password" name="repeat_password" ng-focus
  94. ng-maxlength="20"
  95. ng-minlength="6"
  96. id="repeat_password"
  97. ng-pattern="/^(?=.*?[0-9])(?=.*?[a-z])[0-9a-z]{6,}$/"
  98. required
  99. pw-check="password"/>
  100. <button class="psd-control" ng-click="showPassword1()">
  101. <i class="icon {{show_psd1 ? 'ion-ios-unlocked-outline' : 'ion-ios-locked-outline'}} " style="font-size: 26px;"></i>
  102. </button>
  103. </div>
  104. <div style="width: 100%; height: 20px; position: absolute;top:269px;text-align: center">
  105. <span class="tel_error" ng-if="(form.repeat_password.$invalid && form.repeat_password.$dirty && !form.repeat_password.$focused) || (form.repeat_password.$invalid && submitted)">
  106. <small ng-if="defaultLan == 'Chinese'&& form.repeat_password.$error.pattern">密码不能少于6位,必须包含字母与阿拉伯数字</small>
  107. <small ng-if="defaultLan == 'English' && form.repeat_password.$error.pattern">The password cannot be less than 6 characters and must contain letters and Arabic numbers</small>
  108. <small ng-if="form.repeat_password.$error.maxlength && defaultLan == 'Chinese'">*密码不能多于20位</small>
  109. <small ng-if="form.repeat_password.$error.required && defaultLan == 'Chinese'">*密码不能为空</small>
  110. <small ng-if="form.repeat_password.$error.maxlength && defaultLan == 'English'">*Password cannot be more than 20 digits</small>
  111. <small ng-if="form.repeat_password.$error.required && defaultLan == 'English'">*Password cannot be empty</small>
  112. </span>
  113. <span class="tel_error" ng-if="form.repeat_password.$valid">
  114. <small ng-if="user.repeat_password!=user.password && defaultLan == 'Chinese'">*密码和确认密码不一致!!</small>
  115. <small ng-if="user.repeat_password!=user.password && defaultLan == 'English'">*Password and confirm password are inconsistent</small>
  116. </span>
  117. </div>
  118. <button ng-if="defaultLan == 'Chinese'" class="button button-block button-positive my_register {{register_finish}}" ng-click="confirm(user)" type="submit"
  119. ng-disabled="(form.tel.$pristine||form.password.$pristine||form.repeat_password.$pristine||form.captcha.$pristine)||(form.tel.$dirty&&form.tel.$invalid )||(form.password.$dirty&& form.password.$invalid)||(form.repeat_password.$dirty&& form.repeat_password.$invalid)||(form.captcha.$dirty&&form.captcha.$invalid )||(user.repeat_password!=user.password)">
  120. 确认
  121. </button>
  122. <button ng-if="defaultLan == 'English'" class="button button-block button-positive my_register {{register_finish}}" ng-click="confirm(user)" type="submit"
  123. ng-disabled="(form.tel.$pristine||form.password.$pristine||form.repeat_password.$pristine||form.captcha.$pristine)||(form.tel.$dirty&&form.tel.$invalid )||(form.password.$dirty&& form.password.$invalid)||(form.repeat_password.$dirty&& form.repeat_password.$invalid)||(form.captcha.$dirty&&form.captcha.$invalid )||(user.repeat_password!=user.password)">
  124. confirm
  125. </button>
  126. <!--<p class="text">点击 “注册新账号” 即表示您同意并遵守lion<a class="link-text" href="#/userText">用户协议</a>和<a class="link-text" href="#/protocolText">隐私政策</a></p>-->
  127. </form>
  128. </div>
  129. </div>
  130. <!-- <div class="dm-date-picker" data-dateok="{{dateok}}" okcallback="enabledBook(day)" notokcallback="disabledBook(day)"></div> -->
  131. </ion-content>
  132. <div ng-if="isWechat" ng-show="showMessage" class="container">
  133. <div class="message-box" style="height: 45px; line-height:15px">{{messageTitle}}</div>
  134. </div>
  135. </ion-view>
  136. <style>
  137. @media screen and (min-width:900px){
  138. .web-style{
  139. position: absolute ;
  140. width: 50% !important;
  141. top: 0;
  142. left: 0;
  143. right: 0;
  144. bottom: 0;
  145. margin: auto;
  146. height: 100%;
  147. overflow: hidden;
  148. margin-top:30px;
  149. }
  150. .scroll-content .scroll{
  151. width:65% !important;
  152. }
  153. }
  154. </style>