diff --git a/web-vue-admin/src/views/pay-info/index.vue b/web-vue-admin/src/views/pay-info/index.vue index 7a20a5c..3aa879b 100644 --- a/web-vue-admin/src/views/pay-info/index.vue +++ b/web-vue-admin/src/views/pay-info/index.vue @@ -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',