Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuchentong committed Oct 31, 2024
1 parent 3e545ac commit 923231f
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
1 change: 1 addition & 0 deletions assets/svg/alipay.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/svg/wxpay.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions pages/dashboard/components/bank-card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
<div class="flex space-x-2">
<i
v-if="record.channel.includes('WxPay')"
class="icon-park-outline:wechat"
class="icon-svg:wxpay"
/>
<i
v-if="record.channel.includes('AliPay')"
class="icon-park-outline:alipay"
class="icon-svg:alipay"
/>
</div>
</template>
Expand Down
19 changes: 18 additions & 1 deletion pages/dashboard/components/record.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,23 @@
v-for="item in store?.record?.batches"
:key="item.batchId"
class="shadow p-10px"
:title="TransactionChannelDict.get(item.batch.channel)"
>
<template #title>
<div
v-if="item.batch.channel===TransactionChannelEnum.WxPay"
class="flex items-center space-x-2"
>
<i class="icon-svg:wxpay w-20px h-20px" />
<div>微信</div>
</div>
<div
v-if="item.batch.channel===TransactionChannelEnum.AliPay"
class="flex items-center space-x-2"
>
<i class="icon-svg:alipay w-20px h-20px" />
<div>支付宝</div>
</div>
</template>
<ADescriptions :column="2">
<ADescriptionsItem
label="账单编号"
Expand Down Expand Up @@ -52,6 +67,8 @@
</template>

<script setup lang="ts">
import { TransactionChannelEnum } from '~/drizzle/schemas'
const store = useStore()
</script>

Expand Down
4 changes: 2 additions & 2 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="flex space-x-20px">
<div class="wxpay rounded-10px shadow h-200px w-250px flex-center relative">
<div class="space-y-2 text-center">
<i class="icon-park:wechat w-80px h-80px" />
<i class="icon-svg:wxpay w-80px h-80px" />
<div>微信</div>
</div>
<input
Expand All @@ -18,7 +18,7 @@
</div>
<div class="wxpay rounded-10px shadow h-200px w-250px flex-center relative">
<div class="space-y-2 text-center">
<i class="icon-park:alipay w-80px h-80px" />
<i class="icon-svg:alipay w-80px h-80px" />
<div>支付宝</div>
</div>
<input
Expand Down

0 comments on commit 923231f

Please sign in to comment.