提交 08a8d580 authored 作者: 王鹏飞's avatar 王鹏飞

feat: 增加相关视频

上级 adc5117f
...@@ -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, viewport-fit=cover"> <meta name="viewport" id="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no, viewport-fit=cover">
<!-- <script src="https://cdn.jsdelivr.net/npm/vconsole@3.3.4/dist/vconsole.min.js"></script> --> <!-- <script src="https://cdn.jsdelivr.net/npm/vconsole@3.3.4/dist/vconsole.min.js"></script> -->
</head> </head>
......
...@@ -206,5 +206,6 @@ export default { ...@@ -206,5 +206,6 @@ export default {
background: url('../../../assets/images/icon_backtop.png') no-repeat; background: url('../../../assets/images/icon_backtop.png') no-repeat;
background-size: contain; background-size: contain;
cursor: pointer; cursor: pointer;
margin-bottom: env(safe-area-inset-bottom);
} }
</style> </style>
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
<div class="inner"> <div class="inner">
<ul> <ul>
<li @click="toExamPage">去测试</li> <li @click="toExamPage">去测试</li>
<li @click="toExamPage" v-if="detail.has_video">相关视频</li>
</ul> </ul>
<ul> <ul>
<li @click="getCourseTag(detail.last)" v-if="detail.last">上一点</li> <li @click="getCourseTag(detail.last)" v-if="detail.last">上一点</li>
...@@ -144,7 +145,8 @@ export default { ...@@ -144,7 +145,8 @@ export default {
display: inline-block; display: inline-block;
height: 35px; height: 35px;
margin-left: 10px; margin-left: 10px;
padding: 0 30px; // padding: 0 30px;
padding: 0 10px;
font-size: 13px; font-size: 13px;
color: #fff; color: #fff;
line-height: 35px; line-height: 35px;
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
<div class="tools"> <div class="tools">
<ul> <ul>
<li @click="toExamPage">知识点考试</li> <li @click="toExamPage">知识点考试</li>
<li @click="toCourseVideo" v-if="data.has_video">相关视频</li>
</ul> </ul>
</div> </div>
</div> </div>
...@@ -27,6 +28,7 @@ ...@@ -27,6 +28,7 @@
export default { export default {
name: 'TagMessage', name: 'TagMessage',
props: { props: {
courseId: { type: String },
data: { type: Object } data: { type: Object }
}, },
data() { data() {
...@@ -82,6 +84,16 @@ export default { ...@@ -82,6 +84,16 @@ export default {
} else { } else {
this.$router.push({ path }) this.$router.push({ path })
} }
},
// 去课程视频页面
toCourseVideo() {
if (this.isWeapp) {
wx.miniProgram.navigateTo({
url: `/pages/course/item?id=${this.courseId}`
})
} else {
window.alert('请在微信小程序中打开')
}
} }
}, },
mounted() { mounted() {
......
...@@ -175,6 +175,7 @@ export default { ...@@ -175,6 +175,7 @@ export default {
text-align: center; text-align: center;
} }
.alarm-form { .alarm-form {
padding-bottom: env(safe-area-inset-bottom);
} }
.alarm-form-time { .alarm-form-time {
position: relative; position: relative;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论