修改样式
This commit is contained in:
@@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user