瀏覽代碼

邮箱修改密码样式

seimin 3 年之前
父節點
當前提交
393d670699
共有 1 個文件被更改,包括 16 次插入16 次删除
  1. 16 16
      src/views/changePwd.vue

+ 16 - 16
src/views/changePwd.vue

@@ -1,10 +1,10 @@
1 1
 <template>
2
-  <div class="fle bgColor">
2
+  <div class="fle bgColor changePwd">
3 3
     <h2 style="font-size: 0.36rem; margin-bottom: 0.36rem; font-weight: 700">
4 4
       邮箱密码修改
5 5
     </h2>
6 6
     <div style="width: 5rem">
7
-      <div class="account">当前邮箱:{{ loginUser.account }}@zuel.edu.cn</div>
7
+      <cube-input v-model="email" disabled placeholder="请输入新的密码"></cube-input>
8 8
       <br />
9 9
       <cube-input v-model="pwd" type="password" placeholder="请输入新的密码">
10 10
       </cube-input>
@@ -16,7 +16,7 @@
16 16
       ></cube-input>
17 17
       <br />
18 18
       <cube-button @click="zlogin()" style="background: #005395"
19
-        >登录</cube-button
19
+        >保存</cube-button
20 20
       >
21 21
     </div>
22 22
   </div>
@@ -28,20 +28,21 @@ export default {
28 28
     return {
29 29
       loginUser: {},
30 30
       pwd: "",
31
+      email: "",
31 32
       confirmPwd: ""
32 33
     };
33 34
   },
34 35
   methods: {
35 36
     // 账号密码登录
36 37
     zlogin() {
37
-      if(this.pwd !== this.confirmPwd){
38
+      if (this.pwd !== this.confirmPwd) {
38 39
         this.$createDialog({
39
-            type: "alert",
40
-            title: "提示",
41
-            content: '两次输入的密码不一致',
42
-            icon: "cubeic-warn",
43
-            color: "red"
44
-          }).show();
40
+          type: "alert",
41
+          title: "提示",
42
+          content: "两次输入的密码不一致",
43
+          icon: "cubeic-warn",
44
+          color: "red"
45
+        }).show();
45 46
         return;
46 47
       }
47 48
       let postData = { account: this.loginUser.account, password: this.pwd };
@@ -77,14 +78,16 @@ export default {
77 78
   created() {
78 79
     let loginUser = localStorage.getItem("loginUser");
79 80
     this.loginUser = loginUser ? JSON.parse(loginUser) : {};
81
+    this.email = this.loginUser.account + "@zuel.edu.cn";
80 82
   }
81 83
 };
82 84
 </script>
83 85
 
84 86
 <style scoped>
85
-.account {
86
-  font-size: 0.3rem;
87
-  color: #333;
87
+.changePwd >>> .cube-input-field[disabled]{
88
+  color: #000!important;
89
+  background-color: rgba(0,0,0,0.2)!important;
90
+  border: 1px solid #e4e7ed!important;
88 91
 }
89 92
 .color {
90 93
   color: red;
@@ -99,9 +102,6 @@ export default {
99 102
   background: url(./../../static/images/weChartBackImage.jpg);
100 103
   background-size: cover;
101 104
 }
102
-/* .bgColor{
103
-    background-color: white
104
-  } */
105 105
 input {
106 106
   border: 0.02rem #999999 solid;
107 107
   width: 60%;