Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
transport-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
transport-show-h5
Commits
3c6666a1
提交
3c6666a1
authored
7月 08, 2020
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fixes
上级
87db0f30
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
15 行增加
和
1 行删除
+15
-1
CourseItem.vue
src/components/CourseItem.vue
+8
-0
index.html
src/index.html
+1
-1
courseTagMessage.vue
src/pages/course/tag/courseTagMessage.vue
+3
-0
index.vue
src/pages/home/index.vue
+3
-0
没有找到文件。
src/components/CourseItem.vue
浏览文件 @
3c6666a1
...
@@ -19,16 +19,24 @@ export default {
...
@@ -19,16 +19,24 @@ export default {
computed
:
{
computed
:
{
curriculum
()
{
curriculum
()
{
return
this
.
data
.
curriculum
return
this
.
data
.
curriculum
},
isWeapp
()
{
return
this
.
$store
.
state
.
isWeapp
}
}
},
},
methods
:
{
methods
:
{
onClick
(
data
)
{
onClick
(
data
)
{
if
(
this
.
isWeapp
)
{
const
url
=
`/pages/web/index?src=
${
window
.
location
.
origin
}
/course/learn/
${
data
.
course_id
}
`
wx
.
miniProgram
.
navigateTo
({
url
})
}
else
{
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'courseLearnItem'
,
name
:
'courseLearnItem'
,
params
:
{
id
:
data
.
course_id
}
params
:
{
id
:
data
.
course_id
}
})
})
}
}
}
}
}
}
}
</
script
>
</
script
>
...
...
src/index.html
浏览文件 @
3c6666a1
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<meta
http-equiv=
"Cache-Control"
content=
"no-cache, no-store, must-revalidate"
/>
<meta
http-equiv=
"Cache-Control"
content=
"no-cache, no-store, must-revalidate"
/>
<meta
http-equiv=
"Pragma"
content=
"no-cache"
/>
<meta
http-equiv=
"Pragma"
content=
"no-cache"
/>
<meta
http-equiv=
"Expires"
content=
"0"
/>
<meta
http-equiv=
"Expires"
content=
"0"
/>
<title>
道路运输安全知识线上课
</title>
<title></title>
<meta
name=
"viewport"
id=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no"
>
<meta
name=
"viewport"
id=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no"
>
</head>
</head>
<body>
<body>
...
...
src/pages/course/tag/courseTagMessage.vue
浏览文件 @
3c6666a1
...
@@ -48,6 +48,9 @@ export default {
...
@@ -48,6 +48,9 @@ export default {
return
{
return
{
'has-more'
:
this
.
hasMore
&&
!
this
.
showMore
'has-more'
:
this
.
hasMore
&&
!
this
.
showMore
}
}
},
isWeapp
()
{
return
this
.
$store
.
state
.
isWeapp
}
}
},
},
methods
:
{
methods
:
{
...
...
src/pages/home/index.vue
浏览文件 @
3c6666a1
...
@@ -38,6 +38,9 @@ import * as api from '@/api/course.js'
...
@@ -38,6 +38,9 @@ import * as api from '@/api/course.js'
export
default
{
export
default
{
name
:
'Index'
,
name
:
'Index'
,
components
:
{
SearchBar
,
Card
,
FreeCourseItem
},
components
:
{
SearchBar
,
Card
,
FreeCourseItem
},
metaInfo
:
{
title
:
'道路运输安全知识线上课'
},
data
()
{
data
()
{
return
{
return
{
courseList
:
[]
// 免费课程列表
courseList
:
[]
// 免费课程列表
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论