修改样式

This commit is contained in:
李瑞
2025-11-01 21:57:37 +08:00
parent 118d843f52
commit 52960a9a10
11 changed files with 116 additions and 26 deletions

View File

@@ -3,6 +3,7 @@ import Taro from "@tarojs/taro";
import img from "../../config/images";
import { ListCardProps } from "../../../types/list/types";
import { formatGameTime, calculateDuration } from "@/utils/timeUtils";
import images from '@/config/images'
import "./index.scss";
const ListCard: React.FC<ListCardProps> = ({
@@ -157,20 +158,24 @@ const ListCard: React.FC<ListCardProps> = ({
<View className="tags">
<View className="tag">
<Text className="tag-text">
{current_players}/
{current_players}/
<Text className="tag-text-max">{max_players}</Text>
</Text>
</View>
<View className="tag">
<View className="tag ntprTag">
<Image src={images.ICON_LIST_NTPR} className='ntprIcon' />
<Text className="tag-text">
{skill_level_min} {skill_level_max}
{Number(skill_level_min)?.toFixed(1)} - {Number(skill_level_max)?.toFixed(1)}
</Text>
{/* 分割线 */}
<View className="typeLine" />
<Text className="tag-text">{play_type}</Text>
</View>
{play_type && (
{/* {play_type && (
<View className="tag">
<Text className="tag-text">{play_type}</Text>
</View>
)}
)} */}
</View>
</View>
</View>
@@ -183,16 +188,19 @@ const ListCard: React.FC<ListCardProps> = ({
<View className="smoothPlayingGame">
<View className="smoothWrapper">
<Image
src={img.ICON_LIST_PLAYING_GAME}
src={img.ICON_LIST_CHANGDA}
className="iconListPlayingGame"
/>
<Text className="smoothTitle">{game_type}</Text>
{/* <Text className="smoothTitle">{game_type}</Text> */}
</View>
<View className="line" />
<View className="localAreaTitle">:</View>
<View className="localAreaWrapper">
<View className="localAreaContainer">
<View className="localAreaTitle">:</View>
<View className="localAreaWrapper">
<Image className="localArea" src={venueImage} />
<Text className="localAreaText">{venue_description}</Text>
<Text className="localAreaText">{venue_description}</Text>
</View>
</View>
</View>
)}