yuanrunwei 4 years ago
parent
commit
e70caa8b80
1 changed files with 15 additions and 2 deletions
  1. 15 2
      src/views/login.vue

+ 15 - 2
src/views/login.vue

@@ -34,6 +34,7 @@
         <div class="login-footer">
             <el-button class="login-btn" @click="login">登录</el-button>
         </div>
+        <div class="forget" @click="forget">忘记密码?</div>
     </div>
     <!--</div>-->
 </div>
@@ -45,6 +46,11 @@
     justify-content: center;
     align-items: center;
 }
+.forget {
+  color: rgb(30, 71, 184);
+  text-align: right;
+  line-height: 5px;
+}
 </style>
 
 <script>
@@ -75,7 +81,7 @@ export default {
   },
   mounted () {},
   methods: {
-    // 登
+    // 登
     login () {
       this.$refs['pwdLogin'].validate(res => {
         if (res) {
@@ -91,7 +97,7 @@ export default {
           }).then(res => {
             console.log(res)
             this.$message.success({
-              message: '登成功'
+              message: '登成功'
             })
             // this.$cookies.setCookies(res)
             sessionStorage.setItem('info', JSON.stringify(res.object))
@@ -106,6 +112,13 @@ export default {
           })
         }
       })
+    },
+    forget () {
+      this.$alert('请联系联系yc1min客服重置密码!', '提示', {
+        confirmButtonText: '确定',
+        callback: action => {
+        }
+      })
     }
   }
 }