|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
<template>
|
|
|
<app-view class="g-form bank-wallet-deposit">
|
|
<app-view class="g-form bank-wallet-deposit">
|
|
|
- <Form ref="formRef" class="g-form__container" @submit="formSubmit">
|
|
|
|
|
|
|
+ <Form ref="formRef" v-if="cusBank.caninamount === 1" class="g-form__container" @submit="formSubmit">
|
|
|
<CellGroup inset>
|
|
<CellGroup inset>
|
|
|
<Field type="number" v-model="formData.Amount" label="充值金额" placeholder="请填写充值金额"
|
|
<Field type="number" v-model="formData.Amount" label="充值金额" placeholder="请填写充值金额"
|
|
|
:rules="formRules.Amount" />
|
|
:rules="formRules.Amount" />
|
|
@@ -15,6 +15,9 @@
|
|
|
</template>
|
|
</template>
|
|
|
</CellGroup>
|
|
</CellGroup>
|
|
|
</Form>
|
|
</Form>
|
|
|
|
|
+ <div class="g-form__bank" v-else>
|
|
|
|
|
+ <span>{{ msg }}</span>
|
|
|
|
|
+ </div>
|
|
|
<div class="g-form__time">
|
|
<div class="g-form__time">
|
|
|
<label>充值提现时间:{{ start }}-{{ end }}</label>
|
|
<label>充值提现时间:{{ start }}-{{ end }}</label>
|
|
|
</div>
|
|
</div>
|
|
@@ -68,7 +71,7 @@
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
import { shallowRef, ref } from 'vue'
|
|
import { shallowRef, ref } from 'vue'
|
|
|
import { Form, Field, CellGroup, Button, FieldRule, FormInstance, showFailToast, showSuccessToast } from 'vant'
|
|
import { Form, Field, CellGroup, Button, FieldRule, FormInstance, showFailToast, showSuccessToast } from 'vant'
|
|
|
-import { useDoDeposit, useDoCusBankExtendConfigs } from '@/business/bank'
|
|
|
|
|
|
|
+import { useDoDeposit, useDoCusBankExtendConfigs, useQueryCusBankSignBank } from '@/business/bank'
|
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
|
import { useNavigation } from '../../../../../router/navigation'
|
|
import { useNavigation } from '../../../../../router/navigation'
|
|
|
import { useUserStore } from '@/stores'
|
|
import { useUserStore } from '@/stores'
|
|
@@ -80,9 +83,12 @@ const { router } = useNavigation()
|
|
|
const { getSystemParamValue } = useUserStore()
|
|
const { getSystemParamValue } = useUserStore()
|
|
|
const start = getSystemParamValue('012')
|
|
const start = getSystemParamValue('012')
|
|
|
const end = getSystemParamValue('013')
|
|
const end = getSystemParamValue('013')
|
|
|
|
|
+const msg = getSystemParamValue('302')
|
|
|
const { configs } = useDoCusBankExtendConfigs(2)
|
|
const { configs } = useDoCusBankExtendConfigs(2)
|
|
|
const certificate_photo_url = ref('')
|
|
const certificate_photo_url = ref('')
|
|
|
const userStore = useUserStore()
|
|
const userStore = useUserStore()
|
|
|
|
|
+/// 查询托管银行信息
|
|
|
|
|
+const { cusBank } = useQueryCusBankSignBank()
|
|
|
|
|
|
|
|
// 表单验证规则
|
|
// 表单验证规则
|
|
|
const formRules: { [key in keyof Proto.t2bBankDepositReq | 'filePath']?: FieldRule[] } = {
|
|
const formRules: { [key in keyof Proto.t2bBankDepositReq | 'filePath']?: FieldRule[] } = {
|