|
|
@@ -24,7 +24,12 @@
|
|
|
</el-row>
|
|
|
</el-col>
|
|
|
<el-col :md="6">
|
|
|
- <hot-video />
|
|
|
+ <el-row style="padding-right: 5px; padding-left: 5px; padding-bottom: 5px">
|
|
|
+ <site-notice />
|
|
|
+ </el-row>
|
|
|
+ <el-row style="padding-right: 5px; padding-left: 5px; padding-bottom: 5px">
|
|
|
+ <hot-video />
|
|
|
+ </el-row>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
@@ -33,11 +38,12 @@
|
|
|
<script>
|
|
|
import VideoCard from '@/components/card/VideoCard'
|
|
|
import HotVideo from '@/components/card/HotVideo'
|
|
|
+import SiteNotice from '@/components/card/SiteNotice'
|
|
|
import { videoRecommend } from '@/api/video'
|
|
|
|
|
|
export default {
|
|
|
name: 'Index',
|
|
|
- components: { VideoCard, HotVideo },
|
|
|
+ components: { VideoCard, HotVideo, SiteNotice },
|
|
|
data() {
|
|
|
return {
|
|
|
// 屏幕宽度, 为了控制分页条的大小
|
|
|
@@ -88,7 +94,7 @@ export default {
|
|
|
},
|
|
|
load() {
|
|
|
this.max++
|
|
|
- if (this.max > 10) {
|
|
|
+ if (this.max > 1) {
|
|
|
return
|
|
|
}
|
|
|
|