telPosition.vue 1.2 KB
<template>
  <div>
    <el-dialog :visible.sync="dialogTelVisible" width="30%" top="30px">
      <div class="dialog-show">
        <img src="@/assets/tel-show.png" alt="" />
        <div class="tel-plus">联系电话:{{ residentPhone }}</div>
      </div>
    </el-dialog>
  </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;
  .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);
}
/deep/ .el-dialog__header {
  border-bottom: transparent;
}
/deep/ .el-dialog__headerbtn .el-dialog__close {
  color: #191717;
}
/deep/ .el-dialog__headerbtn {
  font-size: 23px;
}
</style>