LoginBar.vue 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015
  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. bigChar: false,
  39. //登录页面小眼睛
  40. loginEyeShow: false,
  41. //登录页面小眼睛是否打开
  42. loginEyeOpen: false
  43. }
  44. },
  45. computed: {
  46. loginBtnDisabled() {
  47. return !(this.form.username && this.form.password && this.form.password.length >= 6);
  48. },
  49. forgetDisabled() {
  50. return !(this.forgetForm.account && this.forgetForm.code);
  51. }
  52. },
  53. mounted() {
  54. if (localStorage.getItem("username")) {
  55. this.form.username = localStorage.getItem("username");
  56. this.form.password = localStorage.getItem("password");
  57. }
  58. // this.forgetForm.account = this.form.username
  59. },
  60. methods: {
  61. ...mapActions(["login"]),
  62. handlerLogin() {
  63. this.logging = true;
  64. this.loginError = false;
  65. this.$axios.post("login", qs.stringify(this.form)).then((res) => {
  66. if (res.code === 200) {
  67. this.$store.dispatch("login", res.result).then((token) => {
  68. this.$axios.setToken(token, "Bearer");
  69. localStorage.setItem("token", token);
  70. if (this.checked) {
  71. localStorage.setItem("username", this.form.username);
  72. localStorage.setItem("password", this.form.password);
  73. }
  74. else {
  75. localStorage.removeItem("username", this.form.username);
  76. localStorage.removeItem("password", this.form.password);
  77. this.form.username = "";
  78. this.form.password = "";
  79. }
  80. this.handlerClose();
  81. this.getUserInfo();
  82. });
  83. }
  84. else {
  85. this.loginError = true;
  86. }
  87. })
  88. .finally(() => { this.logging = false; });
  89. },
  90. getUserInfo() {
  91. this.$axios.get("members/getMemberInfo").then((res) => {
  92. if (res.code === 200) {
  93. this.$store.commit("setUser", res.result.memberInfo);
  94. setToken("vuex", JSON.stringify(res.result.memberInfo));
  95. this.logging = false;
  96. this.$emit("loginSucess");
  97. }
  98. });
  99. },
  100. handlerForgetPsw() {
  101. this.interfaceStatus = "forgetPsw";
  102. this.handleGetVcodeImage();
  103. this.forgetForm.account = this.form.username;
  104. },
  105. // 手机号码发送验证码
  106. handlePostCode() {
  107. if (this.sending)
  108. return;
  109. const params = {
  110. action: "1",
  111. receiver: this.forgetForm.account
  112. };
  113. if (this.regPhone.test(this.forgetForm.account))
  114. params.type = "1";
  115. if (this.regEmail.test(this.forgetForm.account))
  116. params.type = "0";
  117. this.$axios.get("auth/getVerifyCode", { params }).then((res) => {
  118. if (res.code === 200) {
  119. this.sending = true;
  120. let interval = setInterval(() => {
  121. this.clock--;
  122. if (this.clock === 0) {
  123. clearInterval(interval);
  124. interval = null;
  125. this.clock = 60;
  126. this.sending = false;
  127. }
  128. }, 1000);
  129. }
  130. });
  131. },
  132. // 获取二维码图片
  133. handleGetVcodeImage() {
  134. const params = {
  135. width: "140",
  136. height: "46",
  137. codeCount: "6",
  138. lineCount: "1",
  139. type: "forget_password"
  140. };
  141. this.$axios.get("/auth/getImageCode", { params, responseType: "arraybuffer" }).then((res) => {
  142. this.codeImg = "data:image/png;base64," + btoa(new Uint8Array(res.data).reduce((data, byte) => data + String.fromCharCode(byte), ""));
  143. this.forgetForm.key = res.headers["x-auth-token"];
  144. });
  145. },
  146. resetInterfaceStatus() {
  147. this.forgetForm.account = "";
  148. this.forgetForm.code = "";
  149. this.forgetPswErrTip = "";
  150. this.resetPswTip = "";
  151. this.resetForm.newPassword = "";
  152. this.resetForm.confirm_newPassword = "";
  153. this.resetForm.verifyCode = "";
  154. this.resetForm.forgetPswErrTip = "";
  155. setTimeout(() => {
  156. this.interfaceStatus = "login";
  157. }, 500);
  158. },
  159. // 切换注册页面
  160. handlerRegister() {
  161. this.$emit("register", "register");
  162. },
  163. // 重置密码验证
  164. handlerResetPsw() {
  165. if (!this.regPhone.test(this.forgetForm.account) && !this.regEmail.test(this.forgetForm.account)) {
  166. this.forgetPswErrTip = "请输入正确的邮箱或手机号码";
  167. this.handleGetVcodeImage();
  168. return;
  169. }
  170. this.logging = true;
  171. this.$axios.post("auth/checkExist", qs.stringify(this.forgetForm)).then((res) => {
  172. if (res.code === 200) {
  173. if (this.regPhone.test(this.forgetForm.account)) {
  174. this.interfaceStatus = "resetPhonePsw";
  175. }
  176. if (this.regEmail.test(this.forgetForm.account)) {
  177. this.postEmail();
  178. }
  179. }
  180. else if (res.data && res?.data?.code !== 200) {
  181. this.forgetPswErrTip = res.data.msg;
  182. this.handleGetVcodeImage();
  183. }
  184. else {
  185. this.forgetPswErrTip = res.msg;
  186. this.handleGetVcodeImage();
  187. }
  188. }).finally(() => {
  189. this.logging = false;
  190. });
  191. },
  192. // 邮箱找回密码,发送邮箱
  193. postEmail() {
  194. const params = {
  195. action: "1",
  196. type: "0",
  197. receiver: this.forgetForm.account
  198. };
  199. this.$axios.get("auth/getVerifyCode", { params }).then((res) => {
  200. if (res.code === 200) {
  201. this.interfaceStatus = "resetEmailPsw";
  202. }
  203. });
  204. },
  205. handlerConfirmReset() {
  206. if (this.resetForm.newPassword !== this.resetForm.confirm_newPassword) {
  207. this.resetPswTip = "两次输入的密码不一致";
  208. }
  209. else if (this.resetForm.newPassword.length < 6) {
  210. this.resetPswTip = "密码位数不能少于6位";
  211. }
  212. else if (this.resetForm.newPassword.charCodeAtlength > 16) {
  213. this.resetPswTip = "密码位数不能大于16位";
  214. }
  215. else {
  216. this.resetPswTip = "";
  217. this.submitReset();
  218. }
  219. },
  220. submitReset() {
  221. this.resetForm.account = this.forgetForm.account;
  222. this.$axios.post("members/resetPassword", this.resetForm).then((res) => {
  223. if (res.code === 200) {
  224. this.$message.success("修改成功");
  225. this.handlerClose();
  226. }
  227. if (res.data && res?.data?.code !== 200) {
  228. this.resetPswTip = res.data.msg;
  229. }
  230. });
  231. },
  232. handlerClose() {
  233. this.$emit("close");
  234. },
  235. // 忘记密码错误提示
  236. changeForgetPswErrTip() {
  237. this.forgetPswErrTip = "";
  238. },
  239. //登录错误提示
  240. changeLoginTip() {
  241. this.loginError = false;
  242. // this.loginEyeShow = true
  243. },
  244. //不允许输入空格
  245. keydown(event) {
  246. if (event.keyCode == 32) {
  247. event.returnValue = false;
  248. this.resetPswTip = "请勿输入空格";
  249. }
  250. },
  251. changeErr() {
  252. this.resetPswTip = "";
  253. },
  254. //判断大写状态开启
  255. loginKeyDown(event) {
  256. //未输入过字母键,或按键不是caps lock,判断每次最后输入的字符的大小写
  257. let e = event || window.event;
  258. let keyvalue = e.keyCode ? e.keyCode : e.which;
  259. let shifKey = e.shiftKey ? e.shiftKey : keyvalue == 16 ? true : false;
  260. if (typeof this.form.password === "undefined") {
  261. return;
  262. }
  263. let strlen = this.form.password.length;
  264. let password = this.form.password;
  265. if (strlen) {
  266. let uniCode = password.charCodeAt(strlen - 1);
  267. if (keyvalue >= 65 && keyvalue <= 90) {
  268. if ((uniCode >= 65 && uniCode <= 90 && !shifKey) ||
  269. (uniCode >= 97 && uniCode <= 122 && shifKey)) {
  270. this.bigChar = true;
  271. }
  272. else {
  273. this.bigChar = false;
  274. }
  275. }
  276. }
  277. },
  278. //展示登录页面小眼睛
  279. showLoginEye(type){
  280. if(type === 'focus'){
  281. setTimeout(() => {
  282. this.loginEyeShow = true
  283. }, 150);
  284. this.loginEyeOpen = false
  285. }else{
  286. setTimeout(() => {
  287. this.loginEyeShow = false
  288. }, 200);
  289. const loginInput = this.$refs.loginInput
  290. loginInput.type = 'password'
  291. }
  292. },
  293. //展示登录页面小眼睛打开
  294. showLoginEyeOpen(){
  295. const loginInput = this.$refs.loginInput
  296. const len = loginInput.value.length
  297. loginInput.focus()
  298. setTimeout(() => {
  299. loginInput.setSelectionRange(len,len)
  300. }, 0);
  301. loginInput.type = 'password'
  302. this.loginEyeOpen = false
  303. },
  304. //展示登录页面小眼睛关闭
  305. showLoginEyeClose(){
  306. const loginInput = this.$refs.loginInput
  307. const len = loginInput.value.length
  308. loginInput.focus()
  309. setTimeout(() => {
  310. loginInput.setSelectionRange(len,len)
  311. }, 0);
  312. loginInput.type = 'text'
  313. this.loginEyeOpen = true
  314. }
  315. },
  316. }
  317. </script>
  318. <template>
  319. <div>
  320. <!-- 登录 -->
  321. <div v-if="interfaceStatus === 'login'" class="user-login">
  322. <div class="logo">
  323. <h4 class="logo_PDF"></h4>
  324. </div>
  325. <div class="login_content relative">
  326. <div class="login_input_user_span w-20px h-20px absolute top-30px left-34px"></div>
  327. <input id="account" v-model="form.username" class="login_input_user account" type="text" placeholder="邮箱/手机号" @input = "changeLoginTip">
  328. <br />
  329. <div class="login_input_password_span w-20px h-20px absolute top-90px left-34px"></div>
  330. <input id="pwd" ref="loginInput" v-model="form.password" class="login_input_password pwd" type="password" placeholder="密码" @input = "changeLoginTip" @keyup="loginKeyDown" @blur="showLoginEye('blue')" @focus="showLoginEye('focus')">
  331. <div class="login_input_password_bigChar w-20px h-20px absolute top-90px" v-if="bigChar"></div>
  332. <div class="login_input_password_show_open w-20px h-20px absolute top-90px cursor-pointer" v-show="loginEyeShow && loginEyeOpen" @click="showLoginEyeOpen"></div>
  333. <div class="login_input_password_show_close w-20px h-20px absolute top-90px cursor-pointer" v-show="loginEyeShow && !loginEyeOpen" @click="showLoginEyeClose"></div>
  334. <br />
  335. <div class="forget-password">
  336. <span class="pwd-container">
  337. <input v-model="checked" id="rememberMe" type="checkbox" class="remember_pass align-text-bottom">
  338. <label for="rememberMe">记住密码</label>
  339. </span>
  340. <span class="right">
  341. <a class="forgotpwd cursor-pointer" @click="handlerForgetPsw">忘记密码?</a>
  342. </span>
  343. </div>
  344. <div v-show="loginError" class="error-mess">
  345. <span id="error-message error-tip">账号或密码错误</span>
  346. </div>
  347. <div class="tips">
  348. <span>只有QQ/微信账号,如何进行网页登录</span>
  349. <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
  350. <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"/>
  351. </svg>
  352. <div class="tips-content">
  353. <div><span>1.&nbsp;</span>APP端绑定手机号:我的 - 账户绑定</div>
  354. <div><span>2.&nbsp;</span>网页登录,输入手机号,点击忘记密码,进行账号密码设置,登录账号</div>
  355. </div>
  356. </div>
  357. <button id="btn-login" type="submit" class="logging" :class="{'btn-signin': loginBtnDisabled}"
  358. :disabled="loginBtnDisabled" @click="handlerLogin">登录</button>
  359. <div v-show="logging" class="loading"></div>
  360. <div class="register-now">
  361. <span>还没有帐号?</span>
  362. <span class="switch_signup">
  363. <a class="cursor-pointer" @click="handlerRegister">注册</a>
  364. </span>
  365. </div>
  366. </div>
  367. </div>
  368. <!-- 忘记密码 -->
  369. <div v-if="interfaceStatus === 'forgetPsw'" class="user-forget">
  370. <div class="changepwd-tittle">
  371. <p>找回账号密码</p>
  372. </div>
  373. <div class="getbackpwd_content relative">
  374. <div class="getbackpwd_input_user_span w-20px h-20px absolute top-30px left-34px"></div>
  375. <input v-model="forgetForm.account" class="getbackpwd_input_user account" type="text" placeholder="邮箱/手机号" @input="changeForgetPswErrTip">
  376. <!-- 用这个password接收密码 -->
  377. <input class="hidden" type="password">
  378. <br />
  379. <input v-model="forgetForm.code" class="getbackpwd_input_vcode" type="text" placeholder="验证码" @input="changeForgetPswErrTip">
  380. <img :src="codeImg" class="mt-10px cursor-pointer" @click="handleGetVcodeImage">
  381. <br />
  382. <div v-if=" !!forgetPswErrTip " class="error-mess">
  383. <span id="error-message error-tip">{{forgetPswErrTip}}</span>
  384. </div>
  385. <button id="btn-validate" type="submit" class="validate" :class="{'now_validate': forgetDisabled}" @click="handlerResetPsw">立即验证
  386. </button>
  387. <div v-show="logging" class="loading"></div>
  388. </div>
  389. </div>
  390. <!-- 重置手机密码 -->
  391. <div v-if="interfaceStatus === 'resetPhonePsw'" class="phone-reset">
  392. <div class="changepwd-tittle">
  393. <p>手机验证</p>
  394. </div>
  395. <div class="getbackpwd_content setnewpwd relative">
  396. <p class="phone_num mb-5px">{{forgetForm.account}}</p>
  397. <div class="mobilevali relative">
  398. <div class="getbackpwd_input_vcodes_span w-20px h-20px absolute top-30px left-34px"></div>
  399. <input v-model="resetForm.verifyCode" class="getbackpwd_input_vcodes input_vcode_conform " placeholder="验证码" type="text">
  400. <span class="sent-vcode sent-vcode-getbackpwd" :class="{'sent-vcode-disabled': sending}" @click="handlePostCode"><a>{{sending ? clock+'秒' : '发送验证码'}}</a></span>
  401. <!-- 用这个password接收密码 -->
  402. <input class="hidden" type="password">
  403. </div>
  404. <br />
  405. <p class="mb-5px">设置新密码</p>
  406. <div class="getbackpwd_input_pwd_span w-20px h-20px absolute top-185px left-34px"></div>
  407. <input v-model="resetForm.newPassword" class="getbackpwd_input_pwd input_newpwd" type="password" value="" placeholder="新密码(6-16个字符,区分大小写)" @input="changeErr" @keydown="keydown($event)" >
  408. <br />
  409. <div class="getbackpwd_input_pwd_span w-20px h-20px absolute top-245px left-34px"></div>
  410. <input v-model="resetForm.confirm_newPassword" class="getbackpwd_input_pwd input_newpwd_conform" type="password" placeholder="确认新密码" @input="changeErr" @keydown="keydown($event)">
  411. <br />
  412. <div v-if="resetPswTip !== ''" class="error-mess">
  413. <span id="error-message error-tip">{{resetPswTip}}</span>
  414. </div>
  415. <button id="btn-validate-conform" type="submit" class="validate" @click="handlerConfirmReset">确认
  416. </button>
  417. <div class="loading"></div>
  418. </div>
  419. </div>
  420. <!-- 重置邮箱密码 -->
  421. <div v-if="interfaceStatus === 'resetEmailPsw'" class="user-reset">
  422. <div class="changepwd-tittle">
  423. <p>邮箱验证</p>
  424. </div>
  425. <div class="prompt-content">
  426. <p>重置密码的链接已被发送到您的邮箱,请在30分钟内前往你的邮箱查收邮件以重置密码。</p>
  427. </div>
  428. </div>
  429. </div>
  430. </template>
  431. <style lang="scss">
  432. .user-login {
  433. margin-top:35px;
  434. .logo {
  435. width: 96px;
  436. height: 96px;
  437. border-radius: 96px;
  438. text-align: center;
  439. background-color: rgb(255, 255, 255);
  440. position: absolute;
  441. top: -48px;
  442. left: 50%;
  443. margin-left: -48px;
  444. .logo_PDF {
  445. width: 80px;
  446. height: 80px;
  447. position: absolute;
  448. top: 8px;
  449. margin-left: 8px;
  450. background: url(http://cn-file.17pdf.com/website/index/logo_pdf.png) no-repeat 50%;
  451. background-size: 100%;
  452. }
  453. }
  454. .login_content {
  455. text-align: center;
  456. font-size: 14px;
  457. margin-top: -40px;
  458. .error-mess {
  459. position: relative;
  460. font-size: 14px;
  461. span{
  462. display: inline-block;
  463. background: #808080;
  464. color: rgb(255, 255, 255);
  465. padding: 5px 15px;
  466. border-radius: 4px;
  467. }
  468. }
  469. .error-mess-signup {
  470. position: initial;
  471. clear: both;
  472. margin-top: 15px;
  473. }
  474. // input:focus {
  475. // outline: none;
  476. // border-color: rgb(233, 54, 54);
  477. // }
  478. // input:checked{
  479. // background: url(http://cn-file.17pdf.com/website/index/ic_checkbox_selected.png) no-repeat 0px 0px;
  480. // }
  481. .login_input_user {
  482. height: 60px;
  483. width: 360px;
  484. border-width: 0 0 1px 0;
  485. border-color: rgb(238, 238, 238);
  486. padding-left: 42px;
  487. padding-top: 16px;
  488. line-height: 44px;
  489. outline:none;
  490. // background: url(http://cn-file.17pdf.com/website/account/ic_login_inputuser.png) no-repeat 0px 28px;
  491. }
  492. .login_input_user_span {
  493. background: url(http://cn-file.17pdf.com/website/account/ic_login_inputuser.png) no-repeat;
  494. }
  495. .login_input_user:-webkit-autofill {
  496. box-shadow: 0 0 0px 1000px white inset;
  497. }
  498. .login_input_password {
  499. height: 60px;
  500. width: 360px;
  501. border-width: 0 0 1px 0;
  502. border-color: rgb(238, 238, 238);
  503. padding-left: 42px;
  504. padding-top: 16px;
  505. line-height: 44px;
  506. outline:none;
  507. // background:url(http://cn-file.17pdf.com/website/account/ic_login_inputpassword.png) no-repeat 0px 28px;
  508. }
  509. .login_input_password_span{
  510. background:url(http://cn-file.17pdf.com/website/account/ic_login_inputpassword.png) no-repeat
  511. }
  512. .login_input_password_bigChar{
  513. right: 60px;
  514. background:url(@/assets/images/password/password.png) no-repeat
  515. }
  516. .login_input_password_show_open{
  517. right: 35px;
  518. background: url(@/assets/images/password/passwordopen.png) no-repeat;
  519. }
  520. .login_input_password_show_close{
  521. right: 35px;
  522. background: url(@/assets/images/password/Union.png) no-repeat;
  523. }
  524. .login_input_password:-webkit-autofill {
  525. box-shadow: 0 0 0px 1000px white inset;
  526. }
  527. .vcode_content {
  528. // display: none;
  529. padding: 0px 36px;
  530. height: 60px;
  531. .input_vcode_signup {
  532. height: 60px;
  533. width: 220px;
  534. border-width: 0 0 1px 0;
  535. border-color: rgb(238, 238, 238);
  536. padding-left: 42px;
  537. padding-top: 16px;
  538. line-height: 44px;
  539. float: left;
  540. background: url(http://cn-file.17pdf.com/website/account/ic_login_input_code.png) no-repeat 0px 28px;
  541. outline: none;
  542. }
  543. .sent-vcode-disabled {
  544. border: 1px solid rgb(153, 153, 153) !important;
  545. a {
  546. color: rgb(153, 153, 153) !important;
  547. }
  548. }
  549. .sent-vcode {
  550. border: 1px solid rgb(255, 79, 79);
  551. border-radius: 3px;
  552. padding: 10px 20px;
  553. margin-left: 10px;
  554. cursor:pointer;
  555. margin-top: 10px;
  556. float: right;
  557. width: 120px;
  558. a {
  559. color: rgb(255, 79, 79);
  560. }
  561. }
  562. }
  563. .new {
  564. background: url(http://cn-file.17pdf.com/website/account/ic_lock_new.png) no-repeat 0px 28px;
  565. }
  566. .confirm {
  567. background: url(http://cn-file.17pdf.com/website/account/ic_lock_sure.png) no-repeat 0px 28px;
  568. }
  569. .forget-password {
  570. display: flex;
  571. justify-content: space-between;
  572. align-items: center;
  573. margin-top: 21px;
  574. padding: 0px 60px;
  575. font-size: 12px;
  576. color: rgb(102, 102, 102);
  577. input {
  578. margin: 0;
  579. }
  580. .left {
  581. display: flex;
  582. align-items: center;
  583. label{
  584. margin: 0 0 0 5px;
  585. color: rgb(153, 153, 153);
  586. font-weight: normal;
  587. }
  588. }
  589. .right {
  590. a {
  591. color: rgb(153, 153, 153);
  592. &:hover {
  593. text-decoration: none;
  594. color: rgb(255, 79, 79);
  595. }
  596. }
  597. }
  598. }
  599. .tips {
  600. position: relative;
  601. display: flex;
  602. justify-content: center;
  603. align-items: center;
  604. font-size: 14px;
  605. line-height: 20px;
  606. text-align: center;
  607. color: #999999;
  608. margin-top: 30px;
  609. margin-bottom: 20px;
  610. cursor: default;
  611. svg {
  612. margin-left: 5px;
  613. }
  614. &:hover {
  615. .tips-content {
  616. display: block;
  617. }
  618. color: #FF4F4F;
  619. }
  620. .tips-content {
  621. display: none;
  622. position: absolute;
  623. left: 50%;
  624. bottom: 30px;
  625. transform: translateX(-50%);
  626. width: 250px;
  627. padding: 15px 4px 25px 13px;
  628. background: url('~/assets/images/common/tip_bg.svg') center bottom no-repeat;
  629. border-radius: 4px;
  630. text-align: left;
  631. div {
  632. display: flex;
  633. font-size: 12px;
  634. line-height: 14px;
  635. color: #FFFFFF;
  636. & + div {
  637. margin-top: 9px;
  638. }
  639. }
  640. }
  641. }
  642. .logging {
  643. width: 360px;
  644. height: 48px;
  645. font-size: 16px;
  646. color: rgb(255, 255, 255);
  647. border: none;
  648. background-color: rgb(255, 79, 79);
  649. margin-bottom: 20px;
  650. border-radius: 4px;
  651. outline:none;
  652. }
  653. .btn-signup{
  654. background-color: rgb(204,204,204);
  655. }
  656. .btn-signin{
  657. background-color: rgb(204,204,204);
  658. }
  659. .login {
  660. background-color: rgb(204, 204, 204);
  661. }
  662. .loading {
  663. border: 3px solid #fff;
  664. border-bottom: 3px solid rgb(204, 204, 204);;
  665. height: 28px;
  666. width: 28px;
  667. border-radius: 50%;
  668. position: absolute;
  669. bottom: 50px;
  670. left: 350px;
  671. -webkit-animation: loading 1s infinite linear;
  672. -moz-animation: loading 1s infinite linear;
  673. -o-animation: loading 1s infinite linear;
  674. animation: loading 1s infinite linear;
  675. @keyframes loading {
  676. 0% {
  677. transform: rotate(0deg);
  678. }
  679. 100% {
  680. transform: rotate(360deg);
  681. }
  682. }
  683. }
  684. .register-now {
  685. margin-bottom: 10px;
  686. font-size: 12px;
  687. span {
  688. color: rgb(184, 184, 184);
  689. }
  690. a {
  691. color: rgb(233, 54, 54);
  692. }
  693. }
  694. .login-now {
  695. margin: 20px 0 30px 0;
  696. font-size: 12px;
  697. .term {
  698. padding-bottom: 6px;
  699. }
  700. span {
  701. color: rgb(184, 184, 184);
  702. line-height: 16px;
  703. }
  704. a {
  705. color: rgb(233, 54, 54);
  706. }
  707. }
  708. }
  709. }
  710. .user-forget{
  711. .changepwd-tittle {
  712. color: rgb(255, 79, 79);
  713. text-align: center;
  714. p {
  715. font-size: 20px;
  716. }
  717. }
  718. .getbackpwd_content {
  719. text-align: center;
  720. padding: 0px 35px;
  721. font-size: 14px;
  722. margin-top: 40px;
  723. .mobilevali{
  724. height: 85px;
  725. }
  726. &.setnewpwd p{
  727. font-size: 18px;
  728. text-align: left;
  729. height: 20px;
  730. }
  731. p {
  732. color: rgb(102, 102, 102);
  733. font-size: 24px;
  734. }
  735. .getbackpwd_input_user {
  736. height: 60px;
  737. width: 360px;
  738. border-width: 0 0 1px 0;
  739. border-color: rgb(238, 238, 238);
  740. padding-left: 42px;
  741. padding-top: 16px;
  742. line-height: 44px;
  743. outline:none;
  744. // background: url(http://cn-file.17pdf.com/website/account/ic_login_inputuser.png) no-repeat 0px 28px;
  745. }
  746. .getbackpwd_input_user:-webkit-autofill {
  747. box-shadow: 0 0 0px 1000px white inset;
  748. }
  749. .getbackpwd_input_user_span{
  750. background: url(http://cn-file.17pdf.com/website/account/ic_login_inputuser.png) no-repeat
  751. }
  752. .getbackpwd_input_pwd {
  753. height: 60px;
  754. width: 360px;
  755. border-width: 0 0 1px 0;
  756. border-color: rgb(238, 238, 238);
  757. padding-left: 42px;
  758. padding-top: 16px;
  759. line-height: 44px;
  760. outline:none;
  761. background: url(http://cn-file.17pdf.com/website/account/ic_login_inputpassword.png) no-repeat 0px 28px;
  762. }
  763. .getbackpwd_input_vcode {
  764. height: 60px;
  765. width: 220px;
  766. border-width: 0 0 1px 0;
  767. border-color: rgb(238, 238, 238);
  768. padding-left: 42px;
  769. padding-top: 16px;
  770. line-height: 44px;
  771. float: left;
  772. outline:none;
  773. background: url(http://cn-file.17pdf.com/website/account/ic_login_input_code.png) no-repeat 0px 28px;
  774. }
  775. .sent-vcode {
  776. border: 1px solid rgb(255, 79, 79);
  777. border-radius: 3px;
  778. padding: 10px 20px;
  779. cursor:pointer;
  780. margin-left: 10px;
  781. margin-top: 10px;
  782. float: right;
  783. width: 120px;
  784. a {
  785. color: rgb(255, 79, 79);
  786. }
  787. }
  788. .sent-vcode-disabled {
  789. border: 1px solid rgb(153, 153, 153);
  790. a {
  791. color: rgb(153, 153, 153);
  792. }
  793. }
  794. .vcode-content {
  795. float: right;
  796. padding: 15px 30px 15px 0px;
  797. display: inline-block;
  798. background: url(http://cn-file.17pdf.com/website/account/path.png) no-repeat 0px 28px;
  799. a{
  800. width: 90px;
  801. color: rgb(148, 143, 141);
  802. font-size: 20px;
  803. transform: rotate(-6deg);
  804. letter-spacing: 1px;
  805. display: inline-block;
  806. &:hover, &:active {
  807. text-decoration: none;
  808. }
  809. }
  810. }
  811. .error-mess {
  812. position: relative;
  813. clear: both;
  814. top: 15px;
  815. span{
  816. background: #808080;
  817. color: rgb(255, 255, 255);
  818. padding: 5px 15px;
  819. border-radius: 4px;
  820. }
  821. }
  822. .validate {
  823. width: 360px;
  824. height: 48px;
  825. font-size: 16px;
  826. color: rgb(255, 255, 255);
  827. border: none;
  828. background-color: rgb(255,82,79);
  829. margin: 31px 0 10px 0;
  830. border-radius: 4px;
  831. outline:none;
  832. }
  833. .now_validate{
  834. background-color: rgb(204, 204, 204);
  835. }
  836. }
  837. }
  838. .phone-reset {
  839. .changepwd-tittle {
  840. color: rgb(255, 79, 79);
  841. text-align: center;
  842. p {
  843. font-size: 20px;
  844. }
  845. }
  846. .getbackpwd_content {
  847. text-align: center;
  848. font-size: 14px;
  849. .mobilevali{
  850. height: 85px;
  851. padding: 0 36px;
  852. }
  853. &.setnewpwd p{
  854. font-size: 18px;
  855. text-align: left;
  856. padding-left: 36px;
  857. height: 20px;
  858. }
  859. p {
  860. color: rgb(102, 102, 102);
  861. font-size: 24px;
  862. }
  863. .getbackpwd_input_user {
  864. height: 60px;
  865. width: 360px;
  866. border-width: 0 0 1px 0;
  867. border-color: rgb(238, 238, 238);
  868. padding-left: 42px;
  869. padding-top: 16px;
  870. line-height: 44px;
  871. outline:none;
  872. background: url(http://cn-file.17pdf.com/website/account/ic_login_inputuser.png) no-repeat 0px 28px;
  873. }
  874. .getbackpwd_input_pwd {
  875. height: 60px;
  876. width: 360px;
  877. border-width: 0 0 1px 0;
  878. border-color: rgb(238, 238, 238);
  879. padding-left: 42px;
  880. padding-top: 16px;
  881. line-height: 44px;
  882. outline:none;
  883. // background: url(http://cn-file.17pdf.com/website/account/ic_login_inputpassword.png) no-repeat 0px 28px;
  884. }
  885. .getbackpwd_input_pwd:-webkit-autofill {
  886. box-shadow: 0 0 0px 1000px white inset;
  887. }
  888. .getbackpwd_input_pwd_span{
  889. background: url(http://cn-file.17pdf.com/website/account/ic_login_inputpassword.png)
  890. }
  891. .getbackpwd_input_vcodes {
  892. height: 60px;
  893. width: 220px;
  894. border-width: 0 0 1px 0;
  895. border-color: rgb(238, 238, 238);
  896. padding-left: 42px;
  897. padding-top: 16px;
  898. line-height: 44px;
  899. float: left;
  900. outline:none;
  901. // background: url(http://cn-file.17pdf.com/website/account/ic_login_input_code.png) no-repeat 0px 28px;
  902. }
  903. .getbackpwd_input_vcodes:-webkit-autofill {
  904. box-shadow: 0 0 0px 1000px white inset;
  905. }
  906. .getbackpwd_input_vcodes_span{
  907. background: url(http://cn-file.17pdf.com/website/account/ic_login_input_code.png) no-repeat
  908. }
  909. .sent-vcode {
  910. border: 1px solid rgb(255, 79, 79);
  911. border-radius: 3px;
  912. padding: 10px 20px;
  913. margin-left: 10px;
  914. margin-top: 10px;
  915. cursor:pointer;
  916. float: right;
  917. width: 120px;
  918. a {
  919. color: rgb(255, 79, 79);
  920. }
  921. }
  922. .sent-vcode-disabled {
  923. border: 1px solid rgb(153, 153, 153);
  924. a {
  925. color: rgb(153, 153, 153);
  926. }
  927. }
  928. .vcode-content {
  929. float: right;
  930. padding: 15px 30px 15px 0px;
  931. display: inline-block;
  932. background: url(http://cn-file.17pdf.com/website/account/path.png) no-repeat 0px 28px;
  933. a{
  934. width: 90px;
  935. color: rgb(148, 143, 141);
  936. font-size: 20px;
  937. transform: rotate(-6deg);
  938. letter-spacing: 1px;
  939. display: inline-block;
  940. &:hover, &:active {
  941. text-decoration: none;
  942. }
  943. }
  944. }
  945. .error-mess {
  946. position: relative;
  947. clear: both;
  948. top: 15px;
  949. span{
  950. background: #808080;
  951. color: rgb(255, 255, 255);
  952. padding: 5px 15px;
  953. border-radius: 4px;
  954. }
  955. }
  956. .validate {
  957. width: 360px;
  958. height: 48px;
  959. font-size: 16px;
  960. color: rgb(255, 255, 255);
  961. border: none;
  962. background-color: rgb(255,82,79);
  963. margin: 31px 0 40px 0;
  964. border-radius: 4px;
  965. outline:none;
  966. }
  967. .now_validate{
  968. background-color: rgb(204, 204, 204);
  969. }
  970. }
  971. }
  972. .user-reset {
  973. .changepwd-tittle {
  974. color: rgb(255, 79, 79);
  975. text-align: center;
  976. p {
  977. font-size: 20px;
  978. }
  979. }
  980. .prompt-content {
  981. margin-top: 30px;
  982. text-align: center;
  983. padding: 0px 50px;
  984. margin-bottom: 20px;
  985. font-size: 16px;
  986. p {
  987. color: rgb(112, 112, 112);
  988. line-height: 28px;
  989. }
  990. a {
  991. color: rgb(255, 79, 79);
  992. cursor:pointer;
  993. }
  994. }
  995. }
  996. input[type="password"]::-ms-reveal{
  997. display: none;
  998. }
  999. input[type="password"]::-ms-clear{
  1000. display: none;
  1001. }
  1002. input[type="password"]::-o-clear{
  1003. display: none;
  1004. }
  1005. </style>