diff --git a/src/components/AddressList/index.tsx b/src/components/AddressList/index.tsx
index b2066a0..71e9827 100644
--- a/src/components/AddressList/index.tsx
+++ b/src/components/AddressList/index.tsx
@@ -93,7 +93,7 @@ const AddressList = memo((props:Params)=>{
{item.name}
{
item.is_default?默认:
- {item.phone.replace(item.phone.substring(4,7), "****")}
+ {item.phone.replace(item.phone.substring(3,7), "****")}
}
diff --git a/src/pages/user/index.tsx b/src/pages/user/index.tsx
index 1dfc6d7..1a1a0b5 100644
--- a/src/pages/user/index.tsx
+++ b/src/pages/user/index.tsx
@@ -36,13 +36,13 @@ export default () => {
}
const Modal = memo((props:any)=>{
const {data} = props;
+ const [modalShow, setModalShow]=useState(true);
const handleouter = ()=>{
console.log(222);
-
}
return(
<>
- {!data?.is_authorize_phone&&
+ {!data?.is_authorize_phone&&modalShow&&
e.stopPropagation()}>
首次登录提醒
@@ -53,7 +53,7 @@ const Modal = memo((props:any)=>{
- 我知道
+ setModalShow(false)}>我知道
@@ -90,7 +90,7 @@ const Header = memo((props:any) => {
{data?.user_name}
- {userInfo?.phone||}
+ {userInfo?.phone?.replace(userInfo?.phone?.substring(3,7), "****")||}