<template>
  <div class="flex flex-col justify-between w-full sm:flex-row" style="width:100%;">
    <div class="table-default" style="width:100%;">
      <el-table :data="tableData" class="w-full mt-3" style="width:100%;">
        <el-table-column prop="pay_end_at" label="充值时间" />
        <el-table-column prop="price" label="充值金额">
        </el-table-column>
        <el-table-column prop="rechare_coin" label="看币剧数量" />
        <el-table-column prop="given" label="赠币数量" />
        <el-table-column prop="pay_name" label="支付方式" />
        <el-table-column prop="from_page" label="充值来源" />
      </el-table>
      <Paginate />
    </div>
  </div>
</template>

<script lang="ts" setup>
import { useGetList } from '@/hook/curd/useGetList';
import { useOpen } from '@/hook/curd/useOpen';
import { FormInstance } from 'element-plus';
import { tuiguangPromotionAdd } from '@/api/promotion/index'
const api = 'channel/wechat_min_user/order_list';
const props = defineProps({
  primary: Object,
});
const { data, query, search, reset, loading } = useGetList(api);
if (props.primary) {
  query.value.uid = props.primary.uid
}
const tableData = computed(() => data.value?.data);

onMounted(() => {
  search();
});
</script>

<style lang="scss" scoped></style>
