|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<app-view class="g-form bank-wallet-deposit">
|
|
|
- <Form ref="formRef" v-if="cusBank.caninamount === 1" class="g-form__container" @submit="formSubmit">
|
|
|
+ <Form ref="formRef" v-if="cusBank.caninamount === 1" class="g-form__container" @submit="doDepositWarning">
|
|
|
<CellGroup inset>
|
|
|
<Field type="number" v-model="formData.Amount" label="充值金额" placeholder="请填写充值金额"
|
|
|
:rules="formRules.Amount" />
|
|
|
@@ -72,7 +72,7 @@
|
|
|
<script lang="ts" setup>
|
|
|
import { shallowRef, ref } from 'vue'
|
|
|
import { Form, Field, CellGroup, Button, FieldRule, FormInstance, showFailToast, showSuccessToast } from 'vant'
|
|
|
-import { useDoDeposit, useDoCusBankExtendConfigs, useQueryCusBankSignBank } from '@/business/bank'
|
|
|
+import { useDoDeposit, useDoCusBankExtendConfigs } from '@/business/bank'
|
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
|
import { useUserStore } from '@/stores'
|
|
|
@@ -85,11 +85,9 @@ const { getSystemParamValue } = useUserStore()
|
|
|
const start = getSystemParamValue('012')
|
|
|
const end = getSystemParamValue('013')
|
|
|
const msg = getSystemParamValue('302')
|
|
|
-const { configs } = useDoCusBankExtendConfigs(2)
|
|
|
+const { configs, cusBank } = useDoCusBankExtendConfigs(2)
|
|
|
const certificate_photo_url = ref('')
|
|
|
const userStore = useUserStore()
|
|
|
-/// 查询托管银行信息
|
|
|
-const { cusBank } = useQueryCusBankSignBank()
|
|
|
|
|
|
// 表单验证规则
|
|
|
const formRules: { [key in keyof Proto.t2bBankDepositReq | 'filePath']?: FieldRule[] } = {
|
|
|
@@ -117,6 +115,27 @@ const onUploadSuccess = (filePath: string) => {
|
|
|
certificate_photo_url.value = filePath
|
|
|
}
|
|
|
|
|
|
+/// 提示信息
|
|
|
+const doDepositWarning = () => {
|
|
|
+ if (cusBank.value.cusbankid === 'jdjs') {
|
|
|
+ dialog({
|
|
|
+ message: '是否已在银行端进行入金转账?',
|
|
|
+ showCancelButton: true,
|
|
|
+ confirmButtonText: '确认',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ }).then(() => {
|
|
|
+ /// 提交
|
|
|
+ formSubmit()
|
|
|
+ }).catch(() => {
|
|
|
+ /// 返回上一层
|
|
|
+ router.back()
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ /// 提交
|
|
|
+ formSubmit()
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
const formSubmit = () => {
|
|
|
fullloading((hideLoading) => {
|
|
|
const obj: { [key: string]: unknown } = Object.create({})
|