浏览代码

登录细节调整

e 5 年之前
父节点
当前提交
6810824bb8
共有 3 个文件被更改,包括 6 次插入2 次删除
  1. 二进制
      src/assets/title.png
  2. 2 1
      src/store/modules/user.js
  3. 4 1
      src/views/login/index.vue

二进制
src/assets/title.png


+ 2 - 1
src/store/modules/user.js

@@ -61,9 +61,10 @@ const actions = {
   },
 
   // user login
-  login: function({ commit }, userInfo) {
+  login: function({ commit, dispatch }, userInfo) {
     const { account, password, simplePwd } = userInfo
     return new Promise((resolve, reject) => {
+      commit('SET_IS_SIMPLE_PWD', false)
       if (password.trim() === simplePwd) {
         commit('SET_IS_SIMPLE_PWD', true)
       }

+ 4 - 1
src/views/login/index.vue

@@ -38,7 +38,7 @@
         </span>
       </el-form-item>
 
-      <el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;" @click.native.prevent="handleLogin">登录</el-button>
+      <el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;padding:17px 0;" @click.native.prevent="handleLogin">登录</el-button>
       <!-- <div class="footer"><p>copyrigh © 2019星范商城后台V1.0.0</p></div> -->
     </el-form>
   </div>
@@ -206,6 +206,9 @@ $light_gray:#eee;
     margin: 0 auto;
     overflow: hidden;
     border-radius: 8px;
+    .el-form-item {
+      margin-bottom: 40px;
+    }
   }
 
   .tips {