Bläddra i källkod

修改输入密码显示小眼睛的图案

plg 2 veckor sedan
förälder
incheckning
ec9db92b28
2 ändrade filer med 11 tillägg och 4 borttagningar
  1. 2 2
      src/utils/http.js
  2. 9 2
      src/views/loginNew.vue

+ 2 - 2
src/utils/http.js

@@ -18,9 +18,9 @@ import { router } from "@/router";
 // axios.defaults.baseURL = 'https://child.hhnao.com:8070';
 //https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx01d1a44906973cf2&redirect_uri=http%3A%2F%2F192.168.18.51%3A8085&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect
 //本地
-export const basePath = "http://10.113.248.4:8089";
+// export const basePath = "http://10.113.248.4:8089";
 //30
-// export const basePath = "http://43.143.198.30:8089";
+export const basePath = "http://43.143.198.30:8089";
 //
 // export const basePath = "http://129.211.221.44:8089";
 // const base_url = 'http://43.143.198.30:8089/'

+ 9 - 2
src/views/loginNew.vue

@@ -27,7 +27,7 @@
             <!-- <img src="../assets/img/login/persion.png" /> -->
           </el-form-item>
           <el-form-item label="" class="account-two-new" prop="pass">
-            <el-input class="input-password-new" type="password" placeholder="请输入密码" v-model="ruleForm.pass"
+            <el-input class="input-password-new" type="password" placeholder="请输入密码" show-password v-model="ruleForm.pass"
               autocomplete="off" @keyup.enter.native="submitForm('ruleForm')">
               <template slot="prefix">
                 <div class="account-inner">
@@ -206,6 +206,8 @@ export default {
 };
 </script>
 <style scoped>
+
+
 .input-account-new>>>.el-input__inner {
   background-color: #f7f7f7 !important;
   background-image: none;
@@ -239,7 +241,12 @@ export default {
 
 .input-password-new>>>.el-input__inner::placeholder {
   /*color: #f9f9f9;*/
-  color: #9a9a9a;
+  color: #9a9a9a !important;
+}
+
+.input-password-new>>>.el-input__icon {
+  /*color: #f9f9f9;*/
+ line-height: 46px !important;
 }
 
 .input-password-new>>>.el-input__inner {