register.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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">Create your account</h1>
  7. </div>
  8. <ion-content has-bouncing="true" overflow-scroll="true" id="new_register" style="background-color:#ffffff;"
  9. class="has-header web-style">
  10. <div ng-if="defaultLan == 'Chinese'"
  11. style="display:flex;justify-content: center;align-items: center;height: 138px;">
  12. <!-- <img ng-src="{{titleLogo}}" width="65%" height="31" style="display: block;margin:50px auto 53px" /> -->
  13. <span class="loginLogo">欢迎加入</span>
  14. </div>
  15. <div ng-if="defaultLan == 'English'"
  16. style="display:flex;justify-content: center;align-items: center;height: 138px;">
  17. <span class="loginLogo">欢迎加入</span>
  18. </div>
  19. <div class="login-mian">
  20. <div class="register-content">
  21. <form name="form" novalidate="novalidate">
  22. <div class="input-wrap row row-center reg" ng-class="{warn:form.tel.$dirty&&form.tel.$error.required}">
  23. <label ng-if="defaultLan == 'Chinese'" class="left-icon-wrap">
  24. 手机号
  25. </label>
  26. <label ng-if="defaultLan == 'English'" class="left-icon-wrap">
  27. Mobile Phone
  28. </label>
  29. <input type="tel" class="col login-input " name="tel" ng-model="user.name" ng-minlength="11"
  30. ng-maxlength="11" required ng-pattern="/1[3|4|5|7|8|9][0-9]{9}/" ng-focus />
  31. <span class="login_pep"></span>
  32. </div>
  33. <div style="width: 100%; height: 20px; position: absolute;top:55px;">
  34. <span ng-if="(form.tel.$invalid&&form.tel.$dirty &&!form.tel.$focused) || (form.tel.$invalid && submitted )"
  35. class="tel_error">
  36. <!--//验证1-->
  37. <small ng-if="form.tel.$error.required && defaultLan == 'Chinese'">*请输入手机号</small>
  38. <small ng-if="form.tel.$error.required && defaultLan == 'English'">*Please enter mobile phone</small>
  39. <!--//验证2-->
  40. <small ng-if="form.tel.$error.pattern && defaultLan == 'Chinese'">*请填写正确的手机号</small>
  41. <small ng-if="form.tel.$error.pattern && defaultLan == 'English'">*Please enter correct mobile
  42. phone</small>
  43. <!--//验证3-->
  44. <small ng-if="form.tel.$error.maxlength && defaultLan == 'Chinese'">手机号不能多于11位</small>
  45. <small ng-if="form.tel.$error.maxlength && defaultLan == 'English'">Mobile phone number cannot be more
  46. than 11 digits</small>
  47. </span>
  48. </div>
  49. <div class="input-wrap row row-center mt-20 reg"
  50. ng-class="{warn:form.password.$dirty&&form.password.$error.required}" ng-focus="input_focus()">
  51. <label ng-if="defaultLan == 'Chinese'" class="left-icon-wrap re_password">
  52. 密码
  53. </label>
  54. <label ng-if="defaultLan == 'English'" class="left-icon-wrap re_password">Password</label>
  55. <input type="{{show_psd ? 'text' : 'password'}}" class="col login-input" name="password"
  56. ng-model="user.password" id="password" required ng-focus
  57. ng-pattern="/^(?=.*?[0-9])(?=.*?[a-z])[0-9a-z]{7,}$/" ng-maxlength="20" ng-minlength="7" />
  58. <button class="psd-control" ng-click="showPassword()">
  59. <i class="icon {{show_psd ? 'ion-ios-unlocked-outline' : 'ion-ios-locked-outline'}} "
  60. style="font-size: 26px;"></i>
  61. </button>
  62. <!-- <button class="psd-control" ng-click="showPassword()">
  63. <i class="icon {{show_psd ? 'icon-psddisvisiable' : 'icon-psdvisiable'}} " ></i>
  64. </button>-->
  65. </div>
  66. <div style="width: 100%; height: 20px; position: absolute;top:125px;text-align: center">
  67. <span class="tel_error"
  68. ng-if="(form.password.$invalid && form.password.$dirty && !form.password.$focused) || (form.password.$invalid && submitted)">
  69. <small ng-if="defaultLan == 'Chinese'&& form.password.$error.pattern">密码不能少于8位,必须包含字母、特殊字符、阿拉伯数字</small>
  70. <small ng-if="defaultLan == 'English' && form.password.$error.pattern">The password cannot be less than 6
  71. characters and must contain letters and Arabic numbers</small>
  72. <small ng-if="form.password.$error.maxlength && defaultLan == 'Chinese'">密码不能多于20位</small>
  73. <small ng-if="form.password.$error.maxlength && defaultLan == 'English'">Password cannot be more than 20
  74. digits</small>
  75. <small ng-if="form.password.$error.required && defaultLan == 'Chinese'">密码不能为空</small>
  76. <small ng-if="form.password.$error.required && defaultLan == 'English'">Password cannot be empty</small>
  77. </span>
  78. </div>
  79. <div class="input-wrap row row-center mt-20 reg"
  80. ng-class="{warn:(form.repeat_password.$dirty&&form.repeat_password.$error.required )||(form.repeat_password.$dirty&&repeat_password!=password)}"
  81. ng-focus="input_focus()">
  82. <label ng-if="defaultLan == 'Chinese'" class="left-icon-wrap">
  83. 确认密码
  84. </label>
  85. <label ng-if="defaultLan == 'English'" class="left-icon-wrap">
  86. Confirm Password
  87. </label>
  88. <input type="{{show_psd1 ? 'text' : 'password'}}" class="col login-input" ng-model="user.repeat_password"
  89. name="repeat_password" ng-focus ng-maxlength="20" ng-minlength="6" id="repeat_password"
  90. ng-pattern="/^(?=.*?[0-9])(?=.*?[a-z])[0-9a-z]{7,}$/" required pw-check="password" />
  91. <button class="psd-control" ng-click="showPassword1()">
  92. <i class="icon {{show_psd1 ? 'ion-ios-unlocked-outline' : 'ion-ios-locked-outline'}} "
  93. style="font-size: 26px;"></i>
  94. </button>
  95. </div>
  96. <div style="width: 100%; height: 20px; position: absolute;top:197px;text-align: center">
  97. <span class="tel_error"
  98. ng-if="(form.repeat_password.$invalid && form.repeat_password.$dirty && !form.repeat_password.$focused) || (form.repeat_password.$invalid && submitted)">
  99. <small ng-if="defaultLan == 'Chinese'&& form.repeat_password.$error.pattern">密码不能少于8位,必须包含字母与阿拉伯数字</small>
  100. <small ng-if="defaultLan == 'English' && form.repeat_password.$error.pattern">The password cannot be less
  101. than 6 characters and must contain letters and Arabic numbers</small>
  102. <small ng-if="form.repeat_password.$error.maxlength && defaultLan == 'Chinese'">*密码不能多于20位</small>
  103. <small ng-if="form.repeat_password.$error.required && defaultLan == 'Chinese'">*密码不能为空</small>
  104. <small ng-if="form.repeat_password.$error.maxlength && defaultLan == 'English'">*Password cannot be more
  105. than 20 digits</small>
  106. <small ng-if="form.repeat_password.$error.required && defaultLan == 'English'">*Password cannot be
  107. empty</small>
  108. </span>
  109. <span class="tel_error" ng-if="form.repeat_password.$valid">
  110. <small ng-if="user.repeat_password!=user.password && defaultLan == 'Chinese'">*密码和确认密码不一致!!</small>
  111. <small ng-if="user.repeat_password!=user.password && defaultLan == 'English'">*Password and confirm
  112. password are inconsistent</small>
  113. </span>
  114. </div>
  115. <!--<div class="input-wrap row row-center mt-20 reg">
  116. <label class="left-icon-wrap">
  117. 验证码
  118. </label>
  119. <input type="text" class="col login-input" placeholder="输入6位验证码">
  120. <button class="psd-control" style="width: 25%; border: none;background-color:#fff;border-left:1px solid #56c8f2;height:50%;line-height: 50%;">
  121. <div class="button-verification-code">
  122. 获取验证码
  123. </div>
  124. </button>
  125. </div>-->
  126. <!-- <p class="text">如果您未接收到验证码,请检查手机是否设置短信拦截</p>-->
  127. <div class=" text-left" style="width: 100%;padding: 10px;text-align: center;" ng-if="defaultLan == 'Chinese'">
  128. <span ng-click="readCommition()" ng-class="{'submit-mark':true,'bg-blue':readCommit}">
  129. <i class="icon ion-checkmark-round"></i>
  130. </span>
  131. <span>同意接受</span>
  132. <span style="color: blue" ng-click="showRegistePolicy()">《平台注册协议》</span>
  133. <span>及</span>
  134. <span style="color: blue" ng-click="showPrivacyPolicy()">《平台隐私政策》</span>
  135. </div>
  136. <div style="width: 100%; height: 20px;color: red;font-size: 12px;padding: 10px;text-align: center"
  137. ng-if="defaultLan == 'Chinese'&&readCommit==false&&form.tel.$dirty&&form.password.$dirty&&form.repeat_password.$dirty&&form.repeat_password.$valid&&form.password.$valid&&form.tel.$valid&&user.repeat_password==user.password">
  138. <span>您尚未接受《平台注册协议》,请勾选后再注册!</span>
  139. </div>
  140. <div class="blank-h12"></div>
  141. <button ng-if="defaultLan == 'Chinese'"
  142. class="button button-block button-positive my_register {{register_finish}}" ng-click="register(user)"
  143. type="submit"
  144. ng-disabled="(form.tel.$pristine||form.password.$pristine||form.repeat_password.$pristine)||(form.tel.$dirty&&form.tel.$invalid )||(form.password.$dirty&& form.password.$invalid)||(form.repeat_password.$dirty&& form.repeat_password.$invalid)||(user.repeat_password!=user.password)||(readCommit== false)">
  145. 注册
  146. </button>
  147. <button ng-if="defaultLan == 'English'"
  148. class="button button-block button-positive my_register {{register_finish}}" ng-click="register(user)"
  149. type="submit"
  150. ng-disabled="
  151. (form.tel.$pristine||form.password.$pristine||form.repeat_password.$pristine)||(form.tel.$dirty&&form.tel.$invalid )||(form.password.$dirty&& form.password.$invalid)||(form.repeat_password.$dirty&& form.repeat_password.$invalid)||(user.repeat_password!=user.password)">
  152. Register
  153. </button>
  154. <!--<p class="text">点击 “注册新账号” 即表示您同意并遵守lion<a class="link-text" href="#/userText">用户协议</a>和<a class="link-text" href="#/protocolText">隐私政策</a></p>-->
  155. </form>
  156. </div>
  157. </div>
  158. <!-- <div class="dm-date-picker" data-dateok="{{dateok}}" okcallback="enabledBook(day)" notokcallback="disabledBook(day)"></div> -->
  159. </ion-content>
  160. <div ng-if="isWechat" ng-show="showMessage" class="container">
  161. <div class="message-box">{{messageTitle}}</div>
  162. </div>
  163. </ion-view>
  164. <style>
  165. @media screen and (min-width:900px) {
  166. .web-style {
  167. position: absolute;
  168. width: 50% !important;
  169. top: 0;
  170. left: 0;
  171. right: 0;
  172. bottom: 0;
  173. margin: auto;
  174. height: 100%;
  175. overflow: hidden;
  176. margin-top: 30px;
  177. }
  178. .scroll-content .scroll {
  179. width: 65% !important;
  180. }
  181. }
  182. .loginLogo {
  183. font-size: 35px;
  184. font-weight: 600;
  185. height: 40px;
  186. line-height: 40px;
  187. letter-spacing: 10px;
  188. background-image: -webkit-linear-gradient(bottom, blue, #3B8BD0, yellow);
  189. color: #3B8BD0;
  190. -webkit-background-clip: text;
  191. background-clip: text;
  192. margin: 0;
  193. }
  194. </style>