<template>
  <div class="notice">
    <div class="container">
      <div class="content">
        <img class="bg" src="../assets/pause/bk1.png" alt="">
        <div class="content-box">
          <div class="title">平台公告</div>
          <p class="desc">尊敬的用户：因公众号业务调整，本平台将于 <span>{{pauseData.pause_time}}</span>暂停服务，钱包还有余额的用户请尽快提现。如有疑问，请联系我们人工客服进行处理，谢谢配合！
          </p>
          <div class="text">客服微信号：{{pauseData.kefu_weixin}}</div>
          <div class="text">人工客服在线时间：{{pauseData.online_time}}</div>
          <div class="date">公告时间：<span>{{pauseData.notice_time}}</span></div>
        </div>
      </div>
      <div class="btn" @click="close">好的</div>
    </div>
  </div>
</template>

<script>
  import {
    pause_project,
  } from "@/components/axios/api";

  export default {
    name: "notice",
    data() {
      return {
      }
    },
    created() {
      // this.getData()
    },
    props:['pauseData'],
    methods: {
      close() {
        this.$emit('close')
      },
      getData() {
        pause_project().then(res => {
          if (res.code === 0) {
            this.pauseData = res.data
          }
        })
      }
    }
  }
</script>

<style scoped>
  .notice {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
  }

  .container {
    width: 6.4rem;
    height: 8.6rem;
    background: rgba(246, 244, 255, 1);
    border-radius: 0.2rem;
  }

  .content {
    width: 5.93rem;
    height: 6.27rem;
    margin: 0.31rem auto 0.52rem;
    position: relative;
  }

  .bg {
    width: 100%;
    height: 100%;
    display: block;
  }

  .content-box {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    box-sizing: border-box;
    padding: 0 0.37rem;
  }

  .title {
    font-size: 0.48rem;
    font-weight: 800;
    color: rgba(51, 51, 51, 1);
    margin-top: 0.4rem;
    line-height: 1;
    text-align: center;
  }

  .desc {
    font-size: 0.28rem;
    font-weight: 500;
    color: rgba(51, 51, 51, 1);
    line-height: 0.5rem;
    text-align: left;
    text-indent: .56rem;
    margin-top: 0.34rem;
  }

  .desc span {
    font-weight: bold;
    text-decoration: underline;
  }

  .text {
    font-size: 0.28rem;
    font-weight: 500;
    color: rgba(51, 51, 51, 1);
    line-height: 0.5rem;
    text-align: left;
  }

  .date {
    font-size: 0.28rem;
    font-weight: 500;
    color: rgba(51, 51, 51, 1);
    line-height: 0.5rem;
    text-align: right;
    margin-top: 0.56rem;
  }

  .date span {
    font-weight: bold;
  }

  .btn {
    width: 4.52rem;
    height: 0.88rem;
    background: rgba(247, 186, 71, 1);
    border-radius: 0.44rem;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    font-size: 0.38rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 1);
    margin: 0.52rem auto 0;
  }
</style>
