-
+
+
+
+
+
@@ -129,7 +136,10 @@ export default {
loading: false,
//预警滚动是否有数据
isHasData: true,
- busy: true
+ busy: true,
+ // 窗口数量
+ boxNum: 1,
+ classStyle: 'ball-content'
};
},
created() {
@@ -262,8 +272,15 @@ export default {
// 轮播图切换时触发
loadVioInfos(newIndex, oldIndex) {
this.loadPhotosById(newIndex);
- // alert(newIndex)
- // alert(oldIndex)
+ },
+ // 切换播放窗口
+ changePlayVideo(type) {
+ this.boxNum = type;
+ if (type == 1) {
+ this.classStyle = 'ball-content'
+ } else {
+ this.classStyle = 'ball-content-4'
+ }
},
//给梳妆街头不同层级设置不同的icon
renderContent(h, { node, data }) {
@@ -497,6 +514,9 @@ export default {
.video-box {
width: 100%;
height: calc(100% - 275px);
+ flex-wrap: wrap;
+ align-items: center;
+ justify-content: space-around;
}
.ball-content {
@@ -506,6 +526,13 @@ export default {
object-fit: fill;
}
+.ball-content-4 {
+ width: 49.5%;
+ height: 49%;
+ pointer-events: none;
+ object-fit: fill;
+}
+
.vio-box {
width: 100%;
height: 200px;