|
@@ -67,6 +67,7 @@ import { useUserStore } from '@/stores'
|
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
|
import { getUserId, getMemberUserId, getUserInfoType } from '@/services/methods/user'
|
|
import { getUserId, getMemberUserId, getUserInfoType } from '@/services/methods/user'
|
|
|
import AppUploader from '@mobile/components/base/uploader/index.vue'
|
|
import AppUploader from '@mobile/components/base/uploader/index.vue'
|
|
|
|
|
+import { decryptAES } from '@/services/websocket/package/crypto';
|
|
|
|
|
|
|
|
const componentMap = new Map<string, unknown>([
|
|
const componentMap = new Map<string, unknown>([
|
|
|
['captcha', defineAsyncComponent(() => import('./components/captcha/Index.vue'))],
|
|
['captcha', defineAsyncComponent(() => import('./components/captcha/Index.vue'))],
|
|
@@ -253,12 +254,19 @@ const onCheckCardNum = () => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
|
|
+ const { customername, mobile2, cardnum, bankaccount } = userStore.userInfo
|
|
|
// 个人
|
|
// 个人
|
|
|
if (getUserInfoType() === 1) {
|
|
if (getUserInfoType() === 1) {
|
|
|
- person.value.mobile = userStore.userInfo?.mobile2 ?? ''
|
|
|
|
|
|
|
+ person.value.idCardNo = decryptAES(cardnum)
|
|
|
|
|
+ person.value.mobile = mobile2
|
|
|
|
|
+ person.value.realName = customername
|
|
|
|
|
+ person.value.bankCard = decryptAES(bankaccount)
|
|
|
} else {
|
|
} else {
|
|
|
// 企业
|
|
// 企业
|
|
|
- company.value.mobile = userStore.userInfo?.mobile2 ?? ''
|
|
|
|
|
|
|
+ company.value.mobile = mobile2
|
|
|
|
|
+ company.value.realName = customername
|
|
|
|
|
+ company.value.idCardNo = decryptAES(cardnum)
|
|
|
|
|
+ company.value.bankCard = decryptAES(bankaccount)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
</script>
|
|
</script>
|