LoginBar.vue 34 KB

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