<template>
  <div class="page">
    <div class="top">
      <div class="img-title">填报信息</div>

      <div class="cards">
        <div class="cards-left">申请人</div>
        <div class="cards-right">{{ detail.beginTime }}</div>
      </div>

      <div class="cards">
        <div class="cards-left">申请时间</div>
        <div class="cards-right">
          <span style="color: #1c6bdf">{{ detail.realNum }}</span>
        </div>
      </div>

      <div class="cards">
        <div class="cards-left">位置</div>
        <div class="cards-right" style="width: 75%; text-align: right">{{ detail.address }}</div>
      </div>

      <div class="cards">
        <div class="cards-left">积分类型</div>
        <div class="cards-right">{{ $dict.getLabel('marriageType', detail.status) }}</div>
      </div>

      <div class="cards">
        <div class="cards-left">申请描述</div>
        <div class="cards-right">{{ detail.areaName }}</div>
      </div>

      <div class="cardes">
        <div class="img-top">图片资料</div>
        <img src="../../static/img/jfph.png" alt="" v-for="(item, index) in 7" :key="index" />
      </div>
    </div>

    <div class="middle">
      <div class="img-title">填报信息</div>

      <div class="cards">
        <div class="cards-left">活动时间</div>
        <div class="cards-right">{{ detail.beginTime }}</div>
      </div>

      <div class="cards">
        <div class="cards-left">活动人数</div>
        <div class="cards-right">
          <span style="color: #1c6bdf">{{ detail.realNum }}</span>
        </div>
      </div>

      <div class="cards">
        <div class="cards-left">活动地点</div>
        <div class="cards-right" style="width: 75%; text-align: right">{{ detail.areaName }}{{ detail.address }}</div>
      </div>

      <div class="cards">
        <div class="cards-left">活动地点</div>
        <div class="cards-right" style="width: 75%; text-align: right">{{ detail.areaName }}{{ detail.address }}</div>
      </div>

      <div class="cards">
        <div class="cards-left">活动地点</div>
        <div class="cards-right" style="width: 75%; text-align: right">{{ detail.areaName }}{{ detail.address }}</div>
      </div>

      <div class="cards">
        <div class="cards-left">活动地点</div>
        <div class="cards-right" style="width: 75%; text-align: right">{{ detail.areaName }}{{ detail.address }}</div>
      </div>
    </div>

    <div class="bottom">
      <div class="img-title">填报信息</div>

      <div class="cards">
        <div class="cards-left">活动时间</div>
        <div class="cards-right">{{ detail.beginTime }}</div>
      </div>

      <div class="cards">
        <div class="cards-left">活动人数</div>
        <div class="cards-right">
          <span style="color: #1c6bdf">{{ detail.realNum }}</span>
        </div>
      </div>

      <div class="cards">
        <div class="cards-left">活动地点</div>
        <div class="cards-right" style="width: 75%; text-align: right">{{ detail.areaName }}{{ detail.address }}</div>
      </div>

      <div class="cards">
        <div class="cards-left">活动地点</div>
        <div class="cards-right" style="width: 75%; text-align: right">{{ detail.areaName }}{{ detail.address }}</div>
      </div>

      <div class="cards">
        <div class="cards-left">活动地点</div>
        <div class="cards-right" style="width: 75%; text-align: right">{{ detail.areaName }}{{ detail.address }}</div>
      </div>

      <div class="cards">
        <div class="cards-left">活动地点</div>
        <div class="cards-right" style="width: 75%; text-align: right">{{ detail.areaName }}{{ detail.address }}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Detail',
  computed: {},
  data() {
    return {
      id: '',
      detail: {},
    }
  },
  onLoad(option) {
    this.id = option.id

    this.$dict.load('marriageType').then(() => {
      this.getDetail()
    })
  },
  onShow() {},
  methods: {
    getDetail() {
      var ids = 'f16e54058cab4099bf3ee6e03e750b93'
      this.$instance.post(`/app/appvillageactivityinfo/queryDetailById?id=${ids}`).then((res) => {
        if (res.code == 0) {
          this.detail = res.data
        }
      })
    },
  },
}
</script>
<style scoped lang="scss">
.page {
  width: 100%;
  height: 100%;
  background-color: #fff;

  .top,
  .middle,
  .bottom {
    padding: 32px 32px 0 32px;

    .img-title {
      font-size: 36px;
      font-weight: 600;
    }

    .cards {
      display: flex;
      justify-content: space-between;
      border-bottom: 2px solid #eee;
      padding: 36px 0;
      line-height: 40px;
      font-size: 28px;

      .cards-left {
        color: #999;
      }

      .cards-right {
        color: #333;
      }
    }
    .cardes {
      border-bottom: 2px solid #eee;
      padding: 36px 0;
      font-size: 28px;
      .img-top {
        color: #999;
        padding-bottom: 16px;
        ._img {
          width: 225px;
          height: 226px;
          margin-right: 4px;
        }
        ._img:nth-child(3n + 0) {
          margin-right: 0;
        }
      }
    }
  }
}
</style>
