From 617b83d3081f1368a84473eabf55af0e79c6bf65 Mon Sep 17 00:00:00 2001
From: li tong bao <2903733959@qq.com>
Date: Fri, 10 Jun 2022 10:33:10 +0800
Subject: [PATCH] =?UTF-8?q?--=E6=88=91=E7=9A=84=E9=A1=B5=E9=9D=A2=E5=BC=B9?=
=?UTF-8?q?=E7=AA=97=E5=A2=9E=E5=8A=A0=E5=85=B3=E9=97=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/AddressList/index.tsx | 2 +-
src/pages/user/index.tsx | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
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), "****")||}