Răsfoiți Sursa

fix: 仓库赏品点击改用Pressable整体可点击 build 28

zbb 1 lună în urmă
părinte
comite
28a8ca759d
2 a modificat fișierele cu 12 adăugiri și 10 ștergeri
  1. 1 1
      app.json
  2. 11 9
      app/cloud-warehouse/index.tsx

+ 1 - 1
app.json

@@ -12,7 +12,7 @@
       "supportsTablet": false,
       "bundleIdentifier": "com.asios",
       "appleTeamId": "Y9ZVX3FRX6",
-      "buildNumber": "27",
+      "buildNumber": "28",
       "infoPlist": {
         "CFBundleDisplayName": "艾斯潮盒",
         "ITSAppUsesNonExemptEncryption": false,

+ 11 - 9
app/cloud-warehouse/index.tsx

@@ -7,6 +7,7 @@ import {
     FlatList,
     ImageBackground,
     Platform,
+    Pressable,
     RefreshControl,
     ScrollView,
     StatusBar,
@@ -294,7 +295,13 @@ export default function StoreScreen() {
         style={styles.cell}
         resizeMode="stretch"
       >
-        <View style={styles.cellContent}>
+        <Pressable
+          style={styles.cellContent}
+          onPress={() => {
+            console.log('[仓库] 点击商品详情, id:', item.id);
+            router.push({ pathname: '/cloud-warehouse/detail', params: { id: item.id } } as any);
+          }}
+        >
           <TouchableOpacity
             style={styles.cellHeader}
             onPress={() => canSelect && handleChoose(item)}
@@ -331,13 +338,8 @@ export default function StoreScreen() {
               />
             </TouchableOpacity>
           </TouchableOpacity>
-          <TouchableOpacity
+          <View
             style={styles.cellBody}
-            onPress={() => {
-              console.log('[仓库] 点击商品详情, id:', item.id);
-              router.push({ pathname: '/cloud-warehouse/detail', params: { id: item.id } } as any);
-            }}
-            activeOpacity={0.7}
           >
             <ImageBackground
               source={{ uri: Images.mine.storeGoodsImgBg }}
@@ -358,8 +360,8 @@ export default function StoreScreen() {
               </Text>
             </View>
             <Text style={styles.arrow}>{">"}</Text>
-          </TouchableOpacity>
-        </View>
+          </View>
+        </Pressable>
       </ImageBackground>
     );
   };