<template>
  <div>
    <div class="heior_box">
        <el-input v-model="searchModel.username" style="width:15%;float:right;" placeholder="请输入会员号/名称" clearable size="small">
          <el-button slot="append" icon="el-icon-search" @click="search"></el-button>
        </el-input>
    </div>

    <el-table :data="retData.Data" size="medium" :height="$getHeight(100)" border>
      <el-table-column prop="create_time" label="日期" ></el-table-column>
      <el-table-column prop="username" label="用户名" width="160px"></el-table-column>
      <el-table-column prop="ju_money" label="充值H币"></el-table-column>
      <el-table-column prop="pay_money" label="实付金额"></el-table-column>
      <el-table-column prop="pay_type" label="支付方式"></el-table-column>
      <el-table-column prop="order_no" label="订单编号"></el-table-column>
      <el-table-column prop="ali_wx_no" label="支付宝/微信订单号"></el-table-column>
    
    </el-table>
    <div class="block">
      <el-pagination
        v-if="retData.Data.length>0"
        @current-change="get"
        :page-size="50"
        :current-page.sync="searchModel.PageIndex"
        layout="total,prev, pager, next"
        :total="retData.TotalCount"
      ></el-pagination>
    </div>

  </div>
</template>
<script>
export default {
  name: "httprecharge",
  data() {
    return {
      retData:null,
      searchModel:{
        PageIndex: 1,
        username:'',
      }
    };
  },
  created () {
    this.$store.commit('setCurrentNav', 'HTTP>>客户充值订单')
    this.get()

  },
  methods: {
    
    search(){
      this.searchModel.PageIndex=1;
      this.get();
    },
    get() {
      this.$api.post(this.$api.phpURL + "http/admin/get_recharge_list", this.searchModel).then(res => {
        this.retData = res;
        console.log(res)
      });
    },
  }
}
</script>
