telPosition.vue 1.31 KB
<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>