borrowHistory.vue 1.93 KB
<template>
  <v-layout column justify-center align-center id="borrowHistory">
    <v-flex>
      <HistoryStatisticsCard type="borrow" :data="overview"/>
      <div id="SearchBlock">
        <input v-model="search" type="search" id="searchInput" :class="!search ? 'empty' : ''" placeholder="搜索姓名 search"/>
      </div>
    	<HistoryList :list="historyList" type="borrow"/>
    </v-flex>
  </v-layout>
</template>

<script>
import HistoryStatisticsCard from '@/components/HistoryStatisticsCard'
import HistoryList from '@/components/HistoryList'
export default {
  data:() => ({
    overview: {
      total: '100000.00',
      interest: '100000.00',
      times: '100000'
    },
    search: '',
    historyList: [{
      avatar: '/netiou/avatar.png',
      name: '杨洋',
      amount: '100000.00',
      time: '2018-03-08',
      status: '还款中'
    },{
      avatar: '',
      name: '杨洋',
      amount: '100.00',
      time: '2018-03-08',
      status: '还款中'
    },{
      avatar: '/netiou/avatar.png',
      name: '杨洋',
      amount: '100000.00',
      time: '2018-03-08',
      status: '还款中'
    }]
  }),
  components: {
    HistoryStatisticsCard,
    HistoryList
  }
}
</script>

<style lang="scss" scpoed>
  #borrowHistory {
    #SearchBlock {
      width: 100vw;
      padding: 0.9rem 0.7rem;

      #searchInput {
        background-color: $menu-grey;
        border: 1px solid #979797;
        border-radius: 0.5rem;
        width: 100%;
        height: 2rem;
        text-align: center;
        outline: none;
        color: $light-gold;

        &.empty {
          font-family: 'Material Icons';
        }
      }
      ::-moz-placeholder { color: $light-gold; line-height: 1.2rem;}
      ::-webkit-input-placeholder { color:$light-gold; line-height: 1.2rem; }
      :-ms-input-placeholder { color:$light-gold; line-height: 1.2rem; }
    }
  }
</style>