Commit d8d4f664 authored by jiangqihao's avatar jiangqihao

登入

parent 3b360dbc
......@@ -2,7 +2,7 @@ import request from '@/utils/request'
export function login(data) {
return request({
url: '/index/login',
url: '/login',
method: 'post',
data
})
......@@ -18,7 +18,7 @@ export function login(data) {
export function logout() {
return request({
url: '/index/logout',
url: '/logout',
method: 'get'
})
}
......
src/assets/images/login_top.png

133 KB | W: | H:

src/assets/images/login_top.png

10.1 KB | W: | H:

src/assets/images/login_top.png
src/assets/images/login_top.png
src/assets/images/login_top.png
src/assets/images/login_top.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -45,7 +45,7 @@ export default {
},
data() {
return {
title: '国民技术CRM管理系统',
title: '紫光计算机CRM管理系统',
logo: 'https://wpimg.wallstcn.com/69a1c46c-eb1c-4b46-8bd4-e9e686ef5251.png'
}
}
......
......@@ -5,7 +5,7 @@
<div class="title-container">
<img src="../../assets/images/login_top.png">
<h3 class="title">客户关系管理系统</h3>
<h4 class="title-sub">Customer Relationship Management</h4>
<!-- <h4 class="title-sub">Customer Relationship Management</h4> -->
<!-- <lang-select class="set-language" /> -->
</div>
......@@ -48,7 +48,12 @@
</el-form-item>
</el-tooltip>
<el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;" @click.native.prevent="handleLogin">
<el-button
:loading="loading"
type="primary"
style="width:100%;margin-bottom:30px;background-color:rgb(162,39,150);border:none"
@click.native.prevent="handleLogin"
>
{{ $t('login.logIn') }}
</el-button>
......@@ -70,10 +75,10 @@
</div> -->
</el-form>
<div class="login-footer">
<p>Copyright © www.nationstech.com, All Rights Reserved.</p>
<p>创新服务全民</p>
</div>
<!-- <div class="login-footer"> -->
<!-- <p>Copyright © www.nationstech.com, All Rights Reserved.</p> -->
<!-- <p>创新服务全民</p>
</div> -->
<!-- <el-dialog :title="$t('login.thirdparty')" :visible.sync="showDialog">
{{ $t('login.thirdpartyTips') }}
......@@ -171,8 +176,8 @@ export default {
if (valid) {
this.loading = true
const params = {
ext_EmployeeUserName_KUT: this.loginForm.username,
ext_EmployeePassword_KUT: this.loginForm.password
extUserName_SDK: this.loginForm.username,
extPassword_SDK: this.loginForm.password
}
this.$store.dispatch('user/login', params)
.then(() => {
......@@ -224,7 +229,7 @@ export default {
/* reset element-ui css */
.login-container {
background: url('../../assets/images/login_bg.png');
// background: url('../../assets/images/login_bg.png');
background-size: cover;
.el-input {
display: inline-block;
......@@ -307,15 +312,15 @@ $dark_gray:#889aa4;
.title-container {
position: relative;
margin: 50px auto;
img {
width: 80%;
margin-left: 10%;
width: 50%;
margin-left: 25%;
}
.title {
font-size: 36px;
color: #154188;
margin: 0 auto 10px;
font-size: 20px;
// color: #154188;
margin: 20px auto;
text-align: center;
// font-family: '微软雅黑 Bold', '微软雅黑';
font-weight: 700;
......
......@@ -32,7 +32,7 @@ module.exports = {
devServer: {
proxy: {
'/portal': {
target: 'https://portalapplicationkmif3wwkv6.cn1.platform.sapcloud.cn/',
target: 'https://devcrm.wangyouyu.com/',
// target: 'http://localhost:8080/',
secure: false,
changeOrigin: true,
......@@ -51,26 +51,6 @@ module.exports = {
}
}
},
'/job': {
target: 'https://jobapplicationkmif3wwkv6.cn1.platform.sapcloud.cn/',
// target: 'http://localhost:8080/',
secure: false,
changeOrigin: true,
pathRewrite: {
'^/job/': '/' // rewrite path
},
onProxyReq: function(proxyReq, req, res, options) { // 由于vue中使用了body-parser 导致http中的body被序列化两次,从而使得配置代理后后端无法获取body中的数据
if (req.body) {
const reg = new RegExp('application/json')
if (reg.test(proxyReq.getHeader('Content-Type'))) {
const bodyData = JSON.stringify(req.body)
proxyReq.setHeader('Content-Length', Buffer.byteLength(bodyData))
// stream the content
proxyReq.write(bodyData)
}
}
}
}
},
port: port,
open: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment