Forráskód Böngészése

首页功能研发

Rockery 3 éve
szülő
commit
bd5ee417bb
3 módosított fájl, 32 hozzáadás és 34 törlés
  1. 14 14
      package.json
  2. BIN
      src/assets/images/login-background.jpg
  3. 18 20
      src/views/login.vue

+ 14 - 14
package.json

@@ -37,29 +37,29 @@
   },
   "dependencies": {
     "@riophae/vue-treeselect": "0.4.0",
-    "axios": "0.21.1",
+    "axios": "0.24.0",
     "clipboard": "2.0.6",
-    "core-js": "3.8.1",
-    "echarts": "4.9.0",
-    "element-ui": "2.15.1",
+    "core-js": "3.19.3",
+    "echarts": "5.2.2",
+    "element-ui": "2.15.6",
     "file-saver": "2.0.4",
     "fuse.js": "6.4.3",
     "highlight.js": "9.18.5",
-    "js-beautify": "1.13.0",
-    "js-cookie": "2.2.1",
+    "js-beautify": "1.14.0",
+    "js-cookie": "3.0.1",
     "jsencrypt": "3.0.0-rc.1",
     "nprogress": "0.2.0",
     "qrcodejs2": "0.0.2",
     "quill": "1.3.7",
     "screenfull": "5.0.2",
     "sortablejs": "1.10.2",
-    "v-viewer": "1.5.1",
-    "vue": "2.6.12",
+    "v-viewer": "1.6.4",
+    "vue": "2.6.14",
     "vue-count-to": "1.0.13",
-    "vue-cropper": "0.5.5",
-    "vue-router": "3.4.9",
+    "vue-cropper": "0.5.8",
+    "vue-router": "3.5.3",
     "vuedraggable": "2.24.3",
-    "vuex": "3.6.0"
+    "vuex": "3.6.2"
   },
   "devDependencies": {
     "@vue/cli-plugin-babel": "4.4.6",
@@ -72,11 +72,11 @@
     "eslint-plugin-vue": "7.2.0",
     "lint-staged": "10.5.3",
     "runjs": "4.4.2",
-    "sass": "1.32.0",
-    "sass-loader": "10.1.0",
+    "sass": "1.44.0",
+    "sass-loader": "10.2.0",
     "script-ext-html-webpack-plugin": "2.1.5",
     "svg-sprite-loader": "5.1.1",
-    "vue-template-compiler": "2.6.12"
+    "vue-template-compiler": "2.6.14"
   },
   "engines": {
     "node": ">=8.9",

BIN
src/assets/images/login-background.jpg


+ 18 - 20
src/views/login.vue

@@ -3,7 +3,7 @@
     <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
       <h3 class="title">{{ loginTitle }}</h3>
       <el-form-item prop="username">
-        <el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
+        <el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="请输入账号">
           <svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
         </el-input>
       </el-form-item>
@@ -12,7 +12,7 @@
           v-model="loginForm.password"
           type="password"
           auto-complete="off"
-          placeholder="密码"
+          placeholder="请输入密码"
           @keyup.enter.native="handleLogin"
         >
           <svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" />
@@ -22,8 +22,8 @@
         <el-input
           v-model="loginForm.code"
           auto-complete="off"
-          placeholder="验证码"
-              style="width: 63%;"
+          placeholder="请输入验证码"
+          style="width: 63%;"
           @keyup.enter.native="handleLogin"
         >
           <svg-icon slot="prefix" icon-class="validCode" class="el-input__icon input-icon" />
@@ -37,7 +37,7 @@
         <el-button
           :loading="loading"
           size="medium"
-          type="primary"
+          type="danger"
           style="width:100%;"
           @click.native.prevent="handleLogin"
         >
@@ -151,34 +151,32 @@ export default {
 <style rel="stylesheet/scss" lang="scss">
 .login {
   display: flex;
-  justify-content: center;
+  justify-content: right;
   align-items: center;
   height: 100%;
-  // background-image: url("../assets/images/login-background.jpg");
-  background: #808080; /* fallback for old browsers */
-  background: -webkit-linear-gradient(
-    to right,
-    #3fada8,
-    #808080
-  ); /* Chrome 10-25, Safari 5.1-6 */
-  background: linear-gradient(
-    to right,
-    #3fada8,
-    #808080
-  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
+  background-image: url("../assets/images/login-background.jpg");
   background-size: cover;
 }
 .title {
   margin: 0px auto 30px auto;
   text-align: center;
-  color: #707070;
+  font-weight: 700;
+  font-style: normal;
+  font-size: 30px;
+  color: #323232;
 }
 
 .login-form {
+  margin-right: 16%;
   border-radius: 6px;
-  background: #ffffff;
+  // background: #ffffff;
   width: 400px;
   padding: 25px 25px 5px 25px;
+  background: rgba(255, 255, 255, 0.501960784313725);
+  border: none;
+  border-radius: 14px;
+  box-shadow: none;
+
   .el-input {
     height: 38px;
     input {