--我的页面弹窗增加关闭
This commit is contained in:
parent
eceb170ece
commit
617b83d308
@ -93,7 +93,7 @@ const AddressList = memo((props:Params)=>{
|
|||||||
{item.name}
|
{item.name}
|
||||||
{
|
{
|
||||||
item.is_default?<Text className="address-list-default">默认</Text>:
|
item.is_default?<Text className="address-list-default">默认</Text>:
|
||||||
<Text className="address-list-phone">{item.phone.replace(item.phone.substring(4,7), "****")}</Text>
|
<Text className="address-list-phone">{item.phone.replace(item.phone.substring(3,7), "****")}</Text>
|
||||||
}
|
}
|
||||||
</View>
|
</View>
|
||||||
<View className="address-list-bottom">
|
<View className="address-list-bottom">
|
||||||
|
@ -36,13 +36,13 @@ export default () => {
|
|||||||
}
|
}
|
||||||
const Modal = memo((props:any)=>{
|
const Modal = memo((props:any)=>{
|
||||||
const {data} = props;
|
const {data} = props;
|
||||||
|
const [modalShow, setModalShow]=useState(true);
|
||||||
const handleouter = ()=>{
|
const handleouter = ()=>{
|
||||||
console.log(222);
|
console.log(222);
|
||||||
|
|
||||||
}
|
}
|
||||||
return(
|
return(
|
||||||
<>
|
<>
|
||||||
{!data?.is_authorize_phone&&
|
{!data?.is_authorize_phone&&modalShow&&
|
||||||
<View onClick={handleouter} catchMove className={styles['modal']}>
|
<View onClick={handleouter} catchMove className={styles['modal']}>
|
||||||
<View className={styles['modal-content']} onClick={e=>e.stopPropagation()}>
|
<View className={styles['modal-content']} onClick={e=>e.stopPropagation()}>
|
||||||
<View className={styles['modal-title']}>首次登录提醒</View>
|
<View className={styles['modal-title']}>首次登录提醒</View>
|
||||||
@ -53,7 +53,7 @@ const Modal = memo((props:any)=>{
|
|||||||
</View>
|
</View>
|
||||||
<View className={styles['modal-button']}>
|
<View className={styles['modal-button']}>
|
||||||
<Button hoverClass="none" openType="concat">联系客服</Button>
|
<Button hoverClass="none" openType="concat">联系客服</Button>
|
||||||
<View>我知道</View>
|
<View onClick={()=>setModalShow(false)}>我知道</View>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
@ -90,7 +90,7 @@ const Header = memo((props:any) => {
|
|||||||
{data?.user_name}
|
{data?.user_name}
|
||||||
</View>
|
</View>
|
||||||
<View className={styles['arcd-info-left-phone']}>
|
<View className={styles['arcd-info-left-phone']}>
|
||||||
{userInfo?.phone||<Button openType="getPhoneNumber" onGetPhoneNumber={getPhoneNumber}>绑定手机号码</Button>}
|
{userInfo?.phone?.replace(userInfo?.phone?.substring(3,7), "****")||<Button openType="getPhoneNumber" onGetPhoneNumber={getPhoneNumber}>绑定手机号码</Button>}
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user