login.html 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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">Sign In</h1>
  7. </div>
  8. <ion-content has-bouncing="true" overflow-scroll="true" 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. <span class="loginLogo">欢迎登录</span>
  13. <!-- <img src="{{loginLogo}}" width="50%" height="35" style="display: block;margin:50px auto 53px" /> -->
  14. </div>
  15. <div ng-if="defaultLan == 'English'">
  16. <div style="height: 35px;background: white"> </div>
  17. </div>
  18. <div class="login-mian">
  19. <div class="login-content">
  20. <div class="blank-h12"></div>
  21. <div class="blank-h12"></div>
  22. <form name="form" novalidate="novalidate">
  23. <div class="input-wrap row row-center"
  24. style="width: 90%;border: 1px solid #ccc; height: 50px;margin: 0 auto 6px;border-radius: 4px;top: -12px;"
  25. ng-class="{warn:form.tel.$dirty&&form.tel.$error.required}">
  26. <label ng-if="defaultLan == 'Chinese'" class="left-icon-wrap">
  27. 手机号
  28. </label>
  29. <label ng-if="defaultLan == 'English'" class="left-icon-wrap">
  30. Mobile Phone
  31. </label>
  32. <input ng-if="defaultLan == 'Chinese'" type="tel" name="tel" class="col login-input" placeholder="输入手机号码"
  33. ng-model="user.name" ng-minlength="11" ng-maxlength="11" required ng-pattern="/1[3|4|5|7|8|9][0-9]{9}/"
  34. ng-focus />
  35. <input ng-if="defaultLan == 'English'" type="tel" name="tel" class="col login-input"
  36. placeholder="Please enter mobile phone" ng-model="user.name" ng-minlength="11" ng-maxlength="11" required
  37. ng-pattern="/1[3|4|5|7|8|9][0-9]{9}/" ng-focus />
  38. <span class="login_pep"></span>
  39. </div>
  40. <div style="width: 100%; height: 20px; position: absolute;top: 39px;">
  41. <span ng-if="(form.tel.$invalid&&form.tel.$dirty &&!form.tel.$focused) || (form.tel.$invalid && submitted )"
  42. class="tel_error">
  43. <!--//验证1-->
  44. <small ng-if="form.tel.$error.required && defaultLan == 'Chinese'">*请输入11位手机号</small>
  45. <small ng-if="form.tel.$error.required && defaultLan == 'English'">*Please enter 11 digit mobile
  46. phone</small>
  47. <!--//验证2-->
  48. <small ng-if="form.tel.$error.pattern && defaultLan == 'Chinese'">*请填写正确的手机号</small>
  49. <small ng-if="form.tel.$error.pattern && defaultLan == 'English'">*Please enter correct mobile
  50. phone</small>
  51. <!--//验证3-->
  52. <small ng-if="form.tel.$error.maxlength && defaultLan == 'Chinese'">手机号不能多于11位</small>
  53. <small ng-if="form.tel.$error.maxlength && defaultLan == 'English'">Mobile phone number cannot be more
  54. than 11 digits</small>
  55. </span>
  56. </div>
  57. <!--<span style="color:red" ng-if"myForm.user.$dirty && myForm.user.$invalid">
  58. <span ng-if="myForm.user.$error.required">手机号错误</span>
  59. </span>-->
  60. <div class="input-wrap row row-center mt-20"
  61. style="width: 90%;border: 1px solid #ccc !important; height: 50px;margin: 0 auto 6px;border-radius: 4px;"
  62. ng-class="{warn:form.password.$dirty&&form.password.$error.required}">
  63. <label ng-if="defaultLan == 'Chinese'" class="left-icon-wrap"
  64. style="text-align: center;padding-right: 4px;">
  65. 密码
  66. </label>
  67. <label ng-if="defaultLan == 'English'" class="left-icon-wrap"
  68. style="text-align: center;padding-right: 4px;">
  69. Password
  70. </label>
  71. <input ng-if="defaultLan == 'Chinese'" type="{{show_psd ? 'text' : 'password'}}" name="password"
  72. class="col login-input" placeholder="输入6-20位密码" ng-model="user.password"
  73. onkeyup="value=value.replace(/[^\w\.\/]/ig,'')" required ng-focus ng-maxlength="20" ng-minlength="6" />
  74. <input ng-if="defaultLan == 'English'" type="{{show_psd ? 'text' : 'password'}}" name="password"
  75. class="col login-input" placeholder="Please enter 6-20 digit password" ng-model="user.password"
  76. onkeyup="value=value.replace(/[^\w\.\/]/ig,'')" required ng-focus ng-maxlength="20" ng-minlength="6" />
  77. <button class="psd-control" ng-click="showPassword()">
  78. <i class="icon {{show_psd ? 'ion-ios-unlocked-outline' : 'ion-ios-locked-outline'}} "
  79. style="font-size: 26px;"></i>
  80. </button>
  81. </div>
  82. <div>
  83. <div style="width: 100%; height: 20px; position: absolute;top:111px;">
  84. <span class="tel_error"
  85. ng-if="(form.password.$invalid && form.password.$dirty && !form.password.$focused) || (form.password.$invalid && submitted)">
  86. <small ng-if="form.password.$error.minlength && defaultLan == 'Chinese'">*密码不能少于6位</small>
  87. <small ng-if="form.password.$error.minlength && defaultLan == 'English'">*Password cannot be less than 6
  88. digits</small>
  89. <small ng-if="form.password.$error.maxlength && defaultLan == 'Chinese'">*密码不能多于20位</small>
  90. <small ng-if="form.password.$error.maxlength && defaultLan == 'English'">*Password cannot be more than
  91. 20 digits</small>
  92. <small ng-if="form.password.$error.required && defaultLan == 'Chinese'">*密码不能为空</small>
  93. <small ng-if="form.password.$error.required && defaultLan == 'English'">*Password cannot be
  94. empty</small>
  95. </span>
  96. </div>
  97. </div>
  98. <div class="blank-h12"></div>
  99. <div class="blank-h12"></div>
  100. <button ng-if="defaultLan == 'Chinese'" class="button button-block button-positive my_login"
  101. ng-click="login(user)" type="submit"
  102. ng-disabled="(form.tel.$pristine||form.password.$pristine)||(form.tel.$dirty&&form.tel.$invalid )||(form.password.$dirty&& form.password.$invalid)"
  103. style="margin-top: 27px !important;">
  104. 登录
  105. </button>
  106. <button ng-if="defaultLan == 'English'" class="button button-block button-positive my_login"
  107. ng-click="login(user)" type="submit"
  108. ng-disabled="(form.tel.$pristine||form.password.$pristine)||(form.tel.$dirty&&form.tel.$invalid )||(form.password.$dirty&& form.password.$invalid)"
  109. style="margin-top: 27px !important;">
  110. Sign In
  111. </button>
  112. </form>
  113. <div style="" id="login_text">
  114. <div ng-if="defaultLan == 'Chinese'" class=" text-left" style="width: 49%;margin: 0 auto;">
  115. <a class="forget-passw" ng-click="registerHideModel(1)" style="float: left">忘记密码</a>
  116. <a class="forget-passw" ng-click="registerHideModel(2)" style="float: right">立即注册</a>
  117. </div>
  118. <div ng-if="defaultLan == 'English'" class=" text-left" style="width: 49%;margin: 0 auto;text-align: center;">
  119. <a class="forget-passw" ng-click="registerHideModel(1)">Forget the password</a>
  120. <a class="forget-passw" ng-click="registerHideModel(2)">Create an account</a>
  121. </div>
  122. <!--<div class=" text-right" style="width: 50%;float: left;">
  123. <a class="forget-passw" ui-sref="findpsw">忘记密码?</a>
  124. </div>-->
  125. </div>
  126. </div>
  127. <!--<div class="other_act">
  128. <i class="line_hide"></i>
  129. </div>-->
  130. <!-- <p class="other_loge">
  131. <span class="t1"></span>
  132. <span class="t2"></span>
  133. <span class="t3"></span>
  134. </p>-->
  135. </div>
  136. <p class="text-center qq_login" ng-if="defaultLan == 'Chinese'">
  137. <!--<small class="other_load">第三方账号登录</small>-->
  138. <span ng-click="wechatLogin()" style="margin-top: 10px;" ng-show="app"><i
  139. class="weChat_login"></i><em>微信登录</em></span>
  140. <!--<span ng-click="qqLogin()" style="margin-top: 10px;"><i></i><em>QQ登录</em></span>-->
  141. </p>
  142. <div style="width: 100%;text-align: center;position: absolute;margin-top: 10px"
  143. ng-if="app==true&&defaultLan == 'Chinese'">
  144. <span>登录即代表您已经同意</span>
  145. <span style="color: blue" ng-click="showPrivacyPolicy()">《平台隐私政策》</span>
  146. </div>
  147. </ion-content>
  148. </ion-view>
  149. <style>
  150. @media screen and (min-width:900px) {
  151. .web-style {
  152. position: absolute;
  153. width: 50% !important;
  154. top: 0;
  155. left: 0;
  156. right: 0;
  157. bottom: 0;
  158. margin: auto;
  159. height: 100%;
  160. overflow: hidden;
  161. margin-top: 30px;
  162. }
  163. .scroll-content .scroll {
  164. width: 65% !important;
  165. }
  166. }
  167. .loginLogo {
  168. font-size: 35px;
  169. font-weight: 600;
  170. height: 40px;
  171. line-height: 40px;
  172. letter-spacing: 10px;
  173. background-image: -webkit-linear-gradient(bottom, blue, #3B8BD0, yellow);
  174. color: #3B8BD0;
  175. -webkit-background-clip: text;
  176. background-clip: text;
  177. margin: 0;
  178. }
  179. </style>