<template>
  <view class="noData">
    <image
      :style="{ 'margin-top': top }"
      src="https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/57309ff1-476c-43ec-8bad-f9e529e0a25b"
      class="noData-img"
      mode="widthFix"
    ></image>
    <text class="noData-text">{{ tipText }}</text>
  </view>
</template>

<script>
export default {
  name: "noData",
  data() {
    return {};
  },
  props: {
    tipText: {
      type: String,
      default: "暂无数据哦～",
    },
    top: {
      type: String,
      default: "154rpx",
    },
  },
  components: {},
  methods: {},
};
</script>

<style lang="less" scoped>
.noData {
  display: flex;
  align-items: center;
  //   justify-content: center;
  flex-direction: column;
  height: 100%;
  .noData-img {
    margin-top: 154rpx;
    width: 348rpx;
    height: 348rpx;
  }
  .noData-text {
    width: 100%;
    font-weight: 400;
    font-size: 28rpx;
    color: #666666;
    line-height: 40rpx;
    text-align: center;
    font-style: normal;
  }
}
</style>
