|
@@ -62,6 +62,9 @@ const CheckAccess = memo((props: { record: any, count: number, access: any }) =>
|
|
|
if (!user.test_user) {
|
|
if (!user.test_user) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+ if (!global.memberAlert) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
global.ring = ring;
|
|
global.ring = ring;
|
|
|
const currentStatus = props.access.fast_sleep.current.qualification.status
|
|
const currentStatus = props.access.fast_sleep.current.qualification.status
|
|
|
const preStatus = props.access.fast_sleep.previous.qualification.status
|
|
const preStatus = props.access.fast_sleep.previous.qualification.status
|
|
@@ -170,9 +173,13 @@ const CheckAccess = memo((props: { record: any, count: number, access: any }) =>
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
global.checkAccess = (acccessData: any) => {
|
|
global.checkAccess = (acccessData: any) => {
|
|
|
|
|
+ debugger
|
|
|
if (!user.test_user) {
|
|
if (!user.test_user) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+ if (!global.memberAlert) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
const currentStatus = acccessData.current.qualification.status
|
|
const currentStatus = acccessData.current.qualification.status
|
|
|
const preStatus = acccessData.previous.qualification.status
|
|
const preStatus = acccessData.previous.qualification.status
|
|
|
access = acccessData
|
|
access = acccessData
|
|
@@ -526,7 +533,7 @@ const CheckAccess = memo((props: { record: any, count: number, access: any }) =>
|
|
|
showCancel && <View className="fast_alert_cancel" onClick={cancel}>{cancelText}</View>
|
|
showCancel && <View className="fast_alert_cancel" onClick={cancel}>{cancelText}</View>
|
|
|
}
|
|
}
|
|
|
{
|
|
{
|
|
|
- user.test_user && <View style={{ display: 'flex', flexDirection: 'column' }}>
|
|
|
|
|
|
|
+ user.test_user && global.memberAlert && <View style={{ display: 'flex', flexDirection: 'column' }}>
|
|
|
<Text style={{ color: '#fff', fontSize: 12 }}>member status:{props.access.member.status}</Text>
|
|
<Text style={{ color: '#fff', fontSize: 12 }}>member status:{props.access.member.status}</Text>
|
|
|
<Text style={{ color: '#fff', fontSize: 12 }}>current status:{props.access.fast_sleep.current.qualification.status}</Text>
|
|
<Text style={{ color: '#fff', fontSize: 12 }}>current status:{props.access.fast_sleep.current.qualification.status}</Text>
|
|
|
<Text style={{ color: '#fff', fontSize: 12 }}>previous status:{props.access.fast_sleep.previous.qualification.status}</Text>
|
|
<Text style={{ color: '#fff', fontSize: 12 }}>previous status:{props.access.fast_sleep.previous.qualification.status}</Text>
|
|
@@ -542,10 +549,10 @@ const CheckAccess = memo((props: { record: any, count: number, access: any }) =>
|
|
|
}
|
|
}
|
|
|
return <View>
|
|
return <View>
|
|
|
{
|
|
{
|
|
|
- user.test_user && showFastAlert && process.env.TARO_ENV == 'weapp' && alertPop()
|
|
|
|
|
|
|
+ user.test_user && global.memberAlert && showFastAlert && process.env.TARO_ENV == 'weapp' && alertPop()
|
|
|
}
|
|
}
|
|
|
{
|
|
{
|
|
|
- user.test_user && showFastAlert && isFocused && process.env.TARO_ENV == 'rn' && <Modal transparent={true}>
|
|
|
|
|
|
|
+ user.test_user && global.memberAlert && showFastAlert && isFocused && process.env.TARO_ENV == 'rn' && <Modal transparent={true}>
|
|
|
<View style={{ backgroundColor: 'rgba(0,0,0,0.95)', width: '100%', height: '100%', alignItems: 'center', justifyContent: 'center' }}>
|
|
<View style={{ backgroundColor: 'rgba(0,0,0,0.95)', width: '100%', height: '100%', alignItems: 'center', justifyContent: 'center' }}>
|
|
|
{alertPop()}
|
|
{alertPop()}
|
|
|
</View>
|
|
</View>
|