<template>
  <div class="AppIntroduce">
    <div class="home-content">
      <div class="tab">
        <div :class="tabIndex == index ? 'item active': 'item'" v-for="(item, index) in tabList" :key="index" @click="tabIndex=index">{{ item }}</div>
      </div>
      <div class="tab-content" v-if="tabIndex == 0">
        <div class="title">2024巫溪老鹰茶文旅消费节<br/>研讨会暨产销对接会</div>
        <img src="./img/detail-hyjs.png" alt="" class="detail-img">
        <p>
          中国老鹰茶之乡·2024巫溪老鹰茶文旅消费节将于4月23日开幕。期间，将举办文创大赛、斗茶大赛、科普研学等系列。
        </p>
        <p>
          消费节前期，巫溪组织专家对巫溪老鹰茶的历史渊源、独特功效、制作工艺、泡饮技巧、文化价值等5个方面进行深入研究，并开展“茶博士
          说老鹰茶”科普活动；推动老鹰茶产业规范化发展，制定了育苗、产品加工、产品等系列“巫溪老鹰茶相关行业标准”；开展市场推广，启动了
          老鹰茶特色示范产区命名和“茶王”“茶后”评比工作，擦亮“天地灵气 巫咸古茶”品牌；举办“渝你同饮”巫溪老鹰茶山城快闪活动，开发“巫溪
          老鹰茶老冰棍”等系列产品，全方位展示巫溪老鹰茶产业发展成果。消费节期间，将通过全网直播等形式，全过程展示市级非遗技艺——巫溪老
          鹰茶制作工艺，并推出老鹰茶长桌宴，举办巫溪老鹰产销对接会、主题研学和盐茶古道徒步等活动。
        </p>
      </div>
      <div class="tab-content" v-if="tabIndex == 1">
        <div class="title">座位表</div>
        <img src="./img/seat-img.png" alt="" class="seat-img" @click="previewImage">
        <p class="tips">（温馨提示：若查看座位表图片比较模糊，可先保存图片到手机相册，再进行查看）</p>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  name: 'AppIntroduce',
  appName: '会议介绍',

  data() {
    return {
      tabList: ['了解会议', '座位表'],
      tabIndex: 0,
      seatImgList: [require('./img/seat-img1.png'), require('./img/seat-img2.png')]
    }
  },
  mounted() {
    document.title = '会议介绍'
  },

  methods: {
    previewImage() {
      uni.previewImage({
        urls: this.seatImgList,
        current: require('./img/seat-img1.png')
      })
    },
  }
}
</script>

<style lang="scss" scoped>
uni-page-body{
  height: 100%;
}
.AppIntroduce {
  min-height: 100%;
  width: 100%;
  background-image: url("./img/detail-bg.png");
  background-size: 100% 100%;
  padding: 32px 0 64px 0;
  box-sizing: border-box;
  .top-title {
    font-family: PingFangSC-SNaNpxibold;
    font-weight: 600;
    font-size: 34px;
    line-height: 48px;
    color: #FFF;
    letter-spacing: 0;
    text-align: center;
    padding-top: 20px;
    text-align: center;
    margin-bottom: 52px;
  }
  .home-content {
    min-height: calc(100% - 316px);
    width: calc(100% - 64px);
    margin: 0 32px;
    background: #FFF;
    border-radius: 24px;
    padding-bottom: 32px;
    .tab-content {
      padding: 0 32px;
      .title {
        line-height: 60px;
        font-family: PingFangSC-SNaNpxibold;
        font-weight: 600;
        font-size: 44px;
        color: #222;
        text-align: center;
        padding: 40px 0 36px 0;
      }
      p {
        width: 100%;
        font-family: PingFangSC-Regular;
        font-weight: 400;
        font-size: 30px;
        color: #222;
        text-align: justify;
        line-height: 52px;
        word-break: break-all;
        text-indent: 2em;
        margin-bottom: 32px;
      }
      .detail-img {
        width: 100%;
        height: 508px;
        margin-bottom: 32px;
      }
      .seat-img {
        width: 100%;
        height: 560px;
        margin-top: 20px;
      }

      .tips {
        color: #999;
        font-size: 12px;
        margin-top: 32px;
      }

    }
    .tab {
      position: fixed;
      top: 752px;
      left: 0;
      padding: 16px;
      background-color: #F9F9F9;
      border-radius: 8px;
      z-index: 999;
      .item {
        width: 176px;
        line-height: 68px;
        color: #666;
        font-family: PingFangSC-Regular;
        font-weight: 400;
        font-size: 28px;
        text-align: center;
      }
      .active {
        background: #FFF;
        border-radius: 8px;
        color: #F5510A;
      }
    }
  }
}
</style>
