|
@@ -23,6 +23,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<tbDetails
|
|
<tbDetails
|
|
|
|
+ ref="tbDetails"
|
|
@updateParent="changeData"
|
|
@updateParent="changeData"
|
|
:detailObj="detailObj"
|
|
:detailObj="detailObj"
|
|
v-show="isShowTb"
|
|
v-show="isShowTb"
|
|
@@ -109,10 +110,10 @@ export default {
|
|
this.isShowTb = false;
|
|
this.isShowTb = false;
|
|
this.imgIndex = -1;
|
|
this.imgIndex = -1;
|
|
console.log();
|
|
console.log();
|
|
- if (this.activeTabs == 'tbqd') {
|
|
|
|
- this.$refs.tbqd.init()
|
|
|
|
|
|
+ if (this.activeTabs == "tbqd") {
|
|
|
|
+ this.$refs.tbqd.init();
|
|
// console.log("哈哈哈",this.$refs.tbqd);
|
|
// console.log("哈哈哈",this.$refs.tbqd);
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
// console.log(33333,viewer);
|
|
// console.log(33333,viewer);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -131,22 +132,21 @@ export default {
|
|
// document.exitFullscreen();
|
|
// document.exitFullscreen();
|
|
// }
|
|
// }
|
|
|
|
|
|
- document
|
|
|
|
- var div = document.getElementById("fullscreen-div");
|
|
|
|
|
|
+ document;
|
|
|
|
+ var div = document.getElementById("fullscreen-div");
|
|
|
|
|
|
- if (div.requestFullscreen) {
|
|
|
|
- div.requestFullscreen();
|
|
|
|
- } else if (div.mozRequestFullScreen) {
|
|
|
|
- /* Firefox */
|
|
|
|
- div.mozRequestFullScreen();
|
|
|
|
- } else if (div.webkitRequestFullscreen) {
|
|
|
|
- /* Chrome, Safari & Opera */
|
|
|
|
- div.webkitRequestFullscreen();
|
|
|
|
- } else if (div.msRequestFullscreen) {
|
|
|
|
- /* IE/Edge */
|
|
|
|
- div.msRequestFullscreen();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ if (div.requestFullscreen) {
|
|
|
|
+ div.requestFullscreen();
|
|
|
|
+ } else if (div.mozRequestFullScreen) {
|
|
|
|
+ /* Firefox */
|
|
|
|
+ div.mozRequestFullScreen();
|
|
|
|
+ } else if (div.webkitRequestFullscreen) {
|
|
|
|
+ /* Chrome, Safari & Opera */
|
|
|
|
+ div.webkitRequestFullscreen();
|
|
|
|
+ } else if (div.msRequestFullscreen) {
|
|
|
|
+ /* IE/Edge */
|
|
|
|
+ div.msRequestFullscreen();
|
|
|
|
+ }
|
|
|
|
|
|
// // 监听全屏状态的改变
|
|
// // 监听全屏状态的改变
|
|
// document.addEventListener(
|
|
// document.addEventListener(
|
|
@@ -203,6 +203,9 @@ export default {
|
|
imgIndex(val) {
|
|
imgIndex(val) {
|
|
this.$refs.carousel.setActiveItem(val);
|
|
this.$refs.carousel.setActiveItem(val);
|
|
},
|
|
},
|
|
|
|
+ isShowTb(val) {
|
|
|
|
+ this.$refs.tbDetails.onClick(val);
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
@@ -286,7 +289,7 @@ export default {
|
|
width: 504px;
|
|
width: 504px;
|
|
height: 368px;
|
|
height: 368px;
|
|
// background: #33ccff;
|
|
// background: #33ccff;
|
|
- background-color: rgba(38, 38, 38, 0.6);;
|
|
|
|
|
|
+ background-color: rgba(38, 38, 38, 0.6);
|
|
// background: url(/static/images/ghzc/内容框.png) no-repeat;
|
|
// background: url(/static/images/ghzc/内容框.png) no-repeat;
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
position: absolute;
|
|
position: absolute;
|