<template>
  <div>
    <child-view>
      <div class="sub-page">
        <div class="mt-0.5 mx-4 py-5 bg-app-dark-2 border border-app-blue-3 border-solid rounded-lg">
          <div class="border-0 border-b border-app-blue-3 border-solid px-4 pb-3">
            <community-card/>
          </div>
          <div class="mt-7 px-4">
            <TicketBar :ticketNum="ticketNum" />
          </div>
        </div>
        <div class="mb-10">
          <h4 class="text-sm text-white text-center mt-7 mb-2 relative">投票人员详情</h4>
          <div class="mx-4 border border-app-blue-3 border-solid rounded-lg overflow-hidden">
            <div class="list-title flex items-center justify-around text-xs">
              <div>人员ID</div>
              <div>票数</div>
              <div>投票HASH</div>
            </div>
            <ul>
              <li
                v-for="item in list"
                :key="item.id"
                class="list-content leading-8 flex justify-around items-center text-xs">
                <div class="text-yellow-500">1NyER8tS...KDcL</div>
                <div class="">50000000票</div>
                <div class="text-yellow-500">1NyER8tS...KDcL</div>
              </li>
            </ul>
          </div>
        </div>
      </div>
      
    </child-view>
  </div>
</template>

<script lang="ts">
import CommunityCard from '@/components/home/CommunityCard.vue'
import TicketBar from '@/components/home/TicketBar.vue'
import Vue from 'vue'
import ChildView from '@/layouts/childView.vue'
export default Vue.extend({
  components: {
    CommunityCard,
    TicketBar,
    ChildView
  },
  data() {
    return {
      community: { id: 1 },
      ticketNum: 22356,
      list: [
        1,2,3,4,5,6,7,8,9,0
      ]
    }
  }
})
</script>

<style scoped>

  .my-community {
    height: calc(100vh - 55px);
    overflow-y: scroll;
  }

  .list-title {
    width: 100%;
    height: 40px;
    line-height: 40px;
    background: #252268;
  }
  .list-title>div {
    flex: 1;
    text-align: center
  }
  ul {
    margin-bottom: 0;
  }
</style>