<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="updated_at" label="消耗时间" />
        <el-table-column label="说明">
          <template #default="scope">
            <div>短剧：<span>{{ scope.row.video_name }}</span></div>
            <div>章节名称：<span>{{ scope.row.series_name }}</span></div>
          </template>
        </el-table-column>
        <el-table-column prop="charge_coin_cost" label="看剧币支付" />
        <el-table-column prop="reward_coin_cost" 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/consume_record';
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>
