From fb9dac4739e2dfac3fc985dfc8cf2599142dbde2 Mon Sep 17 00:00:00 2001 From: xuyiming Date: Tue, 3 Aug 2021 16:02:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=99=BB=E9=99=86=E6=B3=A8?= =?UTF-8?q?=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 66 ++++++++---- src/components/bg-identify.vue | 183 +++++++++++++++++++++++++++++++++ src/pages/login.vue | 136 ++++++++++++++---------- 3 files changed, 309 insertions(+), 76 deletions(-) create mode 100644 src/components/bg-identify.vue diff --git a/config/index.js b/config/index.js index b1176b4..4ed19ad 100644 --- a/config/index.js +++ b/config/index.js @@ -1,19 +1,47 @@ -'use strict' +"use strict"; // Template version: 1.3.1 // see http://vuejs-templates.github.io/webpack for documentation. -const path = require('path') +const path = require("path"); module.exports = { dev: { - // Paths - assetsSubDirectory: 'static', - assetsPublicPath: '/', - proxyTable: {}, + assetsSubDirectory: "static", + assetsPublicPath: "/", + proxyTable: { + "/apaas": { + target: "https://apaas3.wodcloud.com/apaas/", + changeOrigin: true, + pathRewrite: { + "^/apaas": "", + }, + }, + "/awecloud": { + target: "https://apaas3.wodcloud.com/awecloud/", + changeOrigin: true, + pathRewrite: { + "^/awecloud": "", + }, + }, + "/vmap": { + target: "https://apaas3.wodcloud.com/vmap/", + changeOrigin: true, + pathRewrite: { + "^/vmap": "", + }, + }, + "/iam": { + target: "https://apaas3.wodcloud.com/iam/", + changeOrigin: true, + pathRewrite: { + "^/iam": "", + }, + }, + }, // Various Dev Server settings - host: 'localhost', // can be overwritten by process.env.HOST + host: "localhost", // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: false, errorOverlay: true, @@ -33,44 +61,44 @@ module.exports = { */ // https://webpack.js.org/configuration/devtool/#development - devtool: 'cheap-module-eval-source-map', + devtool: "cheap-module-eval-source-map", // If you have problems debugging vue-files in devtools, // set this to false - it *may* help // https://vue-loader.vuejs.org/en/options.html#cachebusting cacheBusting: true, - cssSourceMap: true + cssSourceMap: true, }, build: { // Template for index.html - index: path.resolve(__dirname, '../dist', 'iam','login', 'index.html'), + index: path.resolve(__dirname, "../dist", "iam", "login", "index.html"), // Paths - assetsRoot: path.resolve(__dirname, '../dist', 'iam','login'), - assetsSubDirectory: 'static', - assetsPublicPath: '/iam/login/', + assetsRoot: path.resolve(__dirname, "../dist", "iam", "login"), + assetsSubDirectory: "static", + assetsPublicPath: "/iam/login/", /** - * Source Maps + * Source Maps */ productionSourceMap: true, // https://webpack.js.org/configuration/devtool/#production - devtool: '#source-map', + devtool: "#source-map", // Gzip off by default as many popular static hosts such as // Surge or Netlify already gzip all static assets for you. // Before setting to `true`, make sure to: // npm install --save-dev compression-webpack-plugin productionGzip: false, - productionGzipExtensions: ['js', 'css'], + productionGzipExtensions: ["js", "css"], // Run the build command with an extra argument to // View the bundle analyzer report after build finishes: // `npm run build --report` // Set to `true` or `false` to always turn it on or off - bundleAnalyzerReport: process.env.npm_config_report - } -} + bundleAnalyzerReport: process.env.npm_config_report, + }, +}; diff --git a/src/components/bg-identify.vue b/src/components/bg-identify.vue new file mode 100644 index 0000000..e59ba2f --- /dev/null +++ b/src/components/bg-identify.vue @@ -0,0 +1,183 @@ + + + diff --git a/src/pages/login.vue b/src/pages/login.vue index c74fc6c..223a80c 100644 --- a/src/pages/login.vue +++ b/src/pages/login.vue @@ -50,17 +50,20 @@ class="yzm" :class="ruleFormIcon.yzm ? '' : 'icon_show'" > - - +
+ + +
@@ -230,8 +233,8 @@

验证码

- - +
+ + + +
@@ -291,13 +297,15 @@ - + +