Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
8102f02f
提交
8102f02f
authored
1月 05, 2021
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
学员须知增加国际化
上级
56e185a8
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
55 行增加
和
27 行删除
+55
-27
en.json
src/assets/languages/en.json
+10
-1
zh-CN.json
src/assets/languages/zh-CN.json
+10
-1
navigation.vue
src/components/learnSysLayout/navigation.vue
+35
-25
没有找到文件。
src/assets/languages/en.json
浏览文件 @
8102f02f
...
...
@@ -25,7 +25,16 @@
"learnSysLayout"
:
{
"navigation"
:
{
"title"
:
"Online Learning System"
,
"tip"
:
"Notifications"
"tip"
:
"Notifications"
,
"handlbook"
:
"Handlbook"
,
"library"
:
"Library"
,
"dialogTitle"
:
"Notice"
,
"dialogMessage1"
:
"Before using this online learning system, please read "
,
"dialogMessage2"
:
"
\"
Zijing-CIIS MAP Program Student Manual
\"
"
,
"dialogMessage3"
:
" very carefully, and agree to follow the instructions, policies and requirements."
,
"dialogMessageHref"
:
"https://zws-imgs-pub.oss-cn-beijing.aliyuncs.com/pc/ciis/CIIS%E5%AD%A6%E7%94%9F%E6%89%8B%E5%86%8C.pdf"
,
"dialogCheckbox"
:
"I have read and agreed."
,
"dialogButton"
:
"OK"
},
"sideBar"
:
{
"updatePic"
:
"Change profile photo"
,
...
...
src/assets/languages/zh-CN.json
浏览文件 @
8102f02f
...
...
@@ -25,7 +25,16 @@
"learnSysLayout"
:
{
"navigation"
:
{
"title"
:
"在线学习系统"
,
"tip"
:
"通知"
"tip"
:
"通知"
,
"handlbook"
:
"查看学员手册"
,
"library"
:
"电子图书馆"
,
"dialogTitle"
:
"学员须知"
,
"dialogMessage1"
:
"使用学习平台前,请认真阅读"
,
"dialogMessage2"
:
"《紫荆教育-CIIS应用心理学硕士项目学员手册》"
,
"dialogMessage3"
:
"内容,并同意遵守其中的各项要求。"
,
"dialogMessageHref"
:
"https://zws-imgs-pub.oss-cn-beijing.aliyuncs.com/pc/ciis/CIIS%E5%AD%A6%E7%94%9F%E6%89%8B%E5%86%8C.pdf"
,
"dialogCheckbox"
:
"我已阅读并同意"
,
"dialogButton"
:
"确定"
},
"sideBar"
:
{
"updatePic"
:
"修改头像"
,
...
...
src/components/learnSysLayout/navigation.vue
浏览文件 @
8102f02f
...
...
@@ -6,8 +6,8 @@
</div>
<div
class=
"nav-right"
>
<div
class=
"nav-a"
>
<a
:href=
"documentUrl"
target=
"_blank"
>
查看学员手册
</a>
<a
href=
"https://library.ciis.edu"
target=
"_blank"
>
电子图书馆
</a>
<a
:href=
"documentUrl"
target=
"_blank"
>
{{
$t
(
'components.learnSysLayout.navigation.handlbook'
)
}}
</a>
<a
href=
"https://library.ciis.edu"
target=
"_blank"
>
{{
$t
(
'components.learnSysLayout.navigation.library'
)
}}
</a>
</div>
<div
class=
"notify"
@
click=
"goNotify()"
>
{{
$t
(
'components.learnSysLayout.navigation.tip'
)
}}
...
...
@@ -16,7 +16,7 @@
<language-switch
/>
</div>
<el-dialog
title=
"学员须知
"
:title=
"$t('components.learnSysLayout.navigation.dialogTitle')
"
width=
"460px"
:visible
.
sync=
"dialogVisible"
:center=
"true"
...
...
@@ -27,16 +27,18 @@
>
<div
class=
"sign"
>
<p>
使用学习平台前,请认真阅读
<a
href=
"https://zws-imgs-pub.oss-cn-beijing.aliyuncs.com/pc/ciis/CIIS%E5%AD%A6%E7%94%9F%E6%89%8B%E5%86%8C.pdf"
target=
"_blank"
>
《紫荆教育-CIIS应用心理学硕士项目学员手册》
</a
>
内容,并同意遵守其中的各项要求。
{{
$t
(
'components.learnSysLayout.navigation.dialogMessage1'
)
}}
<a
:href=
"$t('components.learnSysLayout.navigation.dialogMessageHref')"
target=
"_blank"
>
{{
$t
(
'components.learnSysLayout.navigation.dialogMessage2'
)
}}
</a
>
{{
$t
(
'components.learnSysLayout.navigation.dialogMessage3'
)
}}
</p>
<el-checkbox
v-model=
"checked"
>
我已阅读并同意
</el-checkbox>
<el-checkbox
v-model=
"checked"
>
{{
$t
(
'components.learnSysLayout.navigation.dialogCheckbox'
)
}}
</el-checkbox>
</div>
<template
#
footer
>
<el-button
type=
"primary"
:disabled=
"!checked"
@
click=
"handlePrimary"
>
确 定
</el-button>
<el-button
type=
"primary"
:disabled=
"!checked"
@
click=
"handlePrimary"
>
{{
$t
(
'components.learnSysLayout.navigation.dialogButton'
)
}}
</el-button>
</
template
>
</el-dialog>
</div>
...
...
@@ -54,7 +56,8 @@ export default {
dialogVisible
:
false
,
checked
:
false
,
sign
:
{},
documentUrl
:
''
documentUrl
:
''
,
timer
:
null
}
},
mounted
()
{
...
...
@@ -103,23 +106,27 @@ export default {
return
response
})
},
setTimer
()
{
this
.
timer
=
setInterval
(()
=>
{
this
.
getSignDocument
(
this
.
sign
.
flowid
).
then
(
response
=>
{
if
(
this
.
documentUrl
)
{
this
.
clearTimer
()
this
.
dialogVisible
=
false
}
else
{
this
.
dialogVisible
=
true
}
})
},
5000
)
},
clearTimer
()
{
this
.
timer
&&
this
.
clearTimer
(
this
.
timer
)
},
handlePrimary
()
{
this
.
getSignDocument
(
this
.
sign
.
flowid
).
then
(
response
=>
{
if
(
this
.
documentUrl
)
{
this
.
dialogVisible
=
false
}
else
{
this
.
newWindowPreview
(
this
.
sign
.
shortUrl
)
}
})
this
.
setTimer
()
this
.
newWindowPreview
(
this
.
sign
.
shortUrl
)
},
handleClose
()
{
this
.
getSignDocument
(
this
.
sign
.
flowid
).
then
(
response
=>
{
if
(
this
.
documentUrl
)
{
this
.
dialogVisible
=
false
}
else
{
window
.
location
.
href
=
webConf
.
others
.
loginUrl
}
})
window
.
location
.
href
=
webConf
.
others
.
loginUrl
},
// 新窗口预览
newWindowPreview
(
url
)
{
...
...
@@ -133,6 +140,9 @@ export default {
},
beforeMount
()
{
this
.
createSign
()
},
destroyed
()
{
this
.
clearTimer
()
}
}
</
script
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论