<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="w-full h-10 bg-app-blue-4 flex items-center justify-around text-xs">
              <div class="w-1/3 flex-grow text-center">人员ID</div>
              <div class="w-1/3 flex-grow text-center">票数</div>
              <div class="w-1/3 flex-grow text-center">投票HASH</div>
            </div>
            <ul class="mb-0">
              <li
                v-for="item in list"
                :key="item.id"
                class="list-content leading-8 flex justify-around bg-app-dark-2 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>
