index.vue 2.06 KB
<!-- 关联门店弹窗 -->
<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>