LoginBar.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896
  1. <script>
  2. import qs from 'qs'
  3. import { mapActions } from 'vuex'
  4. import { setToken } from '~/utils/cookie';
  5. export default {
  6. data() {
  7. const regPhone = /^1[3456789]\d{9}$/
  8. const regEmail = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/
  9. return {
  10. form: {
  11. username:'',
  12. password:''
  13. },
  14. forgetForm: {
  15. account:'',
  16. code: '',
  17. key:''
  18. },
  19. resetForm: {
  20. newPassword: '',
  21. confirm_newPassword: '',
  22. verifyCode: '',
  23. type: '1'
  24. },
  25. receiver:'',
  26. checked:true,
  27. logging:false,
  28. interfaceStatus: 'login',
  29. forgetPswErrTip: '',
  30. codeImg:'',
  31. sending: false,
  32. clock: 60,
  33. resetPswTip:'',
  34. regEmail,
  35. regPhone,
  36. loginError: false
  37. }
  38. },
  39. computed: {
  40. loginBtnDisabled() {
  41. return !(this.form.username && this.form.password && this.form.password.length >= 6)
  42. },
  43. forgetDisabled() {
  44. return !(this.forgetForm.account && this.forgetForm.code)
  45. }
  46. },
  47. mounted() {
  48. if(localStorage.getItem('username')) {
  49. this.form.username = localStorage.getItem('username')
  50. this.form.password = localStorage.getItem('password')
  51. }
  52. },
  53. methods: {
  54. ...mapActions(['login']),
  55. handlerLogin() {
  56. this.logging = true
  57. this.loginError = false
  58. this.$axios.post('login',qs.stringify(this.form)).then((res)=> {
  59. if(res.code === 200) {
  60. this.$store.dispatch('login',res.result).then((token)=> {
  61. this.$axios.setToken(token, 'Bearer')
  62. localStorage.setItem('token',token)
  63. if(this.checked) {
  64. localStorage.setItem('username',this.form.username)
  65. localStorage.setItem('password',this.form.password)
  66. }else {
  67. localStorage.removeItem('username',this.form.username)
  68. localStorage.removeItem('password',this.form.password)
  69. this.form.username = ''
  70. this.form.password = ''
  71. }
  72. this.handlerClose()
  73. this.getUserInfo()
  74. })
  75. } else {
  76. this.loginError = true
  77. }
  78. })
  79. .finally(()=> {this.logging = false})
  80. },
  81. getUserInfo() {
  82. this.$axios.get('members/getMemberInfo').then((res)=> {
  83. if(res.code === 200) {
  84. this.$store.commit('setUser',res.result.memberInfo)
  85. setToken('vuex',JSON.stringify(res.result.memberInfo))
  86. this.logging = false
  87. this.$emit('loginSucess')
  88. }
  89. })
  90. },
  91. handlerForgetPsw() {
  92. this.interfaceStatus = 'forgetPsw'
  93. this.handleGetVcodeImage()
  94. },
  95. // 手机号码发送验证码
  96. handlePostCode() {
  97. if(this.sending) return
  98. const params = {
  99. action: '1', // 找回密码
  100. receiver: this.forgetForm.account
  101. }
  102. if(this.regPhone.test(this.forgetForm.account)) params.type = '1'
  103. if(this.regEmail.test(this.forgetForm.account)) params.type = '0'
  104. this.$axios.get('auth/getVerifyCode', {params}).then((res)=> {
  105. if(res.code === 200) {
  106. this.sending = true
  107. let interval = setInterval(() => {
  108. this.clock--
  109. if(this.clock === 0) {
  110. clearInterval(interval)
  111. interval = null
  112. this.clock = 60
  113. this.sending = false
  114. }
  115. }, 1000);
  116. }
  117. })
  118. },
  119. // 获取二维码图片
  120. handleGetVcodeImage() {
  121. const params = {
  122. width: '140',
  123. height: '46',
  124. codeCount: '6',
  125. lineCount: '1',
  126. type: 'forget_password'
  127. }
  128. this.$axios.get('/auth/getImageCode',{params,responseType: 'arraybuffer'}).then((res)=> {
  129. this.codeImg = 'data:image/png;base64,' + btoa(
  130. new Uint8Array(res.data).reduce((data, byte) => data + String.fromCharCode(byte), '')
  131. )
  132. this.forgetForm.key = res.headers['x-auth-token']
  133. })
  134. },
  135. resetInterfaceStatus() {
  136. this.forgetForm.account = ''
  137. this.forgetForm.code = ''
  138. this.forgetPswErrTip = ''
  139. this.resetPswTip = ''
  140. this.resetForm.newPassword = ''
  141. this.resetForm.confirm_newPassword = ''
  142. this.resetForm.verifyCode = ''
  143. this.resetForm.forgetPswErrTip = ''
  144. setTimeout(() => {
  145. this.interfaceStatus = 'login'
  146. }, 500);
  147. },
  148. // 切换注册页面
  149. handlerRegister() {
  150. this.$emit('register','register')
  151. },
  152. // 重置密码验证
  153. handlerResetPsw() {
  154. if(!this.regPhone.test(this.forgetForm.account) && !this.regEmail.test(this.forgetForm.account)) {
  155. this.forgetPswErrTip = '请输入正确的邮箱或手机号码'
  156. return
  157. }
  158. this.logging = true
  159. this.$axios.post('auth/checkExist',qs.stringify(this.forgetForm)).then((res)=> {
  160. if(res.code === 200) {
  161. if(this.regPhone.test(this.forgetForm.account)) {
  162. this.interfaceStatus = 'resetPhonePsw'
  163. }
  164. if(this.regEmail.test(this.forgetForm.account)) {
  165. this.postEmail()
  166. }
  167. }else if(res.data && res?.data?.code !== 200){
  168. this.forgetPswErrTip = res.data.msg
  169. this.handleGetVcodeImage()
  170. } else {
  171. this.forgetPswErrTip = res.msg
  172. this.handleGetVcodeImage()
  173. }
  174. }).finally(()=> {
  175. this.logging = false
  176. })
  177. },
  178. // 邮箱找回密码,发送邮箱
  179. postEmail() {
  180. const params = {
  181. action: '1',
  182. type: '0',
  183. receiver: this.forgetForm.account
  184. }
  185. this.$axios.get('auth/getVerifyCode', {params}).then((res) => {
  186. if(res.code === 200 ) {
  187. this.interfaceStatus = 'resetEmailPsw'
  188. }
  189. })
  190. },
  191. handlerConfirmReset() {
  192. if(this.resetForm.newPassword !== this.resetForm.confirm_newPassword) {
  193. this.resetPswTip = '两次输入的密码不一致'
  194. }else if(this.resetForm.newPassword.length < 6) {
  195. this.resetPswTip = '密码位数不能少于6位'
  196. }else if(this.resetForm.newPassword.charCodeAtlength> 16){
  197. this.resetPswTip = '密码位数不能大于16位'
  198. }else {
  199. this.resetPswTip = ''
  200. this.submitReset()
  201. }
  202. },
  203. submitReset() {
  204. this.resetForm.account = this.forgetForm.account
  205. this.$axios.post('members/resetPassword', this.resetForm).then((res)=> {
  206. if(res.code === 200) {
  207. this.$message.success('修改成功')
  208. this.handlerClose()
  209. }
  210. if(res.data && res?.data?.code !== 200){
  211. this.resetPswTip = res.data.msg
  212. }
  213. })
  214. },
  215. handlerClose() {
  216. this.$emit('close')
  217. },
  218. changeForgetPswErrTip(){
  219. this.forgetPswErrTip = ''
  220. }
  221. }
  222. }
  223. </script>
  224. <template>
  225. <div>
  226. <!-- 登录 -->
  227. <div v-if="interfaceStatus === 'login'" class="user-login">
  228. <div class="logo">
  229. <h4 class="logo_PDF"></h4>
  230. </div>
  231. <div class="login_content relative">
  232. <div class="login_input_user_span w-20px h-20px absolute top-30px left-34px"></div>
  233. <input id="account" v-model="form.username" class="login_input_user account" type="text" placeholder="邮箱/手机号">
  234. <br />
  235. <div class="login_input_password_span w-20px h-20px absolute top-90px left-34px"></div>
  236. <input id="pwd" v-model="form.password" class="login_input_password pwd" type="password" placeholder="密码">
  237. <br />
  238. <div class="forget-password">
  239. <span class="pwd-container">
  240. <input v-model="checked" id="rememberMe" type="checkbox" class="remember_pass align-text-bottom">
  241. <label for="rememberMe">记住密码</label>
  242. </span>
  243. <span class="right">
  244. <a class="forgotpwd cursor-pointer" @click="handlerForgetPsw">忘记密码?</a>
  245. </span>
  246. </div>
  247. <div v-show="loginError" class="error-mess">
  248. <span id="error-message error-tip">账号或密码错误</span>
  249. </div>
  250. <div class="tips">
  251. <span>只有QQ/微信账号,如何进行网页登录</span>
  252. <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
  253. <path fill-rule="evenodd" clip-rule="evenodd" d="M0 7C0 10.866 3.13414 14 7 14C10.866 14 14 10.866 14 7C14 3.134 10.866 0 7 0C3.13414 0 0 3.13414 0 7ZM0.950469 7C0.950469 3.659 3.659 0.950469 7 0.950469C10.341 0.950469 13.0495 3.659 13.0495 7C13.0495 10.3411 10.3411 13.0495 7 13.0495C3.65887 13.0495 0.950469 10.3411 0.950469 7ZM5.42094 4.11538C5.82657 3.70192 6.38673 3.5 7.10141 3.5C7.71951 3.5 8.22172 3.66346 8.60803 4.00962C8.99434 4.34615 9.1875 4.80769 9.1875 5.38462C9.1875 5.85577 9.06195 6.25 8.8205 6.55769C8.73358 6.66346 8.46316 6.91346 8.00924 7.30769C7.82575 7.46154 7.69054 7.63462 7.60361 7.80769C7.49738 8 7.44909 8.21154 7.44909 8.44231V8.60577H6.4157V8.44231C6.4157 8.08654 6.47365 7.77885 6.60886 7.52885C6.73441 7.25962 7.10141 6.86538 7.70019 6.33654L7.86438 6.15385C8.03822 5.93269 8.1348 5.70192 8.1348 5.45192C8.1348 5.11539 8.03822 4.85577 7.85472 4.66346C7.66156 4.47115 7.38148 4.375 7.0338 4.375C6.5992 4.375 6.28049 4.50962 6.08733 4.78846C5.91349 5.01923 5.82657 5.34615 5.82657 5.76923H4.8125C4.8125 5.06731 5.01532 4.51923 5.42094 4.11538ZM6.42536 9.31731C6.56057 9.18269 6.73441 9.125 6.92757 9.125C7.13038 9.125 7.30422 9.18269 7.43943 9.31731C7.57464 9.44231 7.64225 9.60577 7.64225 9.80769C7.64225 10.0096 7.56498 10.1731 7.42977 10.3077C7.29456 10.4327 7.12072 10.5 6.92757 10.5C6.73441 10.5 6.56057 10.4327 6.42536 10.2981C6.29015 10.1635 6.22254 10 6.22254 9.80769C6.22254 9.60577 6.29015 9.44231 6.42536 9.31731Z" fill="currentColor"/>
  254. </svg>
  255. <div class="tips-content">
  256. <div><span>1.&nbsp;</span>APP端绑定手机号:我的 - 账户绑定</div>
  257. <div><span>2.&nbsp;</span>网页登录,输入手机号,点击忘记密码,进行账号密码设置,登录账号</div>
  258. </div>
  259. </div>
  260. <button id="btn-login" type="submit" class="logging" :class="{'btn-signin': loginBtnDisabled}"
  261. :disabled="loginBtnDisabled" @click="handlerLogin">登录</button>
  262. <div v-show="logging" class="loading"></div>
  263. <div class="register-now">
  264. <span>还没有帐号?</span>
  265. <span class="switch_signup">
  266. <a class="cursor-pointer" @click="handlerRegister">注册</a>
  267. </span>
  268. </div>
  269. </div>
  270. </div>
  271. <!-- 忘记密码 -->
  272. <div v-if="interfaceStatus === 'forgetPsw'" class="user-forget">
  273. <div class="changepwd-tittle">
  274. <p>找回账号密码</p>
  275. </div>
  276. <div class="getbackpwd_content relative">
  277. <div class="getbackpwd_input_user_span w-20px h-20px absolute top-30px left-34px"></div>
  278. <input v-model="forgetForm.account" class="getbackpwd_input_user account" type="text" placeholder="邮箱/手机号" >
  279. <!-- 用这个password接收密码 -->
  280. <input class="hidden" type="password">
  281. <br />
  282. <input v-model="forgetForm.code" class="getbackpwd_input_vcode" type="text" placeholder="验证码" @input="changeForgetPswErrTip">
  283. <img :src="codeImg" class="mt-10px cursor-pointer" @click="handleGetVcodeImage">
  284. <br />
  285. <div v-if=" !!forgetPswErrTip " class="error-mess">
  286. <span id="error-message error-tip">{{forgetPswErrTip}}</span>
  287. </div>
  288. <button id="btn-validate" type="submit" class="validate" :class="{'now_validate': forgetDisabled}" @click="handlerResetPsw">立即验证
  289. </button>
  290. <div v-show="logging" class="loading"></div>
  291. </div>
  292. </div>
  293. <!-- 重置手机密码 -->
  294. <div v-if="interfaceStatus === 'resetPhonePsw'" class="phone-reset">
  295. <div class="changepwd-tittle">
  296. <p>手机验证</p>
  297. </div>
  298. <div class="getbackpwd_content setnewpwd relative">
  299. <p class="phone_num mb-5px">{{forgetForm.account}}</p>
  300. <div class="mobilevali relative">
  301. <div class="getbackpwd_input_vcodes_span w-20px h-20px absolute top-30px left-34px"></div>
  302. <input v-model="resetForm.verifyCode" class="getbackpwd_input_vcodes input_vcode_conform " placeholder="验证码" type="text">
  303. <span class="sent-vcode sent-vcode-getbackpwd" :class="{'sent-vcode-disabled': sending}" @click="handlePostCode"><a>{{sending ? clock+'秒' : '发送验证码'}}</a></span>
  304. <!-- 用这个password接收密码 -->
  305. <input class="hidden" type="password">
  306. </div>
  307. <br />
  308. <p class="mb-5px">设置新密码</p>
  309. <div class="getbackpwd_input_pwd_span w-20px h-20px absolute top-185px left-34px"></div>
  310. <input v-model="resetForm.newPassword" class="getbackpwd_input_pwd input_newpwd" type="password" value="" placeholder="新密码(6-16个字符,区分大小写)">
  311. <br />
  312. <div class="getbackpwd_input_pwd_span w-20px h-20px absolute top-245px left-34px"></div>
  313. <input v-model="resetForm.confirm_newPassword" class="getbackpwd_input_pwd input_newpwd_conform" type="password" placeholder="确认新密码">
  314. <br />
  315. <div v-if="resetPswTip !== ''" class="error-mess">
  316. <span id="error-message error-tip">{{resetPswTip}}</span>
  317. </div>
  318. <button id="btn-validate-conform" type="submit" class="validate" @click="handlerConfirmReset">确认
  319. </button>
  320. <div class="loading"></div>
  321. </div>
  322. </div>
  323. <!-- 重置邮箱密码 -->
  324. <div v-if="interfaceStatus === 'resetEmailPsw'" class="user-reset">
  325. <div class="changepwd-tittle">
  326. <p>邮箱验证</p>
  327. </div>
  328. <div class="prompt-content">
  329. <p>重置密码的链接已被发送到您的邮箱,请在30分钟内前往你的邮箱查收邮件以重置密码。</p>
  330. </div>
  331. </div>
  332. </div>
  333. </template>
  334. <style lang="scss">
  335. .user-login {
  336. margin-top:35px;
  337. .logo {
  338. width: 96px;
  339. height: 96px;
  340. border-radius: 96px;
  341. text-align: center;
  342. background-color: rgb(255, 255, 255);
  343. position: absolute;
  344. top: -48px;
  345. left: 50%;
  346. margin-left: -48px;
  347. .logo_PDF {
  348. width: 80px;
  349. height: 80px;
  350. position: absolute;
  351. top: 8px;
  352. margin-left: 8px;
  353. background: url(http://cn-file.17pdf.com/website/index/logo_pdf.png) no-repeat 50%;
  354. background-size: 100%;
  355. }
  356. }
  357. .login_content {
  358. text-align: center;
  359. font-size: 14px;
  360. margin-top: -40px;
  361. .error-mess {
  362. position: relative;
  363. font-size: 14px;
  364. span{
  365. display: inline-block;
  366. background: #808080;
  367. color: rgb(255, 255, 255);
  368. padding: 5px 15px;
  369. border-radius: 4px;
  370. }
  371. }
  372. .error-mess-signup {
  373. position: initial;
  374. clear: both;
  375. margin-top: 15px;
  376. }
  377. // input:focus {
  378. // outline: none;
  379. // border-color: rgb(233, 54, 54);
  380. // }
  381. // input:checked{
  382. // background: url(http://cn-file.17pdf.com/website/index/ic_checkbox_selected.png) no-repeat 0px 0px;
  383. // }
  384. .login_input_user {
  385. height: 60px;
  386. width: 360px;
  387. border-width: 0 0 1px 0;
  388. border-color: rgb(238, 238, 238);
  389. padding-left: 42px;
  390. padding-top: 16px;
  391. line-height: 44px;
  392. outline:none;
  393. // background: url(http://cn-file.17pdf.com/website/account/ic_login_inputuser.png) no-repeat 0px 28px;
  394. }
  395. .login_input_user_span {
  396. background: url(http://cn-file.17pdf.com/website/account/ic_login_inputuser.png) no-repeat;
  397. }
  398. .login_input_user:-webkit-autofill {
  399. box-shadow: 0 0 0px 1000px white inset;
  400. }
  401. .login_input_password {
  402. height: 60px;
  403. width: 360px;
  404. border-width: 0 0 1px 0;
  405. border-color: rgb(238, 238, 238);
  406. padding-left: 42px;
  407. padding-top: 16px;
  408. line-height: 44px;
  409. outline:none;
  410. // background:url(http://cn-file.17pdf.com/website/account/ic_login_inputpassword.png) no-repeat 0px 28px;
  411. }
  412. .login_input_password_span{
  413. background:url(http://cn-file.17pdf.com/website/account/ic_login_inputpassword.png) no-repeat
  414. }
  415. .login_input_password:-webkit-autofill {
  416. box-shadow: 0 0 0px 1000px white inset;
  417. }
  418. .vcode_content {
  419. // display: none;
  420. padding: 0px 36px;
  421. height: 60px;
  422. .input_vcode_signup {
  423. height: 60px;
  424. width: 220px;
  425. border-width: 0 0 1px 0;
  426. border-color: rgb(238, 238, 238);
  427. padding-left: 42px;
  428. padding-top: 16px;
  429. line-height: 44px;
  430. float: left;
  431. background: url(http://cn-file.17pdf.com/website/account/ic_login_input_code.png) no-repeat 0px 28px;
  432. outline: none;
  433. }
  434. .sent-vcode-disabled {
  435. border: 1px solid rgb(153, 153, 153) !important;
  436. a {
  437. color: rgb(153, 153, 153) !important;
  438. }
  439. }
  440. .sent-vcode {
  441. border: 1px solid rgb(255, 79, 79);
  442. border-radius: 3px;
  443. padding: 10px 20px;
  444. margin-left: 10px;
  445. cursor:pointer;
  446. margin-top: 10px;
  447. float: right;
  448. width: 120px;
  449. a {
  450. color: rgb(255, 79, 79);
  451. }
  452. }
  453. }
  454. .new {
  455. background: url(http://cn-file.17pdf.com/website/account/ic_lock_new.png) no-repeat 0px 28px;
  456. }
  457. .confirm {
  458. background: url(http://cn-file.17pdf.com/website/account/ic_lock_sure.png) no-repeat 0px 28px;
  459. }
  460. .forget-password {
  461. display: flex;
  462. justify-content: space-between;
  463. align-items: center;
  464. margin-top: 21px;
  465. padding: 0px 60px;
  466. font-size: 12px;
  467. color: rgb(102, 102, 102);
  468. input {
  469. margin: 0;
  470. }
  471. .left {
  472. display: flex;
  473. align-items: center;
  474. label{
  475. margin: 0 0 0 5px;
  476. color: rgb(153, 153, 153);
  477. font-weight: normal;
  478. }
  479. }
  480. .right {
  481. a {
  482. color: rgb(153, 153, 153);
  483. &:hover {
  484. text-decoration: none;
  485. color: rgb(255, 79, 79);
  486. }
  487. }
  488. }
  489. }
  490. .tips {
  491. position: relative;
  492. display: flex;
  493. justify-content: center;
  494. align-items: center;
  495. font-size: 14px;
  496. line-height: 20px;
  497. text-align: center;
  498. color: #999999;
  499. margin-top: 30px;
  500. margin-bottom: 20px;
  501. cursor: default;
  502. svg {
  503. margin-left: 5px;
  504. }
  505. &:hover {
  506. .tips-content {
  507. display: block;
  508. }
  509. color: #FF4F4F;
  510. }
  511. .tips-content {
  512. display: none;
  513. position: absolute;
  514. left: 50%;
  515. bottom: 30px;
  516. transform: translateX(-50%);
  517. width: 250px;
  518. padding: 15px 4px 25px 13px;
  519. background: url('~/assets/images/common/tip_bg.svg') center bottom no-repeat;
  520. border-radius: 4px;
  521. text-align: left;
  522. div {
  523. display: flex;
  524. font-size: 12px;
  525. line-height: 14px;
  526. color: #FFFFFF;
  527. & + div {
  528. margin-top: 9px;
  529. }
  530. }
  531. }
  532. }
  533. .logging {
  534. width: 360px;
  535. height: 48px;
  536. font-size: 16px;
  537. color: rgb(255, 255, 255);
  538. border: none;
  539. background-color: rgb(255, 79, 79);
  540. margin-bottom: 20px;
  541. border-radius: 4px;
  542. outline:none;
  543. }
  544. .btn-signup{
  545. background-color: rgb(204,204,204);
  546. }
  547. .btn-signin{
  548. background-color: rgb(204,204,204);
  549. }
  550. .login {
  551. background-color: rgb(204, 204, 204);
  552. }
  553. .loading {
  554. border: 3px solid #fff;
  555. border-bottom: 3px solid rgb(204, 204, 204);;
  556. height: 28px;
  557. width: 28px;
  558. border-radius: 50%;
  559. position: absolute;
  560. bottom: 50px;
  561. left: 350px;
  562. -webkit-animation: loading 1s infinite linear;
  563. -moz-animation: loading 1s infinite linear;
  564. -o-animation: loading 1s infinite linear;
  565. animation: loading 1s infinite linear;
  566. @keyframes loading {
  567. 0% {
  568. transform: rotate(0deg);
  569. }
  570. 100% {
  571. transform: rotate(360deg);
  572. }
  573. }
  574. }
  575. .register-now {
  576. margin-bottom: 10px;
  577. font-size: 12px;
  578. span {
  579. color: rgb(184, 184, 184);
  580. }
  581. a {
  582. color: rgb(233, 54, 54);
  583. }
  584. }
  585. .login-now {
  586. margin: 20px 0 30px 0;
  587. font-size: 12px;
  588. .term {
  589. padding-bottom: 6px;
  590. }
  591. span {
  592. color: rgb(184, 184, 184);
  593. line-height: 16px;
  594. }
  595. a {
  596. color: rgb(233, 54, 54);
  597. }
  598. }
  599. }
  600. }
  601. .user-forget{
  602. .changepwd-tittle {
  603. color: rgb(255, 79, 79);
  604. text-align: center;
  605. p {
  606. font-size: 20px;
  607. }
  608. }
  609. .getbackpwd_content {
  610. text-align: center;
  611. padding: 0px 35px;
  612. font-size: 14px;
  613. margin-top: 40px;
  614. .mobilevali{
  615. height: 85px;
  616. }
  617. &.setnewpwd p{
  618. font-size: 18px;
  619. text-align: left;
  620. height: 20px;
  621. }
  622. p {
  623. color: rgb(102, 102, 102);
  624. font-size: 24px;
  625. }
  626. .getbackpwd_input_user {
  627. height: 60px;
  628. width: 360px;
  629. border-width: 0 0 1px 0;
  630. border-color: rgb(238, 238, 238);
  631. padding-left: 42px;
  632. padding-top: 16px;
  633. line-height: 44px;
  634. outline:none;
  635. // background: url(http://cn-file.17pdf.com/website/account/ic_login_inputuser.png) no-repeat 0px 28px;
  636. }
  637. .getbackpwd_input_user:-webkit-autofill {
  638. box-shadow: 0 0 0px 1000px white inset;
  639. }
  640. .getbackpwd_input_user_span{
  641. background: url(http://cn-file.17pdf.com/website/account/ic_login_inputuser.png) no-repeat
  642. }
  643. .getbackpwd_input_pwd {
  644. height: 60px;
  645. width: 360px;
  646. border-width: 0 0 1px 0;
  647. border-color: rgb(238, 238, 238);
  648. padding-left: 42px;
  649. padding-top: 16px;
  650. line-height: 44px;
  651. outline:none;
  652. background: url(http://cn-file.17pdf.com/website/account/ic_login_inputpassword.png) no-repeat 0px 28px;
  653. }
  654. .getbackpwd_input_vcode {
  655. height: 60px;
  656. width: 220px;
  657. border-width: 0 0 1px 0;
  658. border-color: rgb(238, 238, 238);
  659. padding-left: 42px;
  660. padding-top: 16px;
  661. line-height: 44px;
  662. float: left;
  663. outline:none;
  664. background: url(http://cn-file.17pdf.com/website/account/ic_login_input_code.png) no-repeat 0px 28px;
  665. }
  666. .sent-vcode {
  667. border: 1px solid rgb(255, 79, 79);
  668. border-radius: 3px;
  669. padding: 10px 20px;
  670. cursor:pointer;
  671. margin-left: 10px;
  672. margin-top: 10px;
  673. float: right;
  674. width: 120px;
  675. a {
  676. color: rgb(255, 79, 79);
  677. }
  678. }
  679. .sent-vcode-disabled {
  680. border: 1px solid rgb(153, 153, 153);
  681. a {
  682. color: rgb(153, 153, 153);
  683. }
  684. }
  685. .vcode-content {
  686. float: right;
  687. padding: 15px 30px 15px 0px;
  688. display: inline-block;
  689. background: url(http://cn-file.17pdf.com/website/account/path.png) no-repeat 0px 28px;
  690. a{
  691. width: 90px;
  692. color: rgb(148, 143, 141);
  693. font-size: 20px;
  694. transform: rotate(-6deg);
  695. letter-spacing: 1px;
  696. display: inline-block;
  697. &:hover, &:active {
  698. text-decoration: none;
  699. }
  700. }
  701. }
  702. .error-mess {
  703. position: relative;
  704. clear: both;
  705. top: 15px;
  706. span{
  707. background: #808080;
  708. color: rgb(255, 255, 255);
  709. padding: 5px 15px;
  710. border-radius: 4px;
  711. }
  712. }
  713. .validate {
  714. width: 360px;
  715. height: 48px;
  716. font-size: 16px;
  717. color: rgb(255, 255, 255);
  718. border: none;
  719. background-color: rgb(255,82,79);
  720. margin: 31px 0 10px 0;
  721. border-radius: 4px;
  722. outline:none;
  723. }
  724. .now_validate{
  725. background-color: rgb(204, 204, 204);
  726. }
  727. }
  728. }
  729. .phone-reset {
  730. .changepwd-tittle {
  731. color: rgb(255, 79, 79);
  732. text-align: center;
  733. p {
  734. font-size: 20px;
  735. }
  736. }
  737. .getbackpwd_content {
  738. text-align: center;
  739. font-size: 14px;
  740. .mobilevali{
  741. height: 85px;
  742. padding: 0 36px;
  743. }
  744. &.setnewpwd p{
  745. font-size: 18px;
  746. text-align: left;
  747. padding-left: 36px;
  748. height: 20px;
  749. }
  750. p {
  751. color: rgb(102, 102, 102);
  752. font-size: 24px;
  753. }
  754. .getbackpwd_input_user {
  755. height: 60px;
  756. width: 360px;
  757. border-width: 0 0 1px 0;
  758. border-color: rgb(238, 238, 238);
  759. padding-left: 42px;
  760. padding-top: 16px;
  761. line-height: 44px;
  762. outline:none;
  763. background: url(http://cn-file.17pdf.com/website/account/ic_login_inputuser.png) no-repeat 0px 28px;
  764. }
  765. .getbackpwd_input_pwd {
  766. height: 60px;
  767. width: 360px;
  768. border-width: 0 0 1px 0;
  769. border-color: rgb(238, 238, 238);
  770. padding-left: 42px;
  771. padding-top: 16px;
  772. line-height: 44px;
  773. outline:none;
  774. // background: url(http://cn-file.17pdf.com/website/account/ic_login_inputpassword.png) no-repeat 0px 28px;
  775. }
  776. .getbackpwd_input_pwd:-webkit-autofill {
  777. box-shadow: 0 0 0px 1000px white inset;
  778. }
  779. .getbackpwd_input_pwd_span{
  780. background: url(http://cn-file.17pdf.com/website/account/ic_login_inputpassword.png)
  781. }
  782. .getbackpwd_input_vcodes {
  783. height: 60px;
  784. width: 220px;
  785. border-width: 0 0 1px 0;
  786. border-color: rgb(238, 238, 238);
  787. padding-left: 42px;
  788. padding-top: 16px;
  789. line-height: 44px;
  790. float: left;
  791. outline:none;
  792. // background: url(http://cn-file.17pdf.com/website/account/ic_login_input_code.png) no-repeat 0px 28px;
  793. }
  794. .getbackpwd_input_vcodes:-webkit-autofill {
  795. box-shadow: 0 0 0px 1000px white inset;
  796. }
  797. .getbackpwd_input_vcodes_span{
  798. background: url(http://cn-file.17pdf.com/website/account/ic_login_input_code.png) no-repeat
  799. }
  800. .sent-vcode {
  801. border: 1px solid rgb(255, 79, 79);
  802. border-radius: 3px;
  803. padding: 10px 20px;
  804. margin-left: 10px;
  805. margin-top: 10px;
  806. cursor:pointer;
  807. float: right;
  808. width: 120px;
  809. a {
  810. color: rgb(255, 79, 79);
  811. }
  812. }
  813. .sent-vcode-disabled {
  814. border: 1px solid rgb(153, 153, 153);
  815. a {
  816. color: rgb(153, 153, 153);
  817. }
  818. }
  819. .vcode-content {
  820. float: right;
  821. padding: 15px 30px 15px 0px;
  822. display: inline-block;
  823. background: url(http://cn-file.17pdf.com/website/account/path.png) no-repeat 0px 28px;
  824. a{
  825. width: 90px;
  826. color: rgb(148, 143, 141);
  827. font-size: 20px;
  828. transform: rotate(-6deg);
  829. letter-spacing: 1px;
  830. display: inline-block;
  831. &:hover, &:active {
  832. text-decoration: none;
  833. }
  834. }
  835. }
  836. .error-mess {
  837. position: relative;
  838. clear: both;
  839. top: 15px;
  840. span{
  841. background: #808080;
  842. color: rgb(255, 255, 255);
  843. padding: 5px 15px;
  844. border-radius: 4px;
  845. }
  846. }
  847. .validate {
  848. width: 360px;
  849. height: 48px;
  850. font-size: 16px;
  851. color: rgb(255, 255, 255);
  852. border: none;
  853. background-color: rgb(255,82,79);
  854. margin: 31px 0 40px 0;
  855. border-radius: 4px;
  856. outline:none;
  857. }
  858. .now_validate{
  859. background-color: rgb(204, 204, 204);
  860. }
  861. }
  862. }
  863. .user-reset {
  864. .changepwd-tittle {
  865. color: rgb(255, 79, 79);
  866. text-align: center;
  867. p {
  868. font-size: 20px;
  869. }
  870. }
  871. .prompt-content {
  872. margin-top: 30px;
  873. text-align: center;
  874. padding: 0px 50px;
  875. margin-bottom: 20px;
  876. font-size: 16px;
  877. p {
  878. color: rgb(112, 112, 112);
  879. line-height: 28px;
  880. }
  881. a {
  882. color: rgb(255, 79, 79);
  883. cursor:pointer;
  884. }
  885. }
  886. }
  887. </style>