Browse Source

sass登录

huangb 7 years ago
parent
commit
41796eb626
2 changed files with 13 additions and 7 deletions
  1. 6 6
      assets/scss/common.scss
  2. 7 1
      pages/sassLogin/index.vue

+ 6 - 6
assets/scss/common.scss

@@ -996,9 +996,9 @@ form .questions .el-form-item__content span.question {
   margin-top: 18px!important ;
 }
 //sass登录
-iframe .el-message{
-  margin-top: -18px !important ;
-}
-iframe .el-message i.el-message__closeBtn{
-  display: none;
-}
+//.el-message{
+//  margin-top: -18px !important ;
+//}
+//.el-message i.el-message__closeBtn{
+//  display: none;
+//}

+ 7 - 1
pages/sassLogin/index.vue

@@ -439,10 +439,16 @@
       },
 //      登录
       isLogin (flag) {
+        this.$message({
+          duration: 0,
+          showClose: true,
+          message: '恭喜你,这是一条成功消息',
+          type: 'success'
+        })
         this.isShowLoading = true
         if (!this.login.username) {
           this.isShowLoading = false
-          // this.$message.error('请填写账号')
+          this.$message.error('请填写账号')
         } else if (!this.login.password) {
           this.isShowLoading = false
           this.$message.error('请填写密码')