telPosition.vue
1.31 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
<template>
<div>
<GLDialog :visible.sync="dialogTelVisible" mode="big" :hasFooter="false" top="30px">
<div class="dialog-show">
<img src="@/assets/tel-show.png" alt="" />
<div class="tel-plus">联系电话:{{ residentPhone }}</div>
</div>
</GLDialog>
</div>
</template>
<script>
export default {
name: 'telPositon',
data() {
return {
dialogTelVisible: false,
residentPhone: ''
}
},
methods: {
init(residentPhone) {
this.dialogTelVisible = true
residentPhone ? (this.residentPhone = residentPhone) : (this.residentPhone = '400-0000-400')
}
}
}
</script>
<style lang="scss" scoped>
.dialog-show {
position: relative;
width: 534px;
// height: 650px;
margin: 0 auto;
.tel-plus {
position: absolute;
top: 395px;
left: 276px;
height: 25px;
font-size: 16px;
color: #656566;
font-family: PingFangSC-Regular, PingFang SC;
line-height: 25px;
}
}
/deep/ {
.el-dialog {
background-color: transparent;
// box-shadow: 0 1px 3px rgba(0, 0, 0, 0);
}
.el-dialog__header {
border-bottom: transparent;
}
.el-dialog__headerbtn .el-dialog__close {
color: #191717;
}
.el-dialog__headerbtn {
font-size: 23px;
}
.gl-dialog-wrap.big .el-dialog__body {
max-height: inherit;
}
}
</style>