Browse Source

登录页 over

cxmo 8 months ago
parent
commit
d9052974ac

+ 1 - 1
index.html

@@ -4,7 +4,7 @@
     <meta charset="UTF-8" />
     <link rel="icon" type="image/x-icon" href="/fa.ico" id="icon"/>
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <title>东吴CRM</title>
+    <title>海通CRM</title>
   </head>
   <body>
     <div id="app"></div>

+ 1 - 1
src/api/index.js

@@ -58,7 +58,7 @@ _axios.interceptors.response.use(
     }
     if(data.Ret===408){//token失效
       ElMessage.error(data.Msg)
-      router.replace('/login')
+      //router.replace('/login')
     }
     if(data.Ret===403){
       setTimeout(() => {

BIN
src/assets/imgs/login_bg.png


BIN
src/assets/imgs/logo_icon.png


+ 2 - 1
src/layout/Index.vue

@@ -9,7 +9,8 @@ const { getPermissionData } = usePermission()
 
 const { menuClose } = useLayoutState()
 
-getPermissionData()
+//暂时注释 方便调试
+//getPermissionData()
 
 </script>
 

+ 1 - 1
src/layout/components/HeaderWrap.vue

@@ -79,7 +79,7 @@ const hasUnRead=ref(false)//是否有未读
   right: 0;
   height: 60px;
   z-index: 50;
-  background-color: #091F6B;
+  background-color: #086CE0;
   box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
   padding: 0 30px 0 0;
   align-items: center;

+ 4 - 2
src/layout/components/LeftWrap.vue

@@ -10,6 +10,8 @@ const { menuClose } = useLayoutState()
 const navList = ref([])
 
 function getNavList(){
+    //mock navList
+    return 
   apiSystemRole.menuData().then(res=>{
     if(res.Ret===200){
       navList.value=res.Data||[]
@@ -109,7 +111,7 @@ function getMenuIcon(item){
 
 <style lang="scss" scoped>
 .left-wrap {
-  --el-menu-bg-color: #091f6b;
+  --el-menu-bg-color: #086CE0;
   --el-menu-hover-bg-color: rgba(255, 255, 255, 0.15);
   --el-menu-text-color: #ffffff;
   --el-menu-active-color: #ffae4f;
@@ -120,7 +122,7 @@ function getMenuIcon(item){
   left: 0;
   bottom: 0;
   padding: 8px;
-  background-color: #091f6b;
+  background-color: #086CE0;
   display: flex;
   flex-direction: column;
   padding-bottom: 111px;

+ 8 - 0
src/router/modules/customer.js

@@ -9,6 +9,14 @@ export default[
       title:'用户列表'
     },
     children:[
+      {
+        path:'tempUserList',
+        component:()=>import('@/views/customer/TempUserList.vue'),
+        name:'TempUserList',
+        meta:{
+            title:'临时用户列表'
+        }
+      },
       {
         path:'userList',
         component:()=>import('@/views/customer/UserList.vue'),

+ 2 - 2
src/styles/var.scss

@@ -1,6 +1,6 @@
 
 :root{
-  --el-primary-color:#436DFF !important;
-  --el-color-primary:#436DFF !important;
+  --el-primary-color:#086CE0 !important;
+  --el-color-primary:#086CE0 !important;
   --el-fill-color-lighter:#F1F6FF;
 }

+ 84 - 36
src/views/Login.vue

@@ -22,6 +22,8 @@ async function submitForm(formEl) {
   await formEl.validate((valid, fields) => {
     if (valid) {
       console.log('submit!')
+      router.replace('/customer/tempUserList')
+      return 
       const t = new Date().getTime()
       const md5key = 'MiQM9YUdf89T2uIH'
       apiSystemCommon.login({
@@ -94,12 +96,9 @@ onMounted(() => {
 
 <template>
   <div class="flex bg-white login-page">
-    <div class="left-img-wrap">
-      <img src="@/assets/imgs/login_bg.png" alt="">
-    </div>
-
     <div class="form-wrap">
       <div class="form-content">
+        <img class="logo-icon" src="@/assets/imgs/logo_icon.png">
         <h1 class="login-title">Login</h1>
         <h3 class="title">运营管理系统</h3>
         <el-form
@@ -108,9 +107,10 @@ onMounted(() => {
           :rules="formRules"
           class="form-box"
           label-position="top"
+          hide-required-asterisk
         >
-          <el-form-item prop="account" label="用户名称">
-            <el-input v-model="formState.account" placeholder="请输入用户名" />
+          <el-form-item prop="account" label="工号">
+            <el-input v-model="formState.account" placeholder="请输入工号" />
           </el-form-item>
           <el-form-item prop="pwd" label="密码">
             <el-input
@@ -128,18 +128,21 @@ onMounted(() => {
               </el-tooltip>
             </el-checkbox>
           </el-form-item>
-          <el-form-item>
+          <el-form-item class="btn-wrap">
             <el-button
-              style="width: 100%; margin-top: 50px"
+              style="width: 100%;"
               type="primary"
-              color="#091F6B"
+              color="#086CE0"
               @click="submitForm(ruleFormRef)"
               >登录</el-button
             >
           </el-form-item>
         </el-form>
       </div>
-      <p class="bot-tips">期货投资咨询业务批准文号:证监许可【2011】1446号</p>
+      <p class="bot-tips">投资咨询部投资咨询业务资格:证监许可【2011】1294号</p>
+    </div>
+    <div class="right-img-wrap">
+      <img src="@/assets/imgs/login_bg.png" alt="">
     </div>
   </div>
 </template>
@@ -147,55 +150,100 @@ onMounted(() => {
 <style lang="scss" scoped>
 .login-page {
   height: 100%;
+  min-height: 720px;
   align-items: center;
-  .left-img-wrap {
-    width: 838px;
-    height: 100%;
-    position: relative;
-    background-color: #091F6B;
-    img{
-      position: absolute;
-      bottom: 0;
-      right: 0;
-      width: 100%;
-    }
-  }
   .form-wrap {
     flex: 1;
-    padding-left: 20px;
-    padding-right: 20px;
-    padding-top: 200px;
+    padding-left: 60px;
+    padding-right: 60px;
+    padding-top: 90px;
     height: 100%;
     position: relative;
     .bot-tips{
-      position: absolute;
-      bottom: 30px;
-      left: 50%;
-      transform: translateX(-50%);
       color: #C0C4CC;
       font-size: 15px;
+      text-align: center;
+      margin-top: 90px;
     }
     .form-content{
-      width: 600px;
+      width: 440px;
       margin: 0 auto;
       --el-component-size: 60px;
-      --el-color-primary:#091F6B !important;
+      --el-color-primary:#086CE0 !important;
+      :deep(.el-form-item__label){
+        font-weight: bold;
+        color: #000;
+      }
+      .el-input{
+        --el-input-bg-color:#F3F4F6 !important;
+        :deep(.el-input__wrapper){ 
+            padding:1px 40px;
+        }
+      }
+      .el-checkbox{
+        --el-font-weight-primary:bold !important;
+        --el-text-color-regular:#000;
+        --el-checkbox-input-width:25px;
+        --el-checkbox-input-height:25px;
+        --el-checkbox-bg-color:#F3F4F6;
+        :deep(.el-checkbox__inner::after){
+            height: 14px;
+            left:8px;
+            width:6px;
+        }
+        :deep(.el-checkbox__label){
+            display: flex;
+            align-items: center;
+            gap: 5px;
+        }
+      }
+    }
+    .logo-icon{
+        width: 60px;
+        height: 60px;
     }
     .login-title{
-      font-size: 40px;
-      margin-bottom: 36px;
+      font-size: 32px;
     }
     .title {
-      margin-top: 0;
-      font-size: 38px;
+      margin-top: 10px;
+      font-size: 24px;
     }
     .form-box {
-      margin-top: 78px;
+      margin-top: 45px;
       width: 100%;
+      .btn-wrap{
+        padding:3px;
+        position: relative;
+        &::after {
+            position: absolute;
+            content: '';
+            z-index: 1;
+            height: 100%;
+            width: 100%;
+            margin: 0 auto;
+            filter: blur(30px);
+            background-image: linear-gradient(#E0E6F6, #F6F9FF);
+        }
+      }
       :deep(.el-button){
         height: 60px;
+        z-index: 2;
       }
     }
   }
+  .right-img-wrap {
+    width: 720px;
+    height: 100%;
+    position: relative;
+    background-color: #086CE0;
+    img{
+      position: absolute;
+      top: 0;
+      right: 0;
+      width: 100%;
+      height: 100%;
+    }
+  }
 }
 </style>

+ 13 - 0
src/views/customer/TempUserList.vue

@@ -0,0 +1,13 @@
+<script setup>
+import { ref, reactive } from 'vue'
+</script>
+
+<template>
+    <div>
+        临时用户列表
+    </div>
+</template>
+
+<style scoped lang="scss">
+
+</style>