|
@@ -26,6 +26,7 @@
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
import { ref, onMounted, PropType } from 'vue'
|
|
import { ref, onMounted, PropType } from 'vue'
|
|
import rest from '@/stores/rest'
|
|
import rest from '@/stores/rest'
|
|
|
|
+ import { onLoad,onShow } from "@dcloudio/uni-app";
|
|
import { aesEncrypt, aesDecrypt } from "@/lib/encryption";
|
|
import { aesEncrypt, aesDecrypt } from "@/lib/encryption";
|
|
import * as link from '@/lib/link'
|
|
import * as link from '@/lib/link'
|
|
import {
|
|
import {
|
|
@@ -34,7 +35,8 @@
|
|
maskCardNo,
|
|
maskCardNo,
|
|
maskName,
|
|
maskName,
|
|
} from '@/lib/util'
|
|
} from '@/lib/util'
|
|
- import { BasicInfoVO } from '../../lib/type';
|
|
|
|
|
|
+ import { BasicInfoVO } from '@/lib/type';
|
|
|
|
+ import { globalState } from '@/lib/util'
|
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
data: {
|
|
data: {
|
|
@@ -64,6 +66,7 @@
|
|
|
|
|
|
const onClick = () => {
|
|
const onClick = () => {
|
|
showIcon.value = !showIcon.value
|
|
showIcon.value = !showIcon.value
|
|
|
|
+ globalState.showIcon = showIcon.value
|
|
onUpdate(showIcon.value)
|
|
onUpdate(showIcon.value)
|
|
}
|
|
}
|
|
|
|
|
|
@@ -96,7 +99,7 @@
|
|
originalInfo.value.address = `${firstAddressInfo.province || ''}${firstAddressInfo.city || ''}${firstAddressInfo.area || ''}`
|
|
originalInfo.value.address = `${firstAddressInfo.province || ''}${firstAddressInfo.city || ''}${firstAddressInfo.area || ''}`
|
|
originalInfo.value.addressDetails = firstAddressInfo.shrdzxxdz
|
|
originalInfo.value.addressDetails = firstAddressInfo.shrdzxxdz
|
|
}
|
|
}
|
|
- onUpdate(false)
|
|
|
|
|
|
+ onUpdate(showIcon.value)
|
|
}
|
|
}
|
|
|
|
|
|
const onUpdate = (isMasked : boolean) => {
|
|
const onUpdate = (isMasked : boolean) => {
|
|
@@ -113,10 +116,12 @@
|
|
link.goAddressList(aesEncrypt(originalInfo.value.idCard))
|
|
link.goAddressList(aesEncrypt(originalInfo.value.idCard))
|
|
}
|
|
}
|
|
|
|
|
|
- onMounted(() => {
|
|
|
|
|
|
+
|
|
|
|
+ onShow (()=> {
|
|
|
|
+ showIcon.value = globalState.showIcon
|
|
dataList.value.hzxm = props.data.hzxm
|
|
dataList.value.hzxm = props.data.hzxm
|
|
dataList.value.hzsfzh = props.data.zjhm
|
|
dataList.value.hzsfzh = props.data.zjhm
|
|
- getInfo()
|
|
|
|
|
|
+ setTimeout(()=>getInfo(), 5)
|
|
})
|
|
})
|
|
</script>
|
|
</script>
|
|
|
|
|