fix: 修复bug

This commit is contained in:
anonymous
2025-01-03 22:09:23 +08:00
parent 2d19bbce4c
commit 4fa9dc4a36
3 changed files with 10 additions and 6 deletions
+5 -2
View File
@@ -42,8 +42,11 @@
<wd-icon v-if="isSelect" name="arrow-right" size="14px"></wd-icon> <wd-icon v-if="isSelect" name="arrow-right" size="14px"></wd-icon>
</view> </view>
<template #right> <template #right>
<view class="h-full flex items-center text-14 text-#889BC6"> <view
<wd-button plain @click="onDelete(item)">删除</wd-button> class="px-15 mr-15 rounded-10 bg-#ff000040 h-full flex items-center text-14 text-red-600"
@click="onDelete(item)"
>
删除
</view> </view>
</template> </template>
</wd-swipe-action> </wd-swipe-action>
+4 -3
View File
@@ -43,7 +43,7 @@
@click="onSelectPayType" @click="onSelectPayType"
> >
<view class="flex-1"> <view class="flex-1">
{{ typeName ? `${typeName}${currentBank?.card_account}` : '请选择收款方式' }} {{ typeName ? `${typeName}${currentBank?.banknum}` : '请选择收款方式' }}
</view> </view>
<wd-icon name="arrow-right" size="16px"></wd-icon> <wd-icon name="arrow-right" size="16px"></wd-icon>
</view> </view>
@@ -65,7 +65,7 @@
class="bg-white fixed bottom-0 left-0 right-0 px-15 py-10 shadow-[0_0_10px_rgba(10,68,245,0.1)]" class="bg-white fixed bottom-0 left-0 right-0 px-15 py-10 shadow-[0_0_10px_rgba(10,68,245,0.1)]"
> >
<view class="flex items-center pb-safe"> <view class="flex items-center pb-safe">
<view class="text-gradient flex-1 text-14">到账CNY:13123.00</view> <view class="text-gradient flex-1 text-14">到账CNY:{{ form.money ?? '0' }}</view>
<view <view
class="btn-gradient text-center text-white rounded-full text-14 px-30 py-10" class="btn-gradient text-center text-white rounded-full text-14 px-30 py-10"
@click="onSubmit" @click="onSubmit"
@@ -98,13 +98,14 @@ const onWithdrawalDetail = () => {
} }
const typeName = computed(() => { const typeName = computed(() => {
return ['支付宝', '微信', '银行卡'][Number(unref(currentBank)?.card_type) - 1] return ['支付宝', '微信', '银行卡'][Number(unref(currentBank)?.typedata) - 1]
}) })
const currentBank = ref<any>(null) const currentBank = ref<any>(null)
const onSelectPayType = () => { const onSelectPayType = () => {
uni.$once('withdrawal-type', (data: any) => { uni.$once('withdrawal-type', (data: any) => {
form.value.bankid = data.id form.value.bankid = data.id
console.log(data)
currentBank.value = data currentBank.value = data
}) })
uni.navigateTo({ uni.navigateTo({
+1 -1
View File
@@ -47,7 +47,7 @@
<view <view
class="text-center px-16 absolute bottom-13 right-33 text-12 text-#fff rounded-br-10 rounded-tl-10 py-4 bg-blue-red" class="text-center px-16 absolute bottom-13 right-33 text-12 text-#fff rounded-br-10 rounded-tl-10 py-4 bg-blue-red"
> >
新手体验 {{ item.label }}
</view> </view>
</view> </view>
</view> </view>