LoginBar.vue 25 KB

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