diff --git a/src/pages-sub/withdrawal-type/edit.vue b/src/pages-sub/withdrawal-type/edit.vue
index a6b90c1..24bff6a 100644
--- a/src/pages-sub/withdrawal-type/edit.vue
+++ b/src/pages-sub/withdrawal-type/edit.vue
@@ -32,6 +32,16 @@
v-model="form.bank_name"
/>
+
+ 开户行地址
+
+
{{ typeName }}账号
{{ item.card_account }}
-
+
@@ -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
+})
diff --git a/src/service/index.ts b/src/service/index.ts
index 50cabb3..8726608 100644
--- a/src/service/index.ts
+++ b/src/service/index.ts
@@ -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')
}
/** 申请提现 */