// 会员权益 import { View, Text, StyleSheet, ImageBackground, ScrollView, Image, TouchableOpacity, } from "react-native"; import { useTranslation } from "react-i18next"; import widthUtils from "../../utils/widthUtils"; import fontSize from "../../utils/fontsizeUtils"; import WatchAppIcon from "../../components/WatchAppIcon"; import CrownIcon from "../../components/CrownIcon"; import BookLabIcon from "../../components/BookLabIcon"; import { useNavigation } from "@react-navigation/native"; import { NativeStackNavigationProp } from "@react-navigation/native-stack"; import useUserStore from "../../store/user"; import BackIcon from "../../components/BackIcon"; type RootStackParamList = { Balance: undefined; }; export const MemberIntroduction = () => { const navigation = useNavigation>(); const userStore = useUserStore(); const { t } = useTranslation(); return ( navigation.goBack()}> {t("member.introduction")} VIP {userStore.user?.vip_level || 0} {t("member.vip.progress", {current: 40000, target: 50000})} {t("member.client_service")} {t("member.vip.spend_more_text")} { navigation.navigate("Balance"); }} > {t("member.recharge")} {t("member.benefits.title")} {t("member.learn_more")} {t("member.benefits.description")} {/* Member Pricing Section */} 01 {t("member.benefits.pricing.title")} {t("member.benefits.pricing.description")} {/* Dedicated Service Section */} {t("member.benefits.dedicated_service.title")} {t("member.benefits.dedicated_service.description")} 02 {/* Photo Service Section */} {t("member.benefits.photo_service.title")} {t("member.benefits.photo_service.description")} 03 {/* Dedicated Service Section */} {t("member.benefits.inspection.title")} {t("member.benefits.inspection.description")} 04 {/* Photo Service Section */} {t("member.benefits.forwarder.title")} {t("member.benefits.forwarder.description")} 05 {/* Dedicated Service Section */} {t("member.benefits.custom_products.title")} {t("member.benefits.custom_products.description")} 06 {t("member.how_to_become")} {t("member.calculation_part1")} {t("member.calculation_part2")} {t("member.calculation_part3")} 365 {t("member.calculation_part4")} {/* 第一张卡片 */} {/* SVG 图标可用 react-native-svg 实现 */} 1 {t("member.vip.consumption_total")} 500 000 FCFA {t("member.vip.discount_part1")} 5% {t("member.vip.discount_part2")} {/* 第二张卡片 */} {/* 可用渐变 */} 2 {t("member.vip.consumption_total")} 1 000 000 FCFA (1563 USD / 1502 EUR) {t("member.vip.discount_part1")} 10% {t("member.vip.discount_part2")} {/* 第三张卡片 */} {/* 可用渐变 */} 3 {t("member.vip.consumption_total")} 2 000 000 FCFA (3125 USD / 3005 EUR) {t("member.vip.discount_part1")} 12% {t("member.vip.discount_part2")} {/* 第四张卡片 */} {/* 可用渐变 */} 4 {t("member.vip.consumption_total")} 3 000 000 FCFA (4688 USD / 4507 EUR) {t("member.vip.discount_part1")} 15% {t("member.vip.discount_part2")} {/* 第五张卡片 */} {/* 可用渐变 */} 5 {t("member.vip.consumption_total")} 5 000 000 FCFA (7813 USD / 7512 EUR) {t("member.vip.discount_part1")} 20% {t("member.vip.discount_part2")} {t("member.important_info.title")} {t("member.important_info.auto_update")} {t("member.important_info.reset_rule")} {t("member.important_info.example")} ); }; const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: "white", }, backgroundContainer: { width: "100%", height: widthUtils(300, 300).height, position: "relative", }, timecardWidget: { width: "100%", height: "100%", }, titleContainer: { width: "100%", flexDirection: "row", alignItems: "center", justifyContent: "center", position: "absolute", left: 0, right: 0, top: 10, height: 48, zIndex: 10, paddingLeft: 19, paddingRight: 19, paddingTop: 10, paddingBottom: 10, }, backIconContainer: { position: "absolute", left: 19, top: 10, zIndex: 11, }, titleHeading: { fontWeight: "600", fontSize: fontSize(20), lineHeight: 16, fontFamily: "PingFang SC", color: "#fff", }, VipContainer: { width: widthUtils(400, 400).width, height: widthUtils(200, 200).height, position: "absolute", left: "50%", top: widthUtils(300, 300).height / 2, transform: [{ translateX: -widthUtils(400, 400).width / 2 }], borderRadius: 10, }, VipContainerTop: { width: "100%", height: "60%", backgroundColor: "#dfb57b", padding: 10, borderTopLeftRadius: 10, borderTopRightRadius: 10, shadowColor: "#000", shadowOffset: { width: 0, height: -2, }, shadowOpacity: 0.25, shadowRadius: 3.84, elevation: 5, borderBottomWidth: 0, borderLeftWidth: 0, borderRightWidth: 0, }, VipContainerBottom: { width: "100%", height: "40%", backgroundColor: "#fee1b4", borderBottomLeftRadius: 10, borderBottomRightRadius: 10, padding: 10, shadowColor: "#000", shadowOffset: { width: 0, height: -2, }, shadowOpacity: 0.25, shadowRadius: 3.84, elevation: 5, overflow: "hidden", flexDirection: "row", }, VipContainerBox: { width: "100%", height: "50%", flexDirection: "row", alignItems: "center", }, VipContainerTopPhone: { width: "100%", height: "50%", }, VipContainerTopPhoneBox: { width: "60%", }, VipContainerTopPhoneBoxTop: { width: "100%", height: "100%", flexDirection: "row", alignItems: "center", paddingTop: 5, paddingBottom: 5, paddingLeft: 10, paddingRight: 10, borderRadius: 30, backgroundColor: "#00a849", justifyContent: "center", }, VipContainerTopPhoneBoxTopText: { fontSize: fontSize(20), color: "#fff", fontWeight: "bold", }, Vip: { width: "30%", height: "100%", alignItems: "center", justifyContent: "center", }, VipText: { fontSize: fontSize(34), fontFamily: "PingFangSC-Medium", color: "#6b3611", fontWeight: "900", fontStyle: "italic", }, VipLine: { width: "70%", height: "100%", alignItems: "center", justifyContent: "center", }, lineText: { width: "100%", height: "50%", }, lineTextText: { fontSize: fontSize(12), color: "#6b3611", fontWeight: "bold", }, line: { width: "100%", height: "5%", backgroundColor: "#fff2dc", }, left: { width: "60%", height: "100%", }, leftText: { fontSize: fontSize(14), color: "#6b3611", }, right: { width: "40%", height: "100%", }, rechargeContainer: { width: "100%", height: "100%", justifyContent: "center", alignItems: "center", }, rechargeText: { fontSize: fontSize(16), color: "#6b3611", fontWeight: "bold", borderRadius: 30, backgroundColor: "#deb479", padding: 10, }, scrollView: { flex: 1, backgroundColor: "#f1f3f6", }, scrollViewContent: { flex: 1, padding: 10, margin: 10, borderRadius: 10, }, membershipBenefitsContainer: { padding: 15, marginTop: 80, }, membershipBenefitsSection1: { alignItems: "center", }, membershipBenefitsTitle: { fontSize: fontSize(22), fontWeight: "900", color: "black", }, membershipBenefitsButton: { width: 200, height: 40, marginTop: 10, backgroundColor: "#fef7e9", borderRadius: 20, justifyContent: "center", alignItems: "center", }, buttonText: { fontSize: fontSize(14), fontWeight: "700", color: "#7e522c", }, membershipBenefitsSection: { marginTop: 20, }, membershipBenefitsDescription: { fontSize: fontSize(12), lineHeight: 18, color: "black", }, featureBoxContainer: { marginTop: 16, gap: 14, }, membershipPricingSection: { flexDirection: "column", }, membershipPricingSection1: { backgroundColor: "white", borderRadius: 5, overflow: "hidden", }, memberPricingSection1: { flexDirection: "row", padding: 16, backgroundColor: "#fff", borderRadius: 30, position: "relative", overflow: "hidden", }, vipDiscountDetails: { position: "absolute", top: -10, left: -10, width: 44, height: 44, borderRadius: 22, backgroundColor: "#0071f7", justifyContent: "center", alignItems: "center", fontSize: 20, color: "white", }, memberPricingDetailsContainer: { marginLeft: 16, flex: 1, }, memberPriceDescription: { fontSize: fontSize(14), fontWeight: "bold", color: "#002fa7", }, vipDiscountDetailsTextStyle: { fontSize: fontSize(12), lineHeight: 16, color: "#000", marginTop: 5, width: "75%", }, memberPricingSection: { alignSelf: "flex-end", marginTop: -76, paddingHorizontal: 27.5, }, blueBoxThumbnail: { width: 67, height: 91, shadowColor: "rgba(42, 136, 200, 0.3)", shadowOffset: { width: 3, height: 4 }, shadowOpacity: 1, shadowRadius: 4, elevation: 5, }, dedicatedServiceSection: { marginTop: 14, }, serviceCard: { backgroundColor: "white", borderRadius: 5, overflow: "hidden", position: "relative", }, serviceSection: { flexDirection: "row", justifyContent: "flex-end", padding: 16, backgroundColor: "#fff", }, serviceDetailsContainer: { flex: 1, alignItems: "flex-end", marginRight: 10, }, dedicatedServiceTextStyle: { fontSize: fontSize(14), color: "#002fa7", fontWeight: "bold", width: "50%", textAlign: "right", }, orderTrackingServiceDescriptionTextStyle: { fontSize: fontSize(12), lineHeight: 16, color: "#271f18", textAlign: "right", marginTop: 3, width: "75%", }, shoppingExperienceDetails: { marginTop: -86, paddingHorizontal: 16, }, imageContainer1: { width: 80, height: 100, shadowColor: "rgba(64, 111, 229, 0.3)", shadowOffset: { width: 2, height: 4 }, shadowOpacity: 1, shadowRadius: 4, elevation: 5, }, photoServiceSection: { marginTop: 14, }, photoServiceContainer1: { flexDirection: "row", backgroundColor: "white", borderRadius: 5, padding: 16, overflow: "hidden", position: "relative", }, circularGradientBadge: { width: 35, height: 35, borderRadius: 17.5, backgroundColor: "#3955f6", justifyContent: "center", alignItems: "center", }, photoRequestServiceBlock: { flex: 1, marginLeft: 16, }, photoServiceContainer: { marginTop: -84, paddingHorizontal: 9, alignSelf: "flex-end", width: 105, height: 105, }, imageContainer: { width: "100%", height: "100%", shadowColor: "rgba(181, 182, 186, 0.4)", shadowOffset: { width: 2, height: 4 }, shadowOpacity: 1, shadowRadius: 4, elevation: 5, }, inspectionSection: { marginTop: -10, }, inspectionCard: { backgroundColor: "white", borderRadius: 5, paddingBottom: 7, }, inspectionContainer: { flexDirection: "row", justifyContent: "flex-end", alignItems: "center", backgroundColor: "#fff", padding: 16, }, inspectionTitle: { fontSize: fontSize(14), color: "#002fa7", marginRight: 10, }, inspectionMessageStyle: { fontSize: fontSize(12), lineHeight: 15, color: "#271f18", textAlign: "right", marginTop: -52, paddingHorizontal: 33, }, contentWrapper: { marginTop: -61, paddingHorizontal: 16, }, imageContainer2: { width: 74, height: 77, shadowColor: "rgba(56, 186, 189, 0.3)", shadowOffset: { width: 2, height: 4 }, shadowOpacity: 1, shadowRadius: 4, elevation: 5, }, transitaireSection: { marginTop: -2, }, transitaireInfoBox: { flex: 1, marginLeft: 8, }, transitaireDesigneBlock: { marginTop: -71, paddingHorizontal: 23.5, alignSelf: "flex-end", }, imageContainerStyled: { width: 68, height: 88, shadowColor: "rgba(250, 155, 72, 0.3)", shadowOffset: { width: 2, height: 4 }, shadowOpacity: 1, shadowRadius: 4, elevation: 5, }, personalizedProductAssistanceContainer: { backgroundColor: "white", borderRadius: 5, paddingBottom: 10, }, personalizedProductAssistanceSection: { flexDirection: "row", justifyContent: "flex-end", height: 85, backgroundColor: "#002fa7", padding: 16, }, personalizedProductsAssistanceText: { fontSize: fontSize(14), lineHeight: 18, color: "#002fa7", textAlign: "right", marginRight: 10, }, customProductDescription: { marginTop: -33, paddingHorizontal: 39, }, customTextBlock: { fontSize: fontSize(12), lineHeight: 16, color: "#271f18", textAlign: "right", }, customProductAssistanceBlock: { marginTop: -86, }, imageContainerWithShadow: { width: 110, height: 110, shadowColor: "rgba(254, 89, 41, 0.2)", shadowOffset: { width: 2, height: 4 }, shadowOpacity: 1, shadowRadius: 4, elevation: 5, }, memberPricingBadge: { position: "absolute", top: -12, left: -12, width: 40, height: 40, borderRadius: 20, backgroundColor: "#1c62f3", justifyContent: "center", alignItems: "center", zIndex: 10, }, memberPricingBadgeText: { fontSize: fontSize(16), color: "#fff", fontWeight: "bold", textAlign: "center", marginLeft: 8, marginTop: 6, }, dedicatedServiceBadge: { position: "absolute", top: -12, right: -12, width: 40, height: 40, borderRadius: 20, backgroundColor: "#1c62f3", justifyContent: "center", alignItems: "center", zIndex: 10, }, dedicatedServiceBadgeText: { fontSize: fontSize(16), color: "#fff", fontWeight: "bold", textAlign: "center", marginRight: 8, marginTop: 6, }, photoServiceBadge: { position: "absolute", top: -12, left: -12, width: 40, height: 40, borderRadius: 20, backgroundColor: "#1c62f3", justifyContent: "center", alignItems: "center", zIndex: 10, }, photoServiceBadgeText: { fontSize: fontSize(16), color: "#fff", fontWeight: "bold", textAlign: "center", marginLeft: 8, marginTop: 6, }, membershipCard: { borderRadius: 10, padding: 19, backgroundColor: "#3a3128", // 可用渐变 }, inquirySection: { marginBottom: 20, }, gradientHeading: { fontSize: 24, fontWeight: "500", color: "#fa934f", // 可用渐变文字 marginBottom: 10, }, infoText: { color: "#fdd08f", marginTop: 26, }, cumulativeInfo: { fontSize: 13, color: "#fdd08f", }, highlightedText: { fontWeight: "900", fontSize: fontSize(15), color: "#fdd08f", }, totalStats: { fontWeight: "900", fontSize: fontSize(16), color: "#fdd08f", }, cardSection: { marginTop: 19, }, cardItem: { borderRadius: 10, padding: 15, marginBottom: 24, }, row: { flexDirection: "row", alignItems: "center", marginBottom: 10, }, iconPlaceholder: { width: 32, height: 32, backgroundColor: "#eee", // SVG 占位 borderRadius: 16, }, cardImage: { width: 62, height: 26, marginLeft: 10, resizeMode: "contain", }, majesticText: { fontStyle: "italic", fontWeight: "900", fontSize: 38, marginLeft: 10, color: "#3496ff", }, amountContainer: { marginTop: 11, }, amountMessage: { fontSize: 12, color: "#5fa9ff", }, amountLabel: { fontSize: 12, fontWeight: "900", color: "#2a8bfa", marginTop: -2, }, discountMessage: { fontSize: 14, color: "#2a8bfa", marginTop: 8, }, discountBold: { fontWeight: "900", fontSize: 14, }, outerContainer: { backgroundColor: "#f1f2f6", flex: 1, }, importantInfoContainer1: { paddingTop: 30, paddingRight: 20, paddingBottom: 17, paddingLeft: 20, }, contentWrapperq: { paddingRight: 30, paddingLeft: 30, }, svgContainer: { width: 24, height: 24, justifyContent: "center", alignItems: "center", color: "#0051ff", }, svgPlaceholder: { width: 24, height: 24, borderRadius: 12, }, importantInfoContainer2: { width: "100%", paddingRight: 19, paddingBottom: 26, paddingLeft: 19, marginTop: -5, borderBottomLeftRadius: 10, borderBottomRightRadius: 10, }, importantInfoContainer: { flexDirection: "row", alignItems: "flex-start", justifyContent: "flex-start", }, importantInfoHeading: { paddingTop: 10, fontWeight: "900", fontSize: 20, lineHeight: 22, color: "white", fontFamily: "System", }, importantInfoImage: { width: 90, height: 90, marginLeft: 4, borderRadius: 8, resizeMode: "cover", }, vipStatusUpdateContainer: { flexDirection: "row", alignItems: "flex-start", marginTop: 16, }, vipStatusContainer: { paddingTop: 3, }, svgContainer1: { width: 16, height: 16, justifyContent: "center", alignItems: "center", }, svgPlaceholderSmall: { width: 16, height: 16, backgroundColor: "#fff", borderRadius: 8, }, vipStatusMessageTextStyle: { marginLeft: 2, fontWeight: "500", fontSize: 13, lineHeight: 20, color: "white", textAlign: "left", fontFamily: "System", }, vipLevelInfoContainer: { width: "100%", marginTop: 18, }, vipDescriptionTextStyle: { flex: 1, marginLeft: 2, fontWeight: "500", fontSize: 13, lineHeight: 20, color: "white", textAlign: "left", fontFamily: "System", }, paragraphContainer: { paddingRight: 19, paddingLeft: 19, marginTop: 6, }, exampleParagraphStyle: { fontSize: 11, lineHeight: 16, color: "rgba(255,255,255,0.8)", textAlign: "left", fontFamily: "System", }, });