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