Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-psp-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-psp-show-h5
Commits
159c101d
提交
159c101d
authored
1月 11, 2023
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
推荐课程增加url跳转
上级
0e340cfa
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
21 行增加
和
6 行删除
+21
-6
Index.vue
src/modules/course/views/Index.vue
+6
-1
CourseCard.vue
src/modules/home/components/CourseCard.vue
+8
-4
RecommendCourse.vue
src/modules/home/components/RecommendCourse.vue
+6
-1
types.ts
src/types.ts
+1
-0
没有找到文件。
src/modules/course/views/Index.vue
浏览文件 @
159c101d
...
...
@@ -41,13 +41,18 @@ useInfiniteScroll(
onMounted
(()
=>
{
handleGetCourseList
()
})
const
handleClickItem
=
(
item
:
any
)
=>
{
if
(
item
.
url
)
{
location
.
href
=
item
.
url
}
}
</
script
>
<
template
>
<img
src=
"https://webapp-pub.ezijing.com/project/prp-h5/course_banner.png"
style=
"width: 100%"
/>
<AppCard
title=
"推荐课程"
>
<div
ref=
"el"
>
<div
class=
"list_item"
v-for=
"(item, index) in courseList.list"
:key=
"index"
>
<div
class=
"list_item"
v-for=
"(item, index) in courseList.list"
:key=
"index"
@
click=
"handleClickItem(item)"
>
<img
:src=
"item.cover"
class=
"item_img"
/>
<div
class=
"item_right"
>
<div
class=
"right_tit"
>
{{
item
.
name
}}
</div>
...
...
src/modules/home/components/CourseCard.vue
浏览文件 @
159c101d
...
...
@@ -31,11 +31,15 @@ const docs = [
]
function
handleViewDoc
(
data
:
any
)
{
// window.open(data.url)
if
(
data
.
url
)
{
location
.
href
=
data
.
url
}
function
showTips
()
{
}
else
{
Notify
({
type
:
'primary'
,
message
:
'尚未开放'
})
}
}
// function showTips() {
// Notify({ type: 'primary', message: '尚未开放' })
// }
</
script
>
<
template
>
...
...
@@ -45,12 +49,12 @@ function showTips() {
<div
class=
"box box-test"
>
<h2>
免费课程
</h2>
<p
class=
"t1"
>
实战精华等你来看
</p>
<p
class=
"t2"
><a
@
click=
"showTips
"
>
去看看 >
</a></p>
<p
class=
"t2"
><a
href=
"https://fi.ezijing.com/shop/?activeIndex=2&type=free_course
"
>
去看看 >
</a></p>
</div>
<div
class=
"box box-notice"
>
<h2>
系统小课
</h2>
<p
class=
"t1"
>
专业思维 赢战未来
</p>
<p
class=
"t2"
><a
href=
"https://
prp.ezijing.com/personal
"
>
去看看 >
</a></p>
<p
class=
"t2"
><a
href=
"https://
fi.ezijing.com/shop/?activeIndex=3&type=system_course
"
>
去看看 >
</a></p>
</div>
</div>
<div
class=
"admission-left"
>
...
...
src/modules/home/components/RecommendCourse.vue
浏览文件 @
159c101d
...
...
@@ -10,6 +10,11 @@ getRecommendCourse().then(res => {
courseList
.
value
=
res
.
data
.
slice
(
0
,
3
)
}
})
const
handleClickItem
=
(
item
:
any
)
=>
{
if
(
item
.
url
)
{
location
.
href
=
item
.
url
}
}
</
script
>
<
template
>
...
...
@@ -22,7 +27,7 @@ getRecommendCourse().then(res => {
</div>
</
template
>
<div
class=
"course_list"
>
<div
class=
"list_item"
v-for=
"(item, index) in courseList.list"
:key=
"index"
>
<div
class=
"list_item"
v-for=
"(item, index) in courseList.list"
:key=
"index"
@
click=
"handleClickItem(item)"
>
<img
:src=
"item.cover"
class=
"item_img"
/>
<div
class=
"item_right"
>
<div
class=
"right_tit"
>
{{ item.name }}
</div>
...
...
src/types.ts
浏览文件 @
159c101d
...
...
@@ -84,6 +84,7 @@ export interface IRecommendCourse {
name
:
string
pv
:
string
weight
:
string
url
:
string
}
export
interface
ITeacherList
{
avatar
:
string
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论