mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 16:48:39 +08:00
优化百度统计代码,修复视频教程页面样式bug
This commit is contained in:
@@ -175,6 +175,12 @@ router.beforeEach(async(to, from, next) => {
|
||||
})
|
||||
}
|
||||
} else {
|
||||
// 百度统计代码
|
||||
if (process.env.VUE_APP_TYPE == 'example') {
|
||||
if (window._hmt) {
|
||||
window._hmt.push(['_trackPageview', '/#' + to.fullPath])
|
||||
}
|
||||
}
|
||||
next()
|
||||
}
|
||||
} else {
|
||||
@@ -186,6 +192,12 @@ router.beforeEach(async(to, from, next) => {
|
||||
}
|
||||
})
|
||||
} else {
|
||||
// 百度统计代码
|
||||
if (process.env.VUE_APP_TYPE == 'example') {
|
||||
if (window._hmt) {
|
||||
window._hmt.push(['_trackPageview', '/#' + to.fullPath])
|
||||
}
|
||||
}
|
||||
next()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<el-row>
|
||||
<el-col :md="18">
|
||||
<page-main>
|
||||
<page-main class="main">
|
||||
<iframe src="//player.bilibili.com/player.html?aid=500052419&bvid=BV1mK411A7Uv&cid=249428802&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" />
|
||||
</page-main>
|
||||
</el-col>
|
||||
@@ -9,10 +9,9 @@
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page-main {
|
||||
position: relative;
|
||||
.main {
|
||||
height: 0;
|
||||
padding-bottom: 60%;
|
||||
padding-bottom: 60% !important;
|
||||
}
|
||||
iframe {
|
||||
border: 1px solid #ccc;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<el-row>
|
||||
<el-col :md="18">
|
||||
<page-main>
|
||||
<page-main class="main">
|
||||
<iframe src="//player.bilibili.com/player.html?aid=627523969&bvid=BV1Vt4y1i7Sh&cid=249474659&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" />
|
||||
</page-main>
|
||||
</el-col>
|
||||
@@ -9,10 +9,9 @@
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page-main {
|
||||
position: relative;
|
||||
.main {
|
||||
height: 0;
|
||||
padding-bottom: 60%;
|
||||
padding-bottom: 60% !important;
|
||||
}
|
||||
iframe {
|
||||
border: 1px solid #ccc;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<el-row>
|
||||
<el-col :md="18">
|
||||
<page-main>
|
||||
<page-main class="main">
|
||||
<iframe src="//player.bilibili.com/player.html?aid=627509382&bvid=BV1Et4y1i7cJ&cid=249536051&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" />
|
||||
</page-main>
|
||||
</el-col>
|
||||
@@ -9,10 +9,9 @@
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page-main {
|
||||
position: relative;
|
||||
.main {
|
||||
height: 0;
|
||||
padding-bottom: 60%;
|
||||
padding-bottom: 60% !important;
|
||||
}
|
||||
iframe {
|
||||
border: 1px solid #ccc;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<el-row>
|
||||
<el-col :md="18">
|
||||
<page-main>
|
||||
<page-main class="main">
|
||||
<iframe src="//player.bilibili.com/player.html?aid=712619685&bvid=BV1kD4y197Rr&cid=249551213&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" />
|
||||
</page-main>
|
||||
</el-col>
|
||||
@@ -9,10 +9,9 @@
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page-main {
|
||||
position: relative;
|
||||
.main {
|
||||
height: 0;
|
||||
padding-bottom: 60%;
|
||||
padding-bottom: 60% !important;
|
||||
}
|
||||
iframe {
|
||||
border: 1px solid #ccc;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<el-row>
|
||||
<el-col :md="18">
|
||||
<page-main>
|
||||
<page-main class="main">
|
||||
<iframe src="//player.bilibili.com/player.html?aid=927682296&bvid=BV1mT4y1F7hL&cid=251963511&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" />
|
||||
</page-main>
|
||||
</el-col>
|
||||
@@ -9,10 +9,9 @@
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page-main {
|
||||
position: relative;
|
||||
.main {
|
||||
height: 0;
|
||||
padding-bottom: 60%;
|
||||
padding-bottom: 60% !important;
|
||||
}
|
||||
iframe {
|
||||
border: 1px solid #ccc;
|
||||
|
||||
Reference in New Issue
Block a user