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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
| <template>
| <div class="dialogBox">
| <div class="title">{{ title }}</div>
| <div class="content">
| <div class="leftTxt" v-html="info.eventOverview"></div>
| <div class="rightimg">
| <div v-if="imgLink != ''" class="imgBox">
| <img class="autoImg" :src="imgLink" alt="" />
| </div>
| <div style="text-align: center; font-size: 18px; color: #999" v-else>暂无图片</div>
| </div>
| </div>
| </div>
| </template>
|
| <script>
| import { getPublicImage } from "@/assets/js/middleGround/tool";
|
| export default {
| name: "floatingWindow",
| props: {
| info: {
| type: Object,
| default: () => {},
| },
| },
| data() {
| return {
| title: "",
| imgLink: "",
| };
| },
| methods: {},
| mounted() {
| console.log(this.info);
| this.title =
| this.info.name.split(",")[0] + " " + this.info.name.split(",")[1];
| this.imgLink = getPublicImage(this.info.eventPictures);
| console.log(this.imgLink);
| },
| };
| </script>
|
| <style scoped>
| .dialogBox {
| width: 700px;
| min-height: 300px;
| position: relative;
| padding: 15px;
| z-index: 20;
| box-sizing: border-box;
| }
| .content {
| display: flex;
| justify-content: space-between;
| }
| .leftTxt {
| width: 350px;
| height: 100%;
| background-color: #fff;
| overflow: hidden;
| white-space: normal;
| overflow-x: auto;
| }
| .rightimg {
| width: 350px;
| height: 100%;
| background-color: #fff;
| }
| .title {
| font-size: 24px;
| font-weight: bold;
| margin-bottom: 10px;
| }
| .imgBox {
| width: 340px;
| min-height: 300px;
| position: relative;
| }
| </style>
|
|