Commit b9698d79 by liuliufashi

update

parent 671fe0c3
......@@ -6,6 +6,12 @@
<a-table :columns="columns" :data-source="list" @change="tableChange" :pagination="pagination" :scroll="{ y: 'calc(100vh - 300px)' }">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'amount'">
<div v-if="record.amount">
<div>{{ record.amount/100 }}</div>
</div>
</template>
<template v-if="column.key === 'nickname'">
<div v-if="record.nickname">
<div>{{ record.nickname }}</div>
......@@ -30,6 +36,14 @@
~
</div>
</template>
<template v-if="column.key === 'status'">
<div v-if="record.status === 0" style="color: rgb(245, 108, 108);">
未支付
</div>
<div v-else style="color: rgb(12, 191, 33);">
已支付
</div>
</template>
</template>
</a-table>
</div>
......@@ -44,6 +58,11 @@ const columns = [
dataIndex: 'subject',
key: 'subject',
},
{
title: '金额',
dataIndex: 'amount',
key: 'amount',
},
{
title: '订单号',
......@@ -65,6 +84,11 @@ const columns = [
dataIndex: 'headimgurl',
key: 'headimgurl',
},
{
title: '状态',
dataIndex: 'status',
key: 'status',
},
{
title: '订单时间',
dataIndex: 'updatetime',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment