提交 5890cba9 authored 作者: lihuihui's avatar lihuihui

Merge branch 'master' of https://gitlab.ezijing.com/ezijing/login

...@@ -36,6 +36,9 @@ module.exports = { ...@@ -36,6 +36,9 @@ module.exports = {
sofia: { sofia: {
url: 'http://sofia-learning2.ezijing.com' url: 'http://sofia-learning2.ezijing.com'
}, },
kelley: {
url: 'http://kelley-learning2.ezijing.com'
},
ciis: { ciis: {
url: 'http://ciis-learning2.ezijing.com' url: 'http://ciis-learning2.ezijing.com'
} }
......
...@@ -17,6 +17,9 @@ module.exports = { ...@@ -17,6 +17,9 @@ module.exports = {
sofia: { sofia: {
url: 'http://sofia-learning.ezijing.com' url: 'http://sofia-learning.ezijing.com'
}, },
kelley: {
url: 'http://kelley-learning.ezijing.com'
},
ciis: { ciis: {
url: 'http://ciis-learning.ezijing.com' url: 'http://ciis-learning.ezijing.com'
} }
......
...@@ -18,6 +18,9 @@ module.exports = { ...@@ -18,6 +18,9 @@ module.exports = {
sofia: { sofia: {
url: 'http://sofia-learning2.ezijing.com' url: 'http://sofia-learning2.ezijing.com'
}, },
kelley: {
url: 'http://kelley-learning2.ezijing.com'
},
ciis: { ciis: {
url: 'http://ciis-learning2.ezijing.com' url: 'http://ciis-learning2.ezijing.com'
} }
......
<template> <template>
<div class="tap-language-switch"> <div class="tap-language-switch">
<el-menu class="el-menu-demo" mode="horizontal" @select="handleSelect"> <el-menu class="el-menu-demo" mode="horizontal" @select="handleSelect">
<el-submenu index="1"> <el-submenu index="1">
<template slot="title">{{ show }}</template> <template slot="title">{{ show }}</template>
<template v-for="item in language.arr"> <template v-for="item in language.arr">
<template v-for="(v, k) in item"> <template v-for="(v, k) in item">
<el-menu-item :key="k" :index="k">{{v}}</el-menu-item> <el-menu-item :key="k" :index="k">{{ v }}</el-menu-item>
</template>
</template> </template>
</template> </el-submenu>
</el-submenu> </el-menu>
</el-menu> </div>
</div>
</template> </template>
<script> <script>
...@@ -18,9 +18,8 @@ import Cookies from 'js-cookie' ...@@ -18,9 +18,8 @@ import Cookies from 'js-cookie'
import language from '@/assets/languages/language' import language from '@/assets/languages/language'
export default { export default {
name: 'sLanguage', name: 'LanguageSwitch',
componentName: 'sLanguage', data() {
data () {
const _defaultLocale = 'zh-CN' const _defaultLocale = 'zh-CN'
const _lang = Cookies.get('lang') || window.navigator.language || window.navigator.userLanguage || '' const _lang = Cookies.get('lang') || window.navigator.language || window.navigator.userLanguage || ''
if (_lang) { if (_lang) {
...@@ -58,9 +57,9 @@ export default { ...@@ -58,9 +57,9 @@ export default {
language: language[this.$i18n.locale] language: language[this.$i18n.locale]
} }
}, },
mounted () {}, mounted() {},
methods: { methods: {
handleSelect (key, val) { handleSelect(key, val) {
Cookies.set('lang', key, { expires: 30, domain: '.ezijing.com' }) Cookies.set('lang', key, { expires: 30, domain: '.ezijing.com' })
this.$i18n.locale = key this.$i18n.locale = key
/* 刷新页面 */ /* 刷新页面 */
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
import * as api from '@/api/account' import * as api from '@/api/account'
export default { export default {
name: 'AccountLogin', name: 'LoginAccount',
data() { data() {
return { return {
ruleForm: { type: 1, account: '', password: '', RememberMe: false, service: 'https://h5.ezijing.com' }, ruleForm: { type: 1, account: '', password: '', RememberMe: false, service: 'https://h5.ezijing.com' },
......
...@@ -33,7 +33,7 @@ import * as api from '@/api/account' ...@@ -33,7 +33,7 @@ import * as api from '@/api/account'
import countdown from './countdown.vue' import countdown from './countdown.vue'
export default { export default {
name: 'CodeLogin', name: 'LoginCode',
components: { countdown }, components: { countdown },
data() { data() {
return { return {
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
<script> <script>
export default { export default {
name: 'CiisLogin',
methods: { methods: {
handleSuccess(response) { handleSuccess(response) {
const { url } = webConf.others.ciis const { url } = webConf.others.ciis
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</template> </template>
<script> <script>
export default { name: 'CiisPassword' } export default {}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
<template>
<div class="wrapper">
<header class="header">
<div class="header-logo">
<img src="../assets/logo.png" />
</div>
<div class="header-title">在线学习系统</div>
</header>
<section class="main">
<router-view></router-view>
</section>
<footer class="footer">
<p class="t1">
学习平台服务电话:010-62793299
<br />服务时间:9:00-18:00
</p>
<p class="t2">
Copyright © 2020 Zijing Education. All rights reserved.
<br />清控紫荆(北京)教育科技股份有限公司 京ICP证150431号 京公网安备 11010802023681号
</p>
</footer>
</div>
</template>
<script>
export default { name: 'SofiaLayout' }
</script>
<style lang="scss" scoped>
.wrapper {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.header {
height: 100px;
padding: 30px 0 20px;
text-align: center;
}
.header-title {
margin-top: 5px;
font-size: 32px;
font-weight: 700;
letter-spacing: 5px;
}
.main {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
background-color: #981838;
padding: 40px 20px;
}
.footer {
padding: 20px 10px;
text-align: center;
.t1 {
color: #535353;
}
.t2 {
margin-top: 10px;
color: #898989;
}
}
</style>
<template>
<div class="login">
<el-row type="flex" justify="space-between" align="middle" style="width: 100%">
<el-col :span="12" class="hidden-xs-only">
<div class="login-logo">
<img src="./assets/login_logo.png" />
</div>
</el-col>
<el-col :span="12" :xs="24">
<div class="login-box">
<router-view @success="handleSuccess"></router-view>
</div>
</el-col>
</el-row>
</div>
</template>
<script>
export default {
methods: {
handleSuccess(response) {
const { url } = webConf.others.kelley
window.location.href = url
}
}
}
</script>
<style lang="scss" scoped>
.login {
color: #fff;
width: 100%;
max-width: 660px;
margin: 0 auto;
}
</style>
<template>
<div class="password">
<el-page-header @back="$router.push('login')" title="返回登录" content="忘记密码"></el-page-header>
<div class="password-form">
<router-view></router-view>
</div>
</div>
</template>
<script>
export default {}
</script>
<style lang="scss" scoped>
.password {
width: 100%;
max-width: 1000px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
}
.password-form {
max-width: 340px;
margin: 40px auto;
}
</style>
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
<script> <script>
export default { export default {
name: 'SofiaLogin',
methods: { methods: {
handleSuccess(response) { handleSuccess(response) {
const { url } = webConf.others.sofia const { url } = webConf.others.sofia
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</template> </template>
<script> <script>
export default { name: 'SofiaPassword' } export default {}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
...@@ -25,6 +25,27 @@ export default [ ...@@ -25,6 +25,27 @@ export default [
} }
] ]
}, },
{
path: '/kelley',
component: () => import(/* webpackChunkName: "kelley" */ '../pages/kelley/components/layout.vue'),
children: [
{ path: '', redirect: 'login/index' },
{
path: 'login',
component: () => import(/* webpackChunkName: "kelley" */ '../pages/kelley/login.vue'),
children: [
{ path: '', redirect: 'index' },
{ path: 'index', component: loginAccount },
{ path: 'code', component: loginCode }
]
},
{
path: 'password',
component: () => import(/* webpackChunkName: "kelley" */ '../pages/kelley/password.vue'),
children: [{ path: '', component: password }]
}
]
},
{ {
path: '/ciis', path: '/ciis',
component: () => import(/* webpackChunkName: "ciis" */ '../pages/ciis/components/layout.vue'), component: () => import(/* webpackChunkName: "ciis" */ '../pages/ciis/components/layout.vue'),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论