LoginBar.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901
  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. // 忘记密码错误提示
  219. changeForgetPswErrTip(){
  220. this.forgetPswErrTip = ''
  221. },
  222. //登录错误提示
  223. changeLoginTip(){
  224. this.loginError = false
  225. }
  226. }
  227. }
  228. </script>
  229. <template>
  230. <div>
  231. <!-- 登录 -->
  232. <div v-if="interfaceStatus === 'login'" class="user-login">
  233. <div class="logo">
  234. <h4 class="logo_PDF"></h4>
  235. </div>
  236. <div class="login_content relative">
  237. <div class="login_input_user_span w-20px h-20px absolute top-30px left-34px"></div>
  238. <input id="account" v-model="form.username" class="login_input_user account" type="text" placeholder="邮箱/手机号" @input = "changeLoginTip">
  239. <br />
  240. <div class="login_input_password_span w-20px h-20px absolute top-90px left-34px"></div>
  241. <input id="pwd" v-model="form.password" class="login_input_password pwd" type="password" placeholder="密码" @input = "changeLoginTip">
  242. <br />
  243. <div class="forget-password">
  244. <span class="pwd-container">
  245. <input v-model="checked" id="rememberMe" type="checkbox" class="remember_pass align-text-bottom">
  246. <label for="rememberMe">记住密码</label>
  247. </span>
  248. <span class="right">
  249. <a class="forgotpwd cursor-pointer" @click="handlerForgetPsw">忘记密码?</a>
  250. </span>
  251. </div>
  252. <div v-show="loginError" class="error-mess">
  253. <span id="error-message error-tip">账号或密码错误</span>
  254. </div>
  255. <div class="tips">
  256. <span>只有QQ/微信账号,如何进行网页登录</span>
  257. <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
  258. <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"/>
  259. </svg>
  260. <div class="tips-content">
  261. <div><span>1.&nbsp;</span>APP端绑定手机号:我的 - 账户绑定</div>
  262. <div><span>2.&nbsp;</span>网页登录,输入手机号,点击忘记密码,进行账号密码设置,登录账号</div>
  263. </div>
  264. </div>
  265. <button id="btn-login" type="submit" class="logging" :class="{'btn-signin': loginBtnDisabled}"
  266. :disabled="loginBtnDisabled" @click="handlerLogin">登录</button>
  267. <div v-show="logging" class="loading"></div>
  268. <div class="register-now">
  269. <span>还没有帐号?</span>
  270. <span class="switch_signup">
  271. <a class="cursor-pointer" @click="handlerRegister">注册</a>
  272. </span>
  273. </div>
  274. </div>
  275. </div>
  276. <!-- 忘记密码 -->
  277. <div v-if="interfaceStatus === 'forgetPsw'" class="user-forget">
  278. <div class="changepwd-tittle">
  279. <p>找回账号密码</p>
  280. </div>
  281. <div class="getbackpwd_content relative">
  282. <div class="getbackpwd_input_user_span w-20px h-20px absolute top-30px left-34px"></div>
  283. <input v-model="forgetForm.account" class="getbackpwd_input_user account" type="text" placeholder="邮箱/手机号" @input="changeForgetPswErrTip">
  284. <!-- 用这个password接收密码 -->
  285. <input class="hidden" type="password">
  286. <br />
  287. <input v-model="forgetForm.code" class="getbackpwd_input_vcode" type="text" placeholder="验证码" @input="changeForgetPswErrTip">
  288. <img :src="codeImg" class="mt-10px cursor-pointer" @click="handleGetVcodeImage">
  289. <br />
  290. <div v-if=" !!forgetPswErrTip " class="error-mess">
  291. <span id="error-message error-tip">{{forgetPswErrTip}}</span>
  292. </div>
  293. <button id="btn-validate" type="submit" class="validate" :class="{'now_validate': forgetDisabled}" @click="handlerResetPsw">立即验证
  294. </button>
  295. <div v-show="logging" class="loading"></div>
  296. </div>
  297. </div>
  298. <!-- 重置手机密码 -->
  299. <div v-if="interfaceStatus === 'resetPhonePsw'" class="phone-reset">
  300. <div class="changepwd-tittle">
  301. <p>手机验证</p>
  302. </div>
  303. <div class="getbackpwd_content setnewpwd relative">
  304. <p class="phone_num mb-5px">{{forgetForm.account}}</p>
  305. <div class="mobilevali relative">
  306. <div class="getbackpwd_input_vcodes_span w-20px h-20px absolute top-30px left-34px"></div>
  307. <input v-model="resetForm.verifyCode" class="getbackpwd_input_vcodes input_vcode_conform " placeholder="验证码" type="text">
  308. <span class="sent-vcode sent-vcode-getbackpwd" :class="{'sent-vcode-disabled': sending}" @click="handlePostCode"><a>{{sending ? clock+'秒' : '发送验证码'}}</a></span>
  309. <!-- 用这个password接收密码 -->
  310. <input class="hidden" type="password">
  311. </div>
  312. <br />
  313. <p class="mb-5px">设置新密码</p>
  314. <div class="getbackpwd_input_pwd_span w-20px h-20px absolute top-185px left-34px"></div>
  315. <input v-model="resetForm.newPassword" class="getbackpwd_input_pwd input_newpwd" type="password" value="" placeholder="新密码(6-16个字符,区分大小写)">
  316. <br />
  317. <div class="getbackpwd_input_pwd_span w-20px h-20px absolute top-245px left-34px"></div>
  318. <input v-model="resetForm.confirm_newPassword" class="getbackpwd_input_pwd input_newpwd_conform" type="password" placeholder="确认新密码">
  319. <br />
  320. <div v-if="resetPswTip !== ''" class="error-mess">
  321. <span id="error-message error-tip">{{resetPswTip}}</span>
  322. </div>
  323. <button id="btn-validate-conform" type="submit" class="validate" @click="handlerConfirmReset">确认
  324. </button>
  325. <div class="loading"></div>
  326. </div>
  327. </div>
  328. <!-- 重置邮箱密码 -->
  329. <div v-if="interfaceStatus === 'resetEmailPsw'" class="user-reset">
  330. <div class="changepwd-tittle">
  331. <p>邮箱验证</p>
  332. </div>
  333. <div class="prompt-content">
  334. <p>重置密码的链接已被发送到您的邮箱,请在30分钟内前往你的邮箱查收邮件以重置密码。</p>
  335. </div>
  336. </div>
  337. </div>
  338. </template>
  339. <style lang="scss">
  340. .user-login {
  341. margin-top:35px;
  342. .logo {
  343. width: 96px;
  344. height: 96px;
  345. border-radius: 96px;
  346. text-align: center;
  347. background-color: rgb(255, 255, 255);
  348. position: absolute;
  349. top: -48px;
  350. left: 50%;
  351. margin-left: -48px;
  352. .logo_PDF {
  353. width: 80px;
  354. height: 80px;
  355. position: absolute;
  356. top: 8px;
  357. margin-left: 8px;
  358. background: url(http://cn-file.17pdf.com/website/index/logo_pdf.png) no-repeat 50%;
  359. background-size: 100%;
  360. }
  361. }
  362. .login_content {
  363. text-align: center;
  364. font-size: 14px;
  365. margin-top: -40px;
  366. .error-mess {
  367. position: relative;
  368. font-size: 14px;
  369. span{
  370. display: inline-block;
  371. background: #808080;
  372. color: rgb(255, 255, 255);
  373. padding: 5px 15px;
  374. border-radius: 4px;
  375. }
  376. }
  377. .error-mess-signup {
  378. position: initial;
  379. clear: both;
  380. margin-top: 15px;
  381. }
  382. // input:focus {
  383. // outline: none;
  384. // border-color: rgb(233, 54, 54);
  385. // }
  386. // input:checked{
  387. // background: url(http://cn-file.17pdf.com/website/index/ic_checkbox_selected.png) no-repeat 0px 0px;
  388. // }
  389. .login_input_user {
  390. height: 60px;
  391. width: 360px;
  392. border-width: 0 0 1px 0;
  393. border-color: rgb(238, 238, 238);
  394. padding-left: 42px;
  395. padding-top: 16px;
  396. line-height: 44px;
  397. outline:none;
  398. // background: url(http://cn-file.17pdf.com/website/account/ic_login_inputuser.png) no-repeat 0px 28px;
  399. }
  400. .login_input_user_span {
  401. background: url(http://cn-file.17pdf.com/website/account/ic_login_inputuser.png) no-repeat;
  402. }
  403. .login_input_user:-webkit-autofill {
  404. box-shadow: 0 0 0px 1000px white inset;
  405. }
  406. .login_input_password {
  407. height: 60px;
  408. width: 360px;
  409. border-width: 0 0 1px 0;
  410. border-color: rgb(238, 238, 238);
  411. padding-left: 42px;
  412. padding-top: 16px;
  413. line-height: 44px;
  414. outline:none;
  415. // background:url(http://cn-file.17pdf.com/website/account/ic_login_inputpassword.png) no-repeat 0px 28px;
  416. }
  417. .login_input_password_span{
  418. background:url(http://cn-file.17pdf.com/website/account/ic_login_inputpassword.png) no-repeat
  419. }
  420. .login_input_password:-webkit-autofill {
  421. box-shadow: 0 0 0px 1000px white inset;
  422. }
  423. .vcode_content {
  424. // display: none;
  425. padding: 0px 36px;
  426. height: 60px;
  427. .input_vcode_signup {
  428. height: 60px;
  429. width: 220px;
  430. border-width: 0 0 1px 0;
  431. border-color: rgb(238, 238, 238);
  432. padding-left: 42px;
  433. padding-top: 16px;
  434. line-height: 44px;
  435. float: left;
  436. background: url(http://cn-file.17pdf.com/website/account/ic_login_input_code.png) no-repeat 0px 28px;
  437. outline: none;
  438. }
  439. .sent-vcode-disabled {
  440. border: 1px solid rgb(153, 153, 153) !important;
  441. a {
  442. color: rgb(153, 153, 153) !important;
  443. }
  444. }
  445. .sent-vcode {
  446. border: 1px solid rgb(255, 79, 79);
  447. border-radius: 3px;
  448. padding: 10px 20px;
  449. margin-left: 10px;
  450. cursor:pointer;
  451. margin-top: 10px;
  452. float: right;
  453. width: 120px;
  454. a {
  455. color: rgb(255, 79, 79);
  456. }
  457. }
  458. }
  459. .new {
  460. background: url(http://cn-file.17pdf.com/website/account/ic_lock_new.png) no-repeat 0px 28px;
  461. }
  462. .confirm {
  463. background: url(http://cn-file.17pdf.com/website/account/ic_lock_sure.png) no-repeat 0px 28px;
  464. }
  465. .forget-password {
  466. display: flex;
  467. justify-content: space-between;
  468. align-items: center;
  469. margin-top: 21px;
  470. padding: 0px 60px;
  471. font-size: 12px;
  472. color: rgb(102, 102, 102);
  473. input {
  474. margin: 0;
  475. }
  476. .left {
  477. display: flex;
  478. align-items: center;
  479. label{
  480. margin: 0 0 0 5px;
  481. color: rgb(153, 153, 153);
  482. font-weight: normal;
  483. }
  484. }
  485. .right {
  486. a {
  487. color: rgb(153, 153, 153);
  488. &:hover {
  489. text-decoration: none;
  490. color: rgb(255, 79, 79);
  491. }
  492. }
  493. }
  494. }
  495. .tips {
  496. position: relative;
  497. display: flex;
  498. justify-content: center;
  499. align-items: center;
  500. font-size: 14px;
  501. line-height: 20px;
  502. text-align: center;
  503. color: #999999;
  504. margin-top: 30px;
  505. margin-bottom: 20px;
  506. cursor: default;
  507. svg {
  508. margin-left: 5px;
  509. }
  510. &:hover {
  511. .tips-content {
  512. display: block;
  513. }
  514. color: #FF4F4F;
  515. }
  516. .tips-content {
  517. display: none;
  518. position: absolute;
  519. left: 50%;
  520. bottom: 30px;
  521. transform: translateX(-50%);
  522. width: 250px;
  523. padding: 15px 4px 25px 13px;
  524. background: url('~/assets/images/common/tip_bg.svg') center bottom no-repeat;
  525. border-radius: 4px;
  526. text-align: left;
  527. div {
  528. display: flex;
  529. font-size: 12px;
  530. line-height: 14px;
  531. color: #FFFFFF;
  532. & + div {
  533. margin-top: 9px;
  534. }
  535. }
  536. }
  537. }
  538. .logging {
  539. width: 360px;
  540. height: 48px;
  541. font-size: 16px;
  542. color: rgb(255, 255, 255);
  543. border: none;
  544. background-color: rgb(255, 79, 79);
  545. margin-bottom: 20px;
  546. border-radius: 4px;
  547. outline:none;
  548. }
  549. .btn-signup{
  550. background-color: rgb(204,204,204);
  551. }
  552. .btn-signin{
  553. background-color: rgb(204,204,204);
  554. }
  555. .login {
  556. background-color: rgb(204, 204, 204);
  557. }
  558. .loading {
  559. border: 3px solid #fff;
  560. border-bottom: 3px solid rgb(204, 204, 204);;
  561. height: 28px;
  562. width: 28px;
  563. border-radius: 50%;
  564. position: absolute;
  565. bottom: 50px;
  566. left: 350px;
  567. -webkit-animation: loading 1s infinite linear;
  568. -moz-animation: loading 1s infinite linear;
  569. -o-animation: loading 1s infinite linear;
  570. animation: loading 1s infinite linear;
  571. @keyframes loading {
  572. 0% {
  573. transform: rotate(0deg);
  574. }
  575. 100% {
  576. transform: rotate(360deg);
  577. }
  578. }
  579. }
  580. .register-now {
  581. margin-bottom: 10px;
  582. font-size: 12px;
  583. span {
  584. color: rgb(184, 184, 184);
  585. }
  586. a {
  587. color: rgb(233, 54, 54);
  588. }
  589. }
  590. .login-now {
  591. margin: 20px 0 30px 0;
  592. font-size: 12px;
  593. .term {
  594. padding-bottom: 6px;
  595. }
  596. span {
  597. color: rgb(184, 184, 184);
  598. line-height: 16px;
  599. }
  600. a {
  601. color: rgb(233, 54, 54);
  602. }
  603. }
  604. }
  605. }
  606. .user-forget{
  607. .changepwd-tittle {
  608. color: rgb(255, 79, 79);
  609. text-align: center;
  610. p {
  611. font-size: 20px;
  612. }
  613. }
  614. .getbackpwd_content {
  615. text-align: center;
  616. padding: 0px 35px;
  617. font-size: 14px;
  618. margin-top: 40px;
  619. .mobilevali{
  620. height: 85px;
  621. }
  622. &.setnewpwd p{
  623. font-size: 18px;
  624. text-align: left;
  625. height: 20px;
  626. }
  627. p {
  628. color: rgb(102, 102, 102);
  629. font-size: 24px;
  630. }
  631. .getbackpwd_input_user {
  632. height: 60px;
  633. width: 360px;
  634. border-width: 0 0 1px 0;
  635. border-color: rgb(238, 238, 238);
  636. padding-left: 42px;
  637. padding-top: 16px;
  638. line-height: 44px;
  639. outline:none;
  640. // background: url(http://cn-file.17pdf.com/website/account/ic_login_inputuser.png) no-repeat 0px 28px;
  641. }
  642. .getbackpwd_input_user:-webkit-autofill {
  643. box-shadow: 0 0 0px 1000px white inset;
  644. }
  645. .getbackpwd_input_user_span{
  646. background: url(http://cn-file.17pdf.com/website/account/ic_login_inputuser.png) no-repeat
  647. }
  648. .getbackpwd_input_pwd {
  649. height: 60px;
  650. width: 360px;
  651. border-width: 0 0 1px 0;
  652. border-color: rgb(238, 238, 238);
  653. padding-left: 42px;
  654. padding-top: 16px;
  655. line-height: 44px;
  656. outline:none;
  657. background: url(http://cn-file.17pdf.com/website/account/ic_login_inputpassword.png) no-repeat 0px 28px;
  658. }
  659. .getbackpwd_input_vcode {
  660. height: 60px;
  661. width: 220px;
  662. border-width: 0 0 1px 0;
  663. border-color: rgb(238, 238, 238);
  664. padding-left: 42px;
  665. padding-top: 16px;
  666. line-height: 44px;
  667. float: left;
  668. outline:none;
  669. background: url(http://cn-file.17pdf.com/website/account/ic_login_input_code.png) no-repeat 0px 28px;
  670. }
  671. .sent-vcode {
  672. border: 1px solid rgb(255, 79, 79);
  673. border-radius: 3px;
  674. padding: 10px 20px;
  675. cursor:pointer;
  676. margin-left: 10px;
  677. margin-top: 10px;
  678. float: right;
  679. width: 120px;
  680. a {
  681. color: rgb(255, 79, 79);
  682. }
  683. }
  684. .sent-vcode-disabled {
  685. border: 1px solid rgb(153, 153, 153);
  686. a {
  687. color: rgb(153, 153, 153);
  688. }
  689. }
  690. .vcode-content {
  691. float: right;
  692. padding: 15px 30px 15px 0px;
  693. display: inline-block;
  694. background: url(http://cn-file.17pdf.com/website/account/path.png) no-repeat 0px 28px;
  695. a{
  696. width: 90px;
  697. color: rgb(148, 143, 141);
  698. font-size: 20px;
  699. transform: rotate(-6deg);
  700. letter-spacing: 1px;
  701. display: inline-block;
  702. &:hover, &:active {
  703. text-decoration: none;
  704. }
  705. }
  706. }
  707. .error-mess {
  708. position: relative;
  709. clear: both;
  710. top: 15px;
  711. span{
  712. background: #808080;
  713. color: rgb(255, 255, 255);
  714. padding: 5px 15px;
  715. border-radius: 4px;
  716. }
  717. }
  718. .validate {
  719. width: 360px;
  720. height: 48px;
  721. font-size: 16px;
  722. color: rgb(255, 255, 255);
  723. border: none;
  724. background-color: rgb(255,82,79);
  725. margin: 31px 0 10px 0;
  726. border-radius: 4px;
  727. outline:none;
  728. }
  729. .now_validate{
  730. background-color: rgb(204, 204, 204);
  731. }
  732. }
  733. }
  734. .phone-reset {
  735. .changepwd-tittle {
  736. color: rgb(255, 79, 79);
  737. text-align: center;
  738. p {
  739. font-size: 20px;
  740. }
  741. }
  742. .getbackpwd_content {
  743. text-align: center;
  744. font-size: 14px;
  745. .mobilevali{
  746. height: 85px;
  747. padding: 0 36px;
  748. }
  749. &.setnewpwd p{
  750. font-size: 18px;
  751. text-align: left;
  752. padding-left: 36px;
  753. height: 20px;
  754. }
  755. p {
  756. color: rgb(102, 102, 102);
  757. font-size: 24px;
  758. }
  759. .getbackpwd_input_user {
  760. height: 60px;
  761. width: 360px;
  762. border-width: 0 0 1px 0;
  763. border-color: rgb(238, 238, 238);
  764. padding-left: 42px;
  765. padding-top: 16px;
  766. line-height: 44px;
  767. outline:none;
  768. background: url(http://cn-file.17pdf.com/website/account/ic_login_inputuser.png) no-repeat 0px 28px;
  769. }
  770. .getbackpwd_input_pwd {
  771. height: 60px;
  772. width: 360px;
  773. border-width: 0 0 1px 0;
  774. border-color: rgb(238, 238, 238);
  775. padding-left: 42px;
  776. padding-top: 16px;
  777. line-height: 44px;
  778. outline:none;
  779. // background: url(http://cn-file.17pdf.com/website/account/ic_login_inputpassword.png) no-repeat 0px 28px;
  780. }
  781. .getbackpwd_input_pwd:-webkit-autofill {
  782. box-shadow: 0 0 0px 1000px white inset;
  783. }
  784. .getbackpwd_input_pwd_span{
  785. background: url(http://cn-file.17pdf.com/website/account/ic_login_inputpassword.png)
  786. }
  787. .getbackpwd_input_vcodes {
  788. height: 60px;
  789. width: 220px;
  790. border-width: 0 0 1px 0;
  791. border-color: rgb(238, 238, 238);
  792. padding-left: 42px;
  793. padding-top: 16px;
  794. line-height: 44px;
  795. float: left;
  796. outline:none;
  797. // background: url(http://cn-file.17pdf.com/website/account/ic_login_input_code.png) no-repeat 0px 28px;
  798. }
  799. .getbackpwd_input_vcodes:-webkit-autofill {
  800. box-shadow: 0 0 0px 1000px white inset;
  801. }
  802. .getbackpwd_input_vcodes_span{
  803. background: url(http://cn-file.17pdf.com/website/account/ic_login_input_code.png) no-repeat
  804. }
  805. .sent-vcode {
  806. border: 1px solid rgb(255, 79, 79);
  807. border-radius: 3px;
  808. padding: 10px 20px;
  809. margin-left: 10px;
  810. margin-top: 10px;
  811. cursor:pointer;
  812. float: right;
  813. width: 120px;
  814. a {
  815. color: rgb(255, 79, 79);
  816. }
  817. }
  818. .sent-vcode-disabled {
  819. border: 1px solid rgb(153, 153, 153);
  820. a {
  821. color: rgb(153, 153, 153);
  822. }
  823. }
  824. .vcode-content {
  825. float: right;
  826. padding: 15px 30px 15px 0px;
  827. display: inline-block;
  828. background: url(http://cn-file.17pdf.com/website/account/path.png) no-repeat 0px 28px;
  829. a{
  830. width: 90px;
  831. color: rgb(148, 143, 141);
  832. font-size: 20px;
  833. transform: rotate(-6deg);
  834. letter-spacing: 1px;
  835. display: inline-block;
  836. &:hover, &:active {
  837. text-decoration: none;
  838. }
  839. }
  840. }
  841. .error-mess {
  842. position: relative;
  843. clear: both;
  844. top: 15px;
  845. span{
  846. background: #808080;
  847. color: rgb(255, 255, 255);
  848. padding: 5px 15px;
  849. border-radius: 4px;
  850. }
  851. }
  852. .validate {
  853. width: 360px;
  854. height: 48px;
  855. font-size: 16px;
  856. color: rgb(255, 255, 255);
  857. border: none;
  858. background-color: rgb(255,82,79);
  859. margin: 31px 0 40px 0;
  860. border-radius: 4px;
  861. outline:none;
  862. }
  863. .now_validate{
  864. background-color: rgb(204, 204, 204);
  865. }
  866. }
  867. }
  868. .user-reset {
  869. .changepwd-tittle {
  870. color: rgb(255, 79, 79);
  871. text-align: center;
  872. p {
  873. font-size: 20px;
  874. }
  875. }
  876. .prompt-content {
  877. margin-top: 30px;
  878. text-align: center;
  879. padding: 0px 50px;
  880. margin-bottom: 20px;
  881. font-size: 16px;
  882. p {
  883. color: rgb(112, 112, 112);
  884. line-height: 28px;
  885. }
  886. a {
  887. color: rgb(255, 79, 79);
  888. cursor:pointer;
  889. }
  890. }
  891. }
  892. </style>