index.vue
2.06 KB
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
112
113
114
115
116
<!-- 关联门店弹窗 -->
<template>
<d2-dialog
width="415px"
:is-visible="visible"
:no-cancel="true"
:is-show-footer="false"
@closeDialog="closeDialog">
<div class="img-wrapper">
<img class="bg-icon" :src="require('@/assets/mini_pro_bg.png')" />
<div class="min-title" v-if="title">
<span class="ti-posi">{{ title }}</span>
</div>
<div class="image-pannel">
<div class="inner">
<img
class="icon-item"
v-for="(item, index) in list"
:key="index"
:src="item" />
</div>
</div>
</div>
</d2-dialog>
</template>
<script>
export default {
name: "RelateStoreDialog",
data() {
return {}
},
props: {
visible: {
type: Boolean,
default: false
},
title: {
type: String,
default: ""
},
list: {
type: Array,
default: () => []
}
},
mounted() {},
methods: {
closeDialog() {
this.$emit("closeDialog")
}
}
}
</script>
<style lang="scss" scoped>
.img-wrapper {
height: 812px;
background: #fff;
position: relative;
.bg-icon {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
height: 812px;
}
.min-title {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 88px;
display: flex;
justify-content: center;
align-items: flex-end;
box-sizing: border-box;
padding-bottom: 10px;
.ti-posi {
width: 170px;
height: 24px;
font-weight: 600;
font-size: 17px;
color: #2d2d2e;
text-align: center;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.image-pannel {
width: 100%;
height: 724px;
overflow: hidden;
position: absolute;
top: 88px;
left: 0;
.inner {
width: 100%;
height: 724px;
overflow-y: scroll;
background: #fff;
.icon-item {
width: 100%;
height: auto;
}
}
.inner::-webkit-scrollbar {
width: 6px !important;
}
}
}
</style>