|
|
@@ -61,10 +61,6 @@ export default function Page() {
|
|
|
appUserID: user.id
|
|
|
})
|
|
|
}
|
|
|
- // setInterval(()=>{
|
|
|
- // getCustomInfo()
|
|
|
- // },2000)
|
|
|
-
|
|
|
}
|
|
|
}, [])
|
|
|
|
|
|
@@ -78,15 +74,18 @@ export default function Page() {
|
|
|
}
|
|
|
|
|
|
async function getCustomInfo() {
|
|
|
- let Purchases = require("react-native-purchases").default
|
|
|
- try {
|
|
|
- const customerInfo = await Purchases.getCustomerInfo();
|
|
|
- console.log('customer info', customerInfo)
|
|
|
- // access latest customerInfo
|
|
|
- } catch (e) {
|
|
|
- console.log('customer info error', e)
|
|
|
- // Error fetching customer info
|
|
|
- }
|
|
|
+ // if (process.env.TARO_ENV == 'rn') {
|
|
|
+ // let Purchases = require("react-native-purchases").default
|
|
|
+ // try {
|
|
|
+ // const customerInfo = await Purchases.getCustomerInfo();
|
|
|
+ // console.log('customer info', customerInfo)
|
|
|
+ // // access latest customerInfo
|
|
|
+ // } catch (e) {
|
|
|
+ // console.log('customer info error', e)
|
|
|
+ // // Error fetching customer info
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
function switchChanged(e) {
|
|
|
@@ -238,7 +237,7 @@ export default function Page() {
|
|
|
return false;
|
|
|
}
|
|
|
console.log(accessObj.access)
|
|
|
- switch (accessObj.access.member.subscription_status){
|
|
|
+ switch (accessObj.access.member.subscription_status) {
|
|
|
case 'INITIAL':
|
|
|
case 'INACTIVE':
|
|
|
case 'INACTIVE_EXPIRED':
|
|
|
@@ -272,7 +271,6 @@ export default function Page() {
|
|
|
}
|
|
|
</View>
|
|
|
<Text className="nickname">{user.isLogin ? user.nickname : t('page.more.un_login')}</Text>
|
|
|
- {/* <Text className="username">{user.isLogin ? '用户名未设置' : ''}</Text> */}
|
|
|
</View>
|
|
|
</Box>
|
|
|
|
|
|
@@ -299,12 +297,6 @@ export default function Page() {
|
|
|
{
|
|
|
user.isLogin && process.env.TARO_ENV == 'weapp' && <TableCell title={t('page.more.setting')} showArrow={true} showMarginBottom={true} onClick={goSetting}></TableCell>
|
|
|
}
|
|
|
- {/* {user.isLogin && <Box >
|
|
|
- <View onClick={goSetting}>
|
|
|
- <Text className="title">设置</Text>
|
|
|
- </View>
|
|
|
- </Box>
|
|
|
- } */}
|
|
|
|
|
|
{
|
|
|
user.isLogin && user.test_user && <View>
|
|
|
@@ -340,72 +332,8 @@ export default function Page() {
|
|
|
|
|
|
</View>
|
|
|
}
|
|
|
-
|
|
|
- {/* {
|
|
|
- user.isLogin && user.test_user && <TableCell title="user_id" showArrow={true} onClick={clearF}>
|
|
|
- <Text style={{ opacity: 0.8 }}>{user.id.substring(0, 6)}***{user.id.substring(user.id.length - 10, user.id.length)}</Text>
|
|
|
- </TableCell>
|
|
|
- }
|
|
|
- {
|
|
|
- user.isLogin && user.test_user && <TableCell title="session" showArrow={true} onClick={reset}>
|
|
|
- <Text style={{ opacity: 0.8 }}>{t('page.more.reset_session')}</Text>
|
|
|
- </TableCell>
|
|
|
- }
|
|
|
- {
|
|
|
- user.isLogin && user.test_user && <TableCell title={t('page.more.debug_mode')} >
|
|
|
- <Switch checked={switchOn} onChange={switchChanged} />
|
|
|
- </TableCell>
|
|
|
- } */}
|
|
|
<View style={{ height: 40 }}></View>
|
|
|
|
|
|
- {/* <Text>未更改前的1px线</Text>
|
|
|
- <View style={{ marginLeft: 100 }}>
|
|
|
- <View className="px2Height" />
|
|
|
- <View className="px2Width" />
|
|
|
- <View className="px2Height" />
|
|
|
- <View className="px2Width" />
|
|
|
- <View className="px2Height" />
|
|
|
- <View className="px2Width" />
|
|
|
- <View className="px2Height" />
|
|
|
- <View className="px2Width" />
|
|
|
- <View className="px2Height" />
|
|
|
- <View className="px2Width" />
|
|
|
- <View className="px2Height" />
|
|
|
- <View className="px2Width" />
|
|
|
- </View>
|
|
|
- <Text>更改后的1px线</Text>
|
|
|
- <View style={{ marginLeft: 100 }}>
|
|
|
- <View className="px1Height" />
|
|
|
- <View className="px1Width" />
|
|
|
- <View className="px1Height" />
|
|
|
- <View className="px1Width" />
|
|
|
- <View className="px1Height" />
|
|
|
- <View className="px1Width" />
|
|
|
- <View className="px1Height" />
|
|
|
- <View className="px1Width" />
|
|
|
- <View className="px1Height" />
|
|
|
- <View className="px1Width" />
|
|
|
- <View className="px1Height" />
|
|
|
- <View className="px1Width" />
|
|
|
- </View>
|
|
|
- <Text>Svg Demo</Text>
|
|
|
- <View style={{ background: 'red', width: 30, height: 30 }}>
|
|
|
-
|
|
|
- <mysvg src='<svg t="1701751531644" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3687" width="200" height="200"><path d="M509.92 843.84C325.504 843.84 176 694.32 176 509.92 176 325.504 325.504 176 509.92 176c184.416 0 333.92 149.504 333.92 333.92 0 184.416-149.504 333.92-333.92 333.92z m0-48c157.904 0 285.92-128.016 285.92-285.92C795.84 352 667.808 224 509.92 224 352 224 224 352 224 509.92c0 157.904 128 285.92 285.92 285.92z" fill="#5A626A" p-id="3548"></path></svg>
|
|
|
-' colors={['blue']} />
|
|
|
- </View>
|
|
|
- <View style={{ background: 'red', width: 30, height: 30 }}>
|
|
|
-
|
|
|
- <mysvg src='<svg t="1701751531644" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3687" width="200" height="200"><path d="M509.92 843.84C325.504 843.84 176 694.32 176 509.92 176 325.504 325.504 176 509.92 176c184.416 0 333.92 149.504 333.92 333.92 0 184.416-149.504 333.92-333.92 333.92z m0-48c157.904 0 285.92-128.016 285.92-285.92C795.84 352 667.808 224 509.92 224 352 224 224 352 224 509.92c0 157.904 128 285.92 285.92 285.92z" fill="#5A626A" p-id="3548"></path></svg>
|
|
|
-' colors={['yellow']} />
|
|
|
- </View>
|
|
|
- <View style={{ background: 'red', width: 30, height: 30 }}>
|
|
|
-
|
|
|
- <mysvg src='<svg t="1701751531644" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3687" width="200" height="200"><path d="M509.92 843.84C325.504 843.84 176 694.32 176 509.92 176 325.504 325.504 176 509.92 176c184.416 0 333.92 149.504 333.92 333.92 0 184.416-149.504 333.92-333.92 333.92z m0-48c157.904 0 285.92-128.016 285.92-285.92C795.84 352 667.808 224 509.92 224 352 224 224 352 224 509.92c0 157.904 128 285.92 285.92 285.92z" fill="#5A626A" p-id="3548"></path></svg>
|
|
|
-' colors={['gray']} />
|
|
|
- </View>
|
|
|
- <View style={{ height: 200,display:'flex',flexShrink:0 }} /> */}
|
|
|
-
|
|
|
</View>
|
|
|
}
|
|
|
|