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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
| <template>
| <div class="dialogBox">
| <div class="title">{{ title }}</div>
| <div class="content">
| <div class="leftTxt" v-html="info.eventOverview"></div>
| <div class="rightimg">
| <div class="imgBox" style="text-align: center" v-if="imgLink != ''">
| <div class="arrowBox leftArrowBox">
| <img class="autoImg" :src="arrow" alt="" />
| </div>
| <div class="imgBox">
| <img class="autoImg" :src="imgLink" alt="" />
| </div>
| <div class="arrowBox">
| <img class="autoImg" :src="arrow" alt="" />
| </div>
| </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";
| import arrow from "@/assets/images/right_arrow.svg";
| export default {
| name: "floatingWindow",
| props: {
| info: {
| type: Object,
| default: () => {},
| },
| },
| data() {
| return {
| title: "",
| imgLink: "",
| arrow,
| };
| },
| 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;
| background-color: #fdf8f0;
| }
| .content {
| display: flex;
| justify-content: space-between;
| }
| .leftTxt {
| width: 350px;
| max-height: 260px;
| overflow: hidden;
| white-space: normal;
| overflow-y: auto;
| padding: 10px;
| }
| .rightimg {
| width: 350px;
| height: 100%;
| padding: 10px;
| padding-top: 0px;
| }
| .title {
| font-size: 24px;
| font-weight: bold;
| margin-bottom: 10px;
| }
| .imgBox {
| width: 340px;
| min-height: 300px;
| position: relative;
| }
|
| .arrowBox {
| width: 30px;
| height: 30px;
| position: relative;
| }
| .imgBox{
| display: flex;
| justify-content: center;
| align-items: center;
| }
| .arrowBox{
| margin: 0 5px;
| }
|
| .leftArrowBox{
| transform: rotate(180deg);
| }
| </style>
|
|