<template>
  <div class="AppMeeting">
    <div class="top-title">2024巫溪老鹰茶文旅消费节</div>
    <div class="home-content">
      <div class="home-logo">
        <img src="./img/home-logo.png" alt="">
      </div>
      <div class="home-title">
        <img src="./img/home-title.png" alt="">
      </div>
      <div class="home-welcome">
        <img src="./img/home-welcome.png" alt="">
      </div>
      <div class="flex-content">
        <div class="item" v-for="(item, index) in list" :key="index" @click="linkTo(item.linkUrl)">
          <img :src="item.icon" alt="">
          <p>{{item.text}}</p>
        </div>
      </div>
    </div>
    <div class="home-footer">
      <p>主办单位</p>
      <div>中共巫溪县委员会   巫溪县人民政府</div>
    </div>
  </div>
</template>

<script>

export default {
  name: 'AppMeeting',
  label: '会议首页',

  props: {
    instance: Function,
    dict: Object,
    menuName: {default: "会议首页"}
  },

  data() {
    return {
      list: [
        {
          linkUrl: '../AppDetail/AppDetail',
          icon: require('./img/home-ljwx-icon.png'),
          text: '了解巫溪'
        },
        {
          linkUrl: '../AppIntroduce/AppIntroduce',
          icon: require('./img/home-hyjs-icon.png'),
          text: '会议介绍'
        },
        {
          linkUrl: '../AppAgenda/AppAgenda',
          icon: require('./img/home-hdyc-icon.png'),
          text: '活动议程'
        },
        {
          linkUrl: '../AppCheckInfo/AppCheckInfo',
          icon: require('./img/home-rzxx-icon.png'),
          text: '入住信息'
        }
      ]
    }
  },

  mounted() {
  },

  methods: {
    linkTo(url) {
      this.$router.push({path: url})
    }
  }
}
</script>

<style lang="scss">
.AppMeeting {
  height: 100%;
  width: 100%;
  background-image: url("./img/home-bg.png");
  background-size: 100% 100%;
  padding-top: 16px;
  .top-title {
    font-family: PingFangSC-SNaNpxibold;
    font-weight: 600;
    font-size: 17px;
    line-height: 24px;
    color: #FFF;
    letter-spacing: 0;
    text-align: center;
    padding-top: 10px;
    text-align: center;
    margin-bottom: 26px;
  }
  .home-content {
    height: calc(100% - 158px);
    width: calc(100% - 32px);
    margin: 0 16px;
    background: #FFF;
    border-radius: 12px;
    .home-logo {
      text-align: center;
      img {
        width: 66px;
        height: 66px;
        margin: 28px 0 21px 0;
      }
    }
    .home-title {
      text-align: center;
      img {
        width: 287px;
        height: 64px;
        margin-bottom: 20px;
      }
    }
    .home-welcome {
      text-align: center;
      margin: 21px 0 45px 0;
      img {
        width: 66px;
        height: 20px;
      }
    }
    .content-text {
      line-height: 25px;
      font-family: PingFangSC-Regular;
      font-weight: 400;
      font-size: 18px;
      color: #222;
      text-align: center;
      margin-bottom: 41px;
    }
    
    .flex-content {
      padding-left: 16px;
      .item {
        width: calc(50% - 16px);
        height: 140px;
        background-size: 100% 100%;
        margin: 0 16px 16px 0;
        text-align: center;
        float: left;
        img {
          display: inline-block;
          width: 32px;
          height: 32px;
          margin: 39px 0 16px 0;
        }
        p {
          line-height: 22px;
          font-family: PingFangSC-Medium;
          font-weight: 500;
          font-size: 16px;
          color: #857351;
        }
      }
      .item:nth-of-type(1) {
        background-image: url("./img/home-ljwx-bg.png");
      }
      .item:nth-of-type(2) {
        background-image: url("./img/home-hyjs-bg.png");
      }
      .item:nth-of-type(3) {
        background-image: url("./img/home-hdyc-bg.png");
      }
      .item:nth-of-type(4) {
        background-image: url("./img/home-rzxx-bg.png");
      }
    
    }
    
  }
  .home-footer {
    padding: 44px 0 10px 0;
    text-align: center;
    font-size: 14px;
    color: #FFF;
    line-height: 20px;
    p {
      font-family: PingFangSC-Regular;
      font-weight: 400;
      margin-bottom: 4px;
    }
    div {
      font-family: PingFangSC-SNaNpxibold;
      font-weight: 600;
    }
  }
}
</style>
