Browse Source

更新样式

lex-xin 3 years ago
parent
commit
ed72eae71c

+ 0 - 1
src/router/index-student.ts

@@ -1,6 +1,5 @@
 import { createRouter, createWebHashHistory, Router } from 'vue-router';
 import routes from './routes-student';
-console.log(routes);
 const router: Router = createRouter({
   history: createWebHashHistory(),
   routes

BIN
src/student/layout/images/bottom_bg.png


BIN
src/student/layout/images/top_bg.png


+ 14 - 0
src/student/layout/login.module.less

@@ -0,0 +1,14 @@
+.login {
+  min-height: 100vh;
+  background: url('./images/top_bg.png') no-repeat top center, url('./images/bottom_bg.png') no-repeat bottom center;
+  background-color: #fff;
+
+  .loginTitle {
+    padding-top: 100px;
+    font-size: 26px;
+    padding-left: 35px;
+    padding-bottom: 70px;
+    line-height: 37px;
+    font-weight: 500;
+  }
+}

+ 3 - 1
src/student/layout/login.tsx

@@ -4,6 +4,7 @@ import ImgCode from "@/components/imgCode";
 import request from "@/helpers/request";
 import { setLogin, state } from "@/student/state";
 import { removeAuth, setAuth } from "@/helpers/utils";
+import styles from "./login.module.less";
 
 type loginType = 'PWD' | 'SMS';
 export default defineComponent({
@@ -108,7 +109,8 @@ export default defineComponent({
   },
   render() {
     return (
-      <div class="login">
+      <div class={styles.login}>
+        <div class={styles.loginTitle}>您好,<br /> 欢迎使用酷乐秀</div>
         <CellGroup inset>
           <Field
             v-model={this.username}

+ 0 - 1
src/styles/index.less

@@ -80,7 +80,6 @@
   font-family: Avenir, Helvetica, Arial, sans-serif;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
-  text-align: center;
   color: #2c3e50;
 }