<template>
  <!-- 支付历史  转账记录-->
  <div class="payHistories" v-loading ="payHistories">
    <el-row >
      <el-col :span="24" >
        <div style="display: flex;align-items: center;">
        <h2 >{{$t(`login.payHistories`)}}  </h2>
        <i @click="handelRefresh"  class="i ishuaxin1 Refresh"></i>
      </div>
      </el-col>    
    </el-row>
    <!-- 标签页 -->
    <el-tabs v-model="activeName" >
      <!-- 待处理 -->
    <el-tab-pane :label="$t(`pay.Pending`)" name="pending">
      <el-table
          class="table"
          :header-cell-style="{ 'text-align': 'center' }"
          :cell-style="{ 'text-align': 'center' }"
          :data="from"
          style="width: 100%"
          max-height="800"
        >
          <el-table-column fixed prop="id" :label="$t(`pay.number`)" width="80">
          </el-table-column>
          <el-table-column fixed prop="createTime" :label="$t(`pay.date`)"  width="180">
            <template slot-scope="scope">
              <span>{{ handelTime(scope.row.createTime) }}</span>
            </template>

          </el-table-column>
          <!-- <el-table-column prop="userName" :label="$t(`pay.user`)">
          </el-table-column>
          <el-table-column prop="msgPage" :label="$t(`pay.PurchaseService`)" >
          </el-table-column> -->
          <el-table-column prop="amount" :label="$t(`pay.AmountPaid`)"  width="100">
          </el-table-column>
          <el-table-column prop="coin" :label="$t(`pay.currency`)"  width="90">
          </el-table-column>
          <el-table-column prop="chain" :label="$t(`pay.network`)"  width="90">
          </el-table-column>
          <!-- <el-table-column prop="userMsg" :label="$t(`pay.address`)">
          </el-table-column> -->
          <el-table-column prop="address" :label="$t(`pay.CollectionAddress`)" >
          </el-table-column>
          <el-table-column prop="txid" :label="$t(`pay.Txid`)">
          </el-table-column>    
          <el-table-column prop="status" :label="$t(`pay.PaymentStatus`)">
          </el-table-column> 
          <!-- <el-table-column prop="userMsg" :label="$t(`pay.ServiceStatus`)">
          </el-table-column>  -->
  
        </el-table>

    </el-tab-pane>
    <!-- 转账成功 -->
    <el-tab-pane :label="$t(`pay.transferSuccessful`)" name="success">
      <el-table
          class="table"
          :header-cell-style="{ 'text-align': 'center' }"
          :cell-style="{ 'text-align': 'center' }"
          :data="successData"
          style="width: 100%"
          max-height="800"
        >
          <el-table-column fixed prop="id" :label="$t(`pay.number`)" width="80">
          </el-table-column>
          <el-table-column fixed prop="createTime" :label="$t(`pay.date`)"  width="180">
            <template slot-scope="scope">
              <span>{{ handelTime(scope.row.createTime) }}</span>
            </template>

          </el-table-column>
          <!-- <el-table-column prop="userName" :label="$t(`pay.user`)">
          </el-table-column>
          <el-table-column prop="msgPage" :label="$t(`pay.PurchaseService`)" >
          </el-table-column> -->
          <el-table-column prop="amount" :label="$t(`pay.AmountPaid`)"  width="100">
          </el-table-column>
          <el-table-column prop="coin" :label="$t(`pay.currency`)"  width="90">
          </el-table-column>
          <el-table-column prop="chain" :label="$t(`pay.network`)"  width="90">
          </el-table-column>
          <!-- <el-table-column prop="userMsg" :label="$t(`pay.address`)">
          </el-table-column> -->
          <el-table-column prop="address" :label="$t(`pay.CollectionAddress`)" >
          </el-table-column>
          <el-table-column prop="txid" :label="$t(`pay.Txid`)">
          </el-table-column>    
          <el-table-column prop="status" :label="$t(`pay.PaymentStatus`)">
          </el-table-column> 
          <!-- <el-table-column prop="userMsg" :label="$t(`pay.ServiceStatus`)">
          </el-table-column>  -->
  
        </el-table>
    </el-tab-pane>
    <!-- 转账失败 -->
    <el-tab-pane :label="$t(`pay.transferFailed`)" name="fail">
      <el-table
          class="table"
          :header-cell-style="{ 'text-align': 'center' }"
          :cell-style="{ 'text-align': 'center' }"
          :data="failData"
          style="width: 100%"
          max-height="800"
        >
          <el-table-column fixed prop="id" :label="$t(`pay.number`)" width="80">
          </el-table-column>
          <el-table-column fixed prop="createTime" :label="$t(`pay.date`)"  width="180">
            <template slot-scope="scope">
              <span>{{ handelTime(scope.row.createTime) }}</span>
            </template>

          </el-table-column>
          <!-- <el-table-column prop="userName" :label="$t(`pay.user`)">
          </el-table-column>
          <el-table-column prop="msgPage" :label="$t(`pay.PurchaseService`)" >
          </el-table-column> -->
          <el-table-column prop="amount" :label="$t(`pay.AmountPaid`)"  width="100">
          </el-table-column>
          <el-table-column prop="coin" :label="$t(`pay.currency`)"  width="90">
          </el-table-column>
          <el-table-column prop="chain" :label="$t(`pay.network`)"  width="90">
          </el-table-column>
          <!-- <el-table-column prop="userMsg" :label="$t(`pay.address`)">
          </el-table-column> -->
          <el-table-column prop="address" :label="$t(`pay.CollectionAddress`)" >
          </el-table-column>
          <el-table-column prop="txid" :label="$t(`pay.Txid`)">
          </el-table-column>    
          <el-table-column prop="status" :label="$t(`pay.PaymentStatus`)">
          </el-table-column> 
          <!-- <el-table-column prop="userMsg" :label="$t(`pay.ServiceStatus`)">
          </el-table-column>  -->
  
        </el-table>
    </el-tab-pane>
  
  </el-tabs>


        <!-- 支付历史 -->
    <el-row>
      <el-col>
       
       
      </el-col>
    </el-row>
  
  </div>
</template>

<script>
import IndexJs from "../payHistories/index";
export default {
  mixins: [IndexJs],
};
</script>

<style lang="scss" scoped>
.Refresh{
  // outline: 1px solid red;
  // height: 20px;
  // position: absolute;
  // left: 100px;
  // top: 0px;
  margin-left: 10px;
  cursor: pointer;
  display: inline-block;
  
}
.Refresh:hover{
  color: #f7931a;
}
.payHistories {
  // outline: 1px solid red;
  // background:#fef4e8 ;
  padding: 20px 100px;
  height: 100vh;
  width: 100%;
}
.chart {
  outline: 1px solid rgba(0, 0, 0, 0.5);

  text-align: center;
}
.table {
  // outline: 1px solid red;
  margin-top: 10px;
  outline: 1px solid rgba(0, 0, 0, 0.5);
}
//留言数量
.information {
  //  outline: 1px solid rgba(0,0,0,0.5);
  padding: 5px 10px;
  // outline: 1px solid red;
  width: 100%;
  font-size: 15px;
  display: flex;
  margin-top: 5px;
  font-weight: 600;
  // span{

  //   display: inline-block;
  //   width: 100px;
  //   //  outline: 1px solid red;
  //    text-align: right;

  // }
  span:nth-of-type(1){
      display: inline-block;
      //  outline: 1px solid red;
       width: 150px;
  }
  .num {
    color: #21a0ff;
    display: inline-block;
    width: 100px;
    text-align: left;
    //  outline: 1px solid red;
    font-weight: 600;
  }
}

.replyDialog  {
  // border: 1px solid red;
  width: 60%;
  margin: 0 auto;
}
</style>
<style >

</style>
