1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
| <template>
| <div class="box">
| <div class="boxOne">
| <div @click="closePanoramic"
| class="boxImage"></div>
| </div>
| <div class="boxTwo">
| <iframe id="iframe"
| :src="videoUrl"
| style="height:100%;width:100%;margin:0;padding:0;overflow:hidden;"
| frameborder="0"></iframe>
| </div>
| </div>
| </template>
|
| <script>
| export default {
| //import引入的组件需要注入到对象中才能使用
| components: {},
| data () {
| //这里存放数据
| return {
| videoUrl: null
| };
| },
| //方法集合
| methods: {
| closePanoramic () {
| this.$store.state.ShowPanoramicFlag = false;
| }
| },
| created () {
| this.videoUrl = JD_QBSP;
| },
| };
| </script>
| <style lang="less" scoped>
| //@import url(); 引入公共css类
| .box {
| // display: flex;
| width: 100%;
| height: 100%;
| float: left;
|
| .boxOne {
| width: 47px;
| height: 100%;
|
| float: left;
| cursor: pointer;
| .boxImage {
| width: 100%;
| height: 47px;
| background: url('../../../assets/img/6.png') no-repeat center;
| background-size: 100% 100%;
| }
|
| }
| .boxTwo {
| float: right;
| width: 1762px;
| height: 808px;
| border: 1px solid gray;
| }
| }
| </style>
|
|