li.shaoyi hace 1 año
padre
commit
4f9ee7efd7
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      src/packages/mobile/views/bank/sign/components/edit/Index.vue

+ 3 - 2
src/packages/mobile/views/bank/sign/components/edit/Index.vue

@@ -7,7 +7,7 @@
             </template>
             <Form ref="formRef" class="g-form__container" @submit="formSubmit">
                 <CellGroup inset>
-                    <Field name="OpenBankAccId" :label="$t('banksign.bankname')" v-model.trim="formData.BankAccountNo"
+                    <Field name="OpenBankAccId" :label="$t('banksign.bankname')" v-model="selectedBankName"
                         readonly v-if="userInfo.bankid" />
                     <Field name="OpenBankAccId" :label="$t('banksign.bankname')" v-model="selectedBankName"
                         :placeholder="$t('banksign.Pleaseselectyourbank')" :rules="formRules.OpenBankAccId"
@@ -77,6 +77,7 @@ import { useDoBankSign, useDoCusBankExtendConfigs } from '@/business/bank'
 import { validateRules } from '@/constants/regex'
 import { useCountDown } from '@vant/use'
 import { useUserStore, i18n } from '@/stores'
+import { decryptAES } from '@/services/websocket/package/crypto'
 import AppModal from '@/components/base/modal/index.vue'
 
 // 选择银行
@@ -258,7 +259,7 @@ const closed = (isRefresh = false) => {
 
 onMounted(() => {
     selectedBankName.value = userInfo.value.bankbankname
-    formData.BankAccountNo = userInfo.value.bankaccount
+    formData.BankAccountNo = decryptAES(userInfo.value.bankaccount)
     formData.OpenBankAccId = userInfo.value.bankid
 })