删除会员功能
This commit is contained in:
parent
91b8399554
commit
fd42747fc5
2
app.json
2
app.json
|
@ -2,7 +2,7 @@
|
||||||
"expo": {
|
"expo": {
|
||||||
"name": "铁粉空间",
|
"name": "铁粉空间",
|
||||||
"slug": "ironfans",
|
"slug": "ironfans",
|
||||||
"version": "1.4.5",
|
"version": "1.4.6",
|
||||||
"orientation": "portrait",
|
"orientation": "portrait",
|
||||||
"icon": "./assets/icon.png",
|
"icon": "./assets/icon.png",
|
||||||
"splash": {
|
"splash": {
|
||||||
|
|
|
@ -198,36 +198,10 @@ export function ImageViewer({
|
||||||
}
|
}
|
||||||
return <Image {...props} />;
|
return <Image {...props} />;
|
||||||
}}
|
}}
|
||||||
renderFooter={
|
|
||||||
isTester
|
|
||||||
? () => null
|
|
||||||
: (index) => (
|
|
||||||
<TouchableOpacity
|
|
||||||
onPress={() => hanldSaveImage(index)}
|
|
||||||
style={{
|
|
||||||
marginLeft: 20,
|
|
||||||
marginBottom: insets.bottom,
|
|
||||||
...tailwind(
|
|
||||||
"flex justify-center items-center w-12 h-12 bg-[#FFFFFF1A] rounded-full"
|
|
||||||
),
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{isSaving && <ActivityIndicator size="small" />}
|
|
||||||
{!isSaving && (
|
|
||||||
<Icon
|
|
||||||
type="ionicon"
|
|
||||||
name="save-outline"
|
|
||||||
size={20}
|
|
||||||
color="white"
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</TouchableOpacity>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
onSave={(url) => {
|
onSave={(url) => {
|
||||||
saveImage(url);
|
saveImage(url);
|
||||||
}}
|
}}
|
||||||
saveToLocalByLongPress
|
saveToLocalByLongPress={false}
|
||||||
menus={MenusComponent}
|
menus={MenusComponent}
|
||||||
loadingRender={() => <ActivityIndicator size="large" />}
|
loadingRender={() => <ActivityIndicator size="large" />}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -130,30 +130,6 @@ export default function VideoModal({ visible, setVisible, url }) {
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
{!isTester && (
|
|
||||||
<TouchableOpacity
|
|
||||||
onPress={hanldSaveVideo}
|
|
||||||
style={{
|
|
||||||
left: 20,
|
|
||||||
bottom: insets.bottom,
|
|
||||||
...tailwind(
|
|
||||||
"flex absolute justify-center items-center w-12 h-12 bg-[#FFFFFF1A] rounded-full"
|
|
||||||
),
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{isSaving && (
|
|
||||||
<Text style={tailwind("text-white")}>{progress}%</Text>
|
|
||||||
)}
|
|
||||||
{!isSaving && (
|
|
||||||
<Icon
|
|
||||||
type="ionicon"
|
|
||||||
name="save-outline"
|
|
||||||
size={20}
|
|
||||||
color="white"
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</TouchableOpacity>
|
|
||||||
)}
|
|
||||||
</View>
|
</View>
|
||||||
</TouchableWithoutFeedback>
|
</TouchableWithoutFeedback>
|
||||||
<Toast />
|
<Toast />
|
||||||
|
|
|
@ -351,57 +351,6 @@ export default function My({ navigation }) {
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
{/* 会员 */}
|
|
||||||
{data?.user_id !== 314826 && data?.user_id !== 989430 && (
|
|
||||||
<TouchableOpacity
|
|
||||||
activeOpacity={1}
|
|
||||||
onPress={() =>
|
|
||||||
navigation.navigate("WebWithoutHeader", {
|
|
||||||
uri: process.env.EXPO_PUBLIC_WEB_URL + "/vip",
|
|
||||||
})
|
|
||||||
}
|
|
||||||
style={tailwind(
|
|
||||||
"flex flex-col p-2.5 rounded-2xl mt-3.5 bg-[#301024]"
|
|
||||||
)}
|
|
||||||
>
|
|
||||||
<View
|
|
||||||
style={tailwind("flex flex-row justify-between items-center")}
|
|
||||||
>
|
|
||||||
<View style={tailwind("flex flex-col")}>
|
|
||||||
<View style={tailwind("flex flex-row items-center")}>
|
|
||||||
<NativeImage
|
|
||||||
source={require("../../assets/icon/others/vipsmall.png")}
|
|
||||||
/>
|
|
||||||
<Text
|
|
||||||
style={tailwind("text-base text-[#FF669E] font-medium")}
|
|
||||||
>
|
|
||||||
{data?.is_a_member !== 1
|
|
||||||
? "开通会员保存图片"
|
|
||||||
: "尊贵的永久会员"}
|
|
||||||
</Text>
|
|
||||||
</View>
|
|
||||||
<Text
|
|
||||||
style={tailwind("text-sm text-[#FFFFFF40] font-medium")}
|
|
||||||
>
|
|
||||||
{data?.is_a_member !== 1
|
|
||||||
? "限时优惠活动"
|
|
||||||
: "已解锁全部会员权益"}
|
|
||||||
</Text>
|
|
||||||
</View>
|
|
||||||
{data?.is_a_member !== 1 && (
|
|
||||||
<View
|
|
||||||
style={tailwind(
|
|
||||||
"flex justify-center items-center h-9 bg-[#FF669E] rounded-full px-4"
|
|
||||||
)}
|
|
||||||
>
|
|
||||||
<Text style={tailwind("text-white text-sm font-medium")}>
|
|
||||||
¥{vipPrice}/永久
|
|
||||||
</Text>
|
|
||||||
</View>
|
|
||||||
)}
|
|
||||||
</View>
|
|
||||||
</TouchableOpacity>
|
|
||||||
)}
|
|
||||||
{/* 纵向列表设置区 */}
|
{/* 纵向列表设置区 */}
|
||||||
{data?.role === 3 && (
|
{data?.role === 3 && (
|
||||||
<View
|
<View
|
||||||
|
|
Loading…
Reference in New Issue