fix: 银行卡管理
This commit is contained in:
@@ -32,6 +32,16 @@
|
|||||||
v-model="form.bank_name"
|
v-model="form.bank_name"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="flex items-center py-15 text-14" v-if="form.card_type === 1">
|
||||||
|
<view>开户行地址</view>
|
||||||
|
<input
|
||||||
|
class="flex-1 text-right text-14"
|
||||||
|
placeholder-class=" text-#889BC6 text-right"
|
||||||
|
type="text"
|
||||||
|
placeholder="请输入开户行地址"
|
||||||
|
v-model="form.bank_address"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
<view class="flex items-center py-15 text-14">
|
<view class="flex items-center py-15 text-14">
|
||||||
<view>{{ typeName }}账号</view>
|
<view>{{ typeName }}账号</view>
|
||||||
<input
|
<input
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="mt-10 text-14 text-#889BC6">{{ item.card_account }}</view>
|
<view class="mt-10 text-14 text-#889BC6">{{ item.card_account }}</view>
|
||||||
</view>
|
</view>
|
||||||
<wd-icon name="arrow-right" size="14px"></wd-icon>
|
<wd-icon v-if="isSelect" name="arrow-right" size="14px"></wd-icon>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
@@ -58,21 +58,21 @@
|
|||||||
import { getBankCardListAPI } from '@/service'
|
import { getBankCardListAPI } from '@/service'
|
||||||
import { onLoad } from '@dcloudio/uni-app'
|
import { onLoad } from '@dcloudio/uni-app'
|
||||||
|
|
||||||
let isSelect = false
|
const isSelect = ref(false)
|
||||||
onLoad((options) => {
|
onLoad((options) => {
|
||||||
if (options.type === 'select') {
|
if (options.type === 'select') {
|
||||||
isSelect = true
|
isSelect.value = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const onSelectType = (item) => {
|
const onSelectType = (item) => {
|
||||||
if (isSelect) {
|
if (isSelect.value) {
|
||||||
uni.$emit('withdrawal-type', item)
|
uni.$emit('withdrawal-type', item)
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
// uni.navigateTo({
|
||||||
url: '/pages-sub/withdrawal-type/edit?id=1',
|
// url: '/pages-sub/withdrawal-type/edit?id=1',
|
||||||
})
|
// })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -82,5 +82,8 @@ const onAddType = () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const { list } = useListPageRequest(getBankCardListAPI)
|
const list = ref([])
|
||||||
|
onShow(async () => {
|
||||||
|
list.value = (await getBankCardListAPI().then((res) => res.data)) as any
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -99,8 +99,8 @@ export const deleteBankCardAPI = (data) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** 获取银行卡列表 */
|
/** 获取银行卡列表 */
|
||||||
export const getBankCardListAPI = (data) => {
|
export const getBankCardListAPI = () => {
|
||||||
return http.post<{ list: any[] }>('/api/v1/getCardList', data)
|
return http.post('/api/v1/getCardList')
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 申请提现 */
|
/** 申请提现 */
|
||||||
|
|||||||
Reference in New Issue
Block a user