Parcourir la source

⚡️ perf(activity): 移除活动选择页面中的图片占位元素以优化加载速度

- 注释掉出发活动列表中的图片占位容器
- 注释掉返回活动列表中的图片占位容器
- 减少DOM节点数量,提升页面渲染性能
yourname il y a 3 mois
Parent
commit
bc516cf39f
1 fichiers modifiés avec 6 ajouts et 6 suppressions
  1. 6 6
      mini/src/pages/select-activity/ActivitySelectPage.tsx

+ 6 - 6
mini/src/pages/select-activity/ActivitySelectPage.tsx

@@ -258,10 +258,10 @@ const ActivitySelectPage: React.FC = () => {
                       onClick={() => handleSelectActivity(activity, 'departure')}
                     >
                       <View className="flex">
-                        {/* 活动图片占位 - 后续可添加图片功能 */}
-                        <View className="w-16 h-16 rounded-medium mr-4 bg-gray-200 flex items-center justify-center">
+                        {/* 活动图片占位 - 暂时移除以优化加载速度 */}
+                        {/* <View className="w-16 h-16 rounded-medium mr-4 bg-gray-200 flex items-center justify-center">
                           <Text className="text-gray-500 text-xs">活动图片</Text>
-                        </View>
+                        </View> */}
                         <View className="flex-1">
                           <Text className="text-base font-medium text-gray-800 block">
                             {activity.name}
@@ -319,10 +319,10 @@ const ActivitySelectPage: React.FC = () => {
                       onClick={() => handleSelectActivity(activity, 'return')}
                     >
                       <View className="flex">
-                        {/* 活动图片占位 - 后续可添加图片功能 */}
-                        <View className="w-16 h-16 rounded-medium mr-4 bg-gray-200 flex items-center justify-center">
+                        {/* 活动图片占位 - 暂时移除以优化加载速度 */}
+                        {/* <View className="w-16 h-16 rounded-medium mr-4 bg-gray-200 flex items-center justify-center">
                           <Text className="text-gray-500 text-xs">活动图片</Text>
-                        </View>
+                        </View> */}
                         <View className="flex-1">
                           <Text className="text-base font-medium text-gray-800 block">
                             {activity.name}