Răsfoiți Sursa

开奖结果页面高度调整

zbb 3 luni în urmă
părinte
comite
ab7250c210

+ 5 - 5
app/award-detail/components/LotteryResultModal.tsx

@@ -20,7 +20,7 @@ import { convertApply, getApplyResult } from '@/services/award';
 
 const { width: SCREEN_WIDTH } = Dimensions.get('window');
 const CARD_WIDTH = (SCREEN_WIDTH - 60) / 3;
-const CARD_HEIGHT = CARD_WIDTH * 1.5;
+const CARD_HEIGHT = CARD_WIDTH * 1.78;
 
 const CDN_BASE = 'https://cdn.acetoys.cn';
 const imgUrl = `${CDN_BASE}/kai_xin_ma_te/supermart`;
@@ -345,9 +345,9 @@ export const LotteryResultModal = forwardRef<LotteryResultModalRef, LotteryResul
             </Animated.View>
             {/* 正面 - 商品信息 */}
             <Animated.View style={[styles.cardFront, { transform: [{ rotateY: frontRotate }], opacity: frontOpacity }]}>
-              <ImageBackground source={{ uri: levelConfig.resultBg }} style={styles.cardFrontBg} resizeMode="cover">
+              <ImageBackground source={{ uri: levelConfig.resultBg }} style={styles.cardFrontBg} resizeMode="stretch">
                 <Image source={{ uri: item.cover }} style={styles.productImage} contentFit="contain" />
-                <Image source={{ uri: levelConfig.borderImg }} style={styles.borderImage} contentFit="cover" />
+                <Image source={{ uri: levelConfig.borderImg }} style={styles.borderImage} contentFit="fill" />
                 <View style={styles.cardInfo}>
                   <View style={styles.infoRow}>
                     <Text style={styles.levelText}>{levelConfig.title}</Text>
@@ -368,9 +368,9 @@ export const LotteryResultModal = forwardRef<LotteryResultModalRef, LotteryResul
       return (
         <View key={item.id || index} style={styles.cardWrapper}>
           <View style={styles.cardFrontStatic}>
-            <ImageBackground source={{ uri: levelConfig.resultBg }} style={styles.cardFrontBg} resizeMode="cover">
+            <ImageBackground source={{ uri: levelConfig.resultBg }} style={styles.cardFrontBg} resizeMode="stretch">
               <Image source={{ uri: item.cover }} style={styles.productImage} contentFit="contain" />
-              <Image source={{ uri: levelConfig.borderImg }} style={styles.borderImage} contentFit="cover" />
+              <Image source={{ uri: levelConfig.borderImg }} style={styles.borderImage} contentFit="fill" />
               <View style={styles.cardInfo}>
                 <View style={styles.infoRow}>
                   <Text style={styles.levelText}>{levelConfig.title}</Text>

+ 1 - 0
app/award-detail/index.tsx

@@ -26,6 +26,7 @@ import {
 import { CheckoutModal } from './components/CheckoutModal';
 import { ExplainSection } from './components/ExplainSection';
 import { ProductList } from './components/ProductList';
+import { RecordModal } from './components/RecordModal';
 import { RuleModal } from './components/RuleModal';
 
 const { width: SCREEN_WIDTH } = Dimensions.get('window');