Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-learn
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-learn
Commits
734c6301
提交
734c6301
authored
3月 08, 2021
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增实操课程库
上级
38623c0b
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
127 行增加
和
7 行删除
+127
-7
.config.dev.js
.config.dev.js
+2
-1
.config.pro.js
.config.pro.js
+2
-1
.config.test.js
.config.test.js
+2
-1
aside.vue
src/components/layout/aside.vue
+1
-3
index.vue
src/pages/teacher/practicalCourse/index.vue
+110
-0
routes.js
src/router/routes.js
+10
-1
没有找到文件。
.config.dev.js
浏览文件 @
734c6301
...
@@ -34,6 +34,7 @@ module.exports = {
...
@@ -34,6 +34,7 @@ module.exports = {
ProvidePlugin
:
{},
ProvidePlugin
:
{},
others
:
{
others
:
{
baseUrl
:
'https://learn-api2.ezijing.com'
,
baseUrl
:
'https://learn-api2.ezijing.com'
,
loginUrl
:
'https://login2.ezijing.com/xlearn/login/index'
loginUrl
:
'https://login2.ezijing.com/xlearn/login/index'
,
xtrainingUrl
:
'https://x-training2.ezijing.com'
}
}
}
}
.config.pro.js
浏览文件 @
734c6301
...
@@ -15,6 +15,7 @@ module.exports = {
...
@@ -15,6 +15,7 @@ module.exports = {
ProvidePlugin
:
{},
ProvidePlugin
:
{},
others
:
{
others
:
{
baseUrl
:
'https://learn-api.ezijing.com'
,
baseUrl
:
'https://learn-api.ezijing.com'
,
loginUrl
:
'https://login.ezijing.com/xlearn/login/index'
loginUrl
:
'https://login.ezijing.com/xlearn/login/index'
,
xtrainingUrl
:
'https://xtraining.ezijing.com'
}
}
}
}
.config.test.js
浏览文件 @
734c6301
...
@@ -15,6 +15,7 @@ module.exports = {
...
@@ -15,6 +15,7 @@ module.exports = {
ProvidePlugin
:
{},
ProvidePlugin
:
{},
others
:
{
others
:
{
baseUrl
:
'https://learn-api2.ezijing.com'
,
baseUrl
:
'https://learn-api2.ezijing.com'
,
loginUrl
:
'https://login2.ezijing.com/xlearn/login/index'
loginUrl
:
'https://login2.ezijing.com/xlearn/login/index'
,
xtrainingUrl
:
'https://x-training2.ezijing.com'
}
}
}
}
src/components/layout/aside.vue
浏览文件 @
734c6301
...
@@ -91,9 +91,7 @@ export default {
...
@@ -91,9 +91,7 @@ export default {
{
{
title
:
'实操资源'
,
title
:
'实操资源'
,
icon
:
'icon-kaoshihong'
,
icon
:
'icon-kaoshihong'
,
children
:
[
children
:
[{
title
:
'实操课程库'
,
path
:
'/teacher/practicalCourse'
}]
{
title
:
'实操课程库'
,
path
:
'https://xtraining.ezijing.com/'
,
href
:
'https://xtraining.ezijing.com/'
}
]
}
}
// {
// {
// title: '试题库',
// title: '试题库',
...
...
src/pages/teacher/practicalCourse/index.vue
0 → 100644
浏览文件 @
734c6301
<
template
>
<app-container
title=
"实操课程库"
>
<template
#
header-right
>
<div
class=
"search"
>
<el-input
prefix-icon=
"el-icon-search"
clearable
v-model=
"searchValue"
@
keyup
.
enter
.
native=
"handleSearch"
/>
<el-button
type=
"text"
@
click=
"handleSearch"
>
搜索
</el-button>
</div>
</
template
>
<div
v-for=
"(item, index) in currentList"
:key=
"index"
>
<div
class=
"course-item"
@
click=
"handleClick(item)"
>
<img
class=
"course-item-pic"
:src=
"item.pic"
/>
<div
class=
"course-item-content"
>
<div
class=
"course-item__title"
>
{{ item.title }}
</div>
</div>
<div
class=
"course-item__buttons"
>
<el-button
type=
"primary"
size=
"small"
round
>
进入系统
</el-button>
</div>
</div>
</div>
</app-container>
</template>
<
script
>
import
AppContainer
from
'@/components/AppContainer'
export
default
{
components
:
{
AppContainer
},
data
()
{
return
{
searchValue
:
''
,
list
:
[
{
pic
:
'https://img1.ezijing.com/curriculum/course/3698bdf1498796a9c904ff7580aef528.jpg'
,
title
:
'金融产品数字化营销职业技能等级证书学习平台实操初级'
},
{
pic
:
'https://img1.ezijing.com/curriculum/course/ccbf8c883ff3fcab7098775121d95d34.jpg'
,
title
:
'金融产品数字化营销职业技能等级证书学习平台实操中级'
},
{
pic
:
'https://img1.ezijing.com/curriculum/course/d29395d238e5b074e04cebdf6e845185.jpg'
,
title
:
'金融产品数字化营销职业技能等级证书学习平台实操高级'
}
]
}
},
computed
:
{
currentList
()
{
if
(
!
this
.
searchValue
)
{
return
this
.
list
}
return
this
.
list
.
filter
(
item
=>
{
return
item
.
title
.
includes
(
this
.
searchValue
.
trim
())
})
}
},
methods
:
{
handleClick
(
data
)
{
window
.
open
(
webConf
.
others
.
xtrainingUrl
)
},
// 搜索
handleSearch
()
{}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.search
{
display
:
flex
;
width
:
300px
;
.el-button
{
margin-left
:
10px
;
}
}
.course-item
{
display
:
flex
;
padding
:
14px
0
;
cursor
:
pointer
;
}
.course-item
+
.course-item
{
border-top
:
1px
solid
#ccc
;
}
.course-item-pic
{
width
:
160px
;
height
:
90px
;
margin-right
:
20px
;
border-radius
:
2px
;
overflow
:
hidden
;
cursor
:
pointer
;
}
.course-item-content
{
flex
:
1
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-between
;
overflow
:
hidden
;
}
.course-item__title
{
font-size
:
18px
;
font-weight
:
bold
;
color
:
#222
;
display
:
-
webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
overflow
:
hidden
;
}
.course-item__buttons
{
align-self
:
center
;
}
</
style
>
src/router/routes.js
浏览文件 @
734c6301
...
@@ -54,6 +54,14 @@ const examAnswer = [
...
@@ -54,6 +54,14 @@ const examAnswer = [
}
}
]
]
const
teacherRoutes
=
[
/* 模拟考试 */
{
path
:
'/teacher/practicalCourse'
,
component
:
()
=>
import
(
/* webpackChunkName: "exam" */
'@/pages/teacher/practicalCourse/index'
)
}
]
export
default
[
export
default
[
{
path
:
'*'
,
redirect
:
'/index'
},
{
path
:
'*'
,
redirect
:
'/index'
},
{
path
:
'/'
,
redirect
:
'/course/learn'
},
{
path
:
'/'
,
redirect
:
'/course/learn'
},
...
@@ -97,7 +105,8 @@ export default [
...
@@ -97,7 +105,8 @@ export default [
},
},
/* 考证课程 */
/* 考证课程 */
...
courseRoutes
,
...
courseRoutes
,
...
examAnswer
...
examAnswer
,
...
teacherRoutes
]
]
},
},
// 课程知识点详情
// 课程知识点详情
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论