Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
login
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
login
Commits
0a1049f5
提交
0a1049f5
authored
10月 19, 2020
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增kelley登录模块
上级
ba982fbb
隐藏空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
176 行增加
和
22 行删除
+176
-22
.config.dev.js
.config.dev.js
+3
-0
.config.pro.js
.config.pro.js
+3
-0
.config.test.js
.config.test.js
+3
-0
languageSwitch.vue
src/components/languageSwitch.vue
+15
-16
loginAccount.vue
src/components/loginAccount.vue
+1
-1
loginCode.vue
src/components/loginCode.vue
+1
-1
login.vue
src/pages/ciis/login.vue
+0
-1
password.vue
src/pages/ciis/password.vue
+1
-1
login_logo.png
src/pages/kelley/assets/login_logo.png
+0
-0
logo.png
src/pages/kelley/assets/logo.png
+0
-0
layout.vue
src/pages/kelley/components/layout.vue
+65
-0
login.vue
src/pages/kelley/login.vue
+36
-0
password.vue
src/pages/kelley/password.vue
+26
-0
login.vue
src/pages/sofia/login.vue
+0
-1
password.vue
src/pages/sofia/password.vue
+1
-1
routes.js
src/router/routes.js
+21
-0
没有找到文件。
.config.dev.js
浏览文件 @
0a1049f5
...
...
@@ -36,6 +36,9 @@ module.exports = {
sofia
:
{
url
:
'http://sofia-learning2.ezijing.com'
},
kelley
:
{
url
:
'http://kelley-learning2.ezijing.com'
},
ciis
:
{
url
:
'http://ciis-learning2.ezijing.com'
}
...
...
.config.pro.js
浏览文件 @
0a1049f5
...
...
@@ -17,6 +17,9 @@ module.exports = {
sofia
:
{
url
:
'http://sofia-learning.ezijing.com'
},
kelley
:
{
url
:
'http://kelley-learning.ezijing.com'
},
ciis
:
{
url
:
'http://ciis-learning.ezijing.com'
}
...
...
.config.test.js
浏览文件 @
0a1049f5
...
...
@@ -18,6 +18,9 @@ module.exports = {
sofia
:
{
url
:
'http://sofia-learning2.ezijing.com'
},
kelley
:
{
url
:
'http://kelley-learning2.ezijing.com'
},
ciis
:
{
url
:
'http://ciis-learning2.ezijing.com'
}
...
...
src/components/languageSwitch.vue
浏览文件 @
0a1049f5
<
template
>
<div
class=
"tap-language-switch"
>
<el-menu
class=
"el-menu-demo"
mode=
"horizontal"
@
select=
"handleSelect"
>
<el-submenu
index=
"1"
>
<template
slot=
"title"
>
{{
show
}}
</
template
>
<
template
v-for=
"item in language.arr"
>
<template
v-for=
"(v, k) in item"
>
<el-menu-item
:key=
"k"
:index=
"k"
>
{{
v
}}
</el-menu-item>
<div
class=
"tap-language-switch"
>
<el-menu
class=
"el-menu-demo"
mode=
"horizontal"
@
select=
"handleSelect"
>
<el-submenu
index=
"1"
>
<template
slot=
"title"
>
{{
show
}}
</
template
>
<
template
v-for=
"item in language.arr"
>
<template
v-for=
"(v, k) in item"
>
<el-menu-item
:key=
"k"
:index=
"k"
>
{{
v
}}
</el-menu-item>
</
template
>
</template>
</template>
</el-submenu>
</el-menu>
</div>
</el-submenu>
</el-menu>
</div>
</template>
<
script
>
...
...
@@ -18,9 +18,8 @@ import Cookies from 'js-cookie'
import
language
from
'@/assets/languages/language'
export
default
{
name
:
'sLanguage'
,
componentName
:
'sLanguage'
,
data
()
{
name
:
'LanguageSwitch'
,
data
()
{
const
_defaultLocale
=
'zh-CN'
const
_lang
=
Cookies
.
get
(
'lang'
)
||
window
.
navigator
.
language
||
window
.
navigator
.
userLanguage
||
''
if
(
_lang
)
{
...
...
@@ -58,9 +57,9 @@ export default {
language
:
language
[
this
.
$i18n
.
locale
]
}
},
mounted
()
{},
mounted
()
{},
methods
:
{
handleSelect
(
key
,
val
)
{
handleSelect
(
key
,
val
)
{
Cookies
.
set
(
'lang'
,
key
,
{
expires
:
30
,
domain
:
'.ezijing.com'
})
this
.
$i18n
.
locale
=
key
/* 刷新页面 */
...
...
src/components/loginAccount.vue
浏览文件 @
0a1049f5
...
...
@@ -30,7 +30,7 @@
import
*
as
api
from
'@/api/account'
export
default
{
name
:
'
AccountLogin
'
,
name
:
'
LoginAccount
'
,
data
()
{
return
{
ruleForm
:
{
type
:
1
,
account
:
''
,
password
:
''
,
RememberMe
:
false
,
service
:
'https://h5.ezijing.com'
},
...
...
src/components/loginCode.vue
浏览文件 @
0a1049f5
...
...
@@ -33,7 +33,7 @@ import * as api from '@/api/account'
import
countdown
from
'./countdown.vue'
export
default
{
name
:
'
CodeLogin
'
,
name
:
'
LoginCode
'
,
components
:
{
countdown
},
data
()
{
return
{
...
...
src/pages/ciis/login.vue
浏览文件 @
0a1049f5
...
...
@@ -4,7 +4,6 @@
<
script
>
export
default
{
name
:
'CiisLogin'
,
methods
:
{
handleSuccess
(
response
)
{
const
{
url
}
=
webConf
.
others
.
ciis
...
...
src/pages/ciis/password.vue
浏览文件 @
0a1049f5
...
...
@@ -8,7 +8,7 @@
</
template
>
<
script
>
export
default
{
name
:
'CiisPassword'
}
export
default
{}
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
src/pages/kelley/assets/login_logo.png
0 → 100644
浏览文件 @
0a1049f5
9.3 KB
src/pages/kelley/assets/logo.png
0 → 100644
浏览文件 @
0a1049f5
7.6 KB
src/pages/kelley/components/layout.vue
0 → 100644
浏览文件 @
0a1049f5
<
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
>
src/pages/kelley/login.vue
0 → 100644
浏览文件 @
0a1049f5
<
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
>
src/pages/kelley/password.vue
0 → 100644
浏览文件 @
0a1049f5
<
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
>
src/pages/sofia/login.vue
浏览文件 @
0a1049f5
...
...
@@ -17,7 +17,6 @@
<
script
>
export
default
{
name
:
'SofiaLogin'
,
methods
:
{
handleSuccess
(
response
)
{
const
{
url
}
=
webConf
.
others
.
sofia
...
...
src/pages/sofia/password.vue
浏览文件 @
0a1049f5
...
...
@@ -8,7 +8,7 @@
</
template
>
<
script
>
export
default
{
name
:
'SofiaPassword'
}
export
default
{}
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
src/router/routes.js
浏览文件 @
0a1049f5
...
...
@@ -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'
,
component
:
()
=>
import
(
/* webpackChunkName: "ciis" */
'../pages/ciis/components/layout.vue'
),
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论