feat: 轮播图滚动条,订单列表

This commit is contained in:
2025-09-11 09:51:27 +08:00
parent edd017ccb0
commit ab77cc8ea9
3 changed files with 23 additions and 8 deletions

View File

@@ -27,7 +27,12 @@ const OrderList = () => {
<View key={item.id} className={styles.orderItem}>
<View className={styles.orderTitle}></View>
<View className={styles.gameInfo}>{item?.game_info?.title}</View>
<View className={styles.orderActions}></View>
<View className={styles.orderActions}>
<View></View>
<View>
<Button></Button>
</View>
</View>
</View>
)
})

View File

@@ -93,6 +93,12 @@
padding: 15px 15px 0;
box-sizing: border-box;
overflow-x: scroll;
&::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
color: transparent; /* 透明色 */
}
.detail-swiper-scroll-container {
display: flex;
@@ -394,10 +400,12 @@
align-items: center;
justify-content: center;
overflow: hidden;
border-radius: 12px;
&-map {
width: 100%;
height: 95px;
border-radius: 12px;
}
}
}

View File

@@ -454,20 +454,20 @@ function GameInfo(props) {
{longitude && latitude && (
<Map
className="location-map-map"
longitude={latitude}
latitude={longitude}
longitude={longitude}
latitude={latitude}
markers={[
{
id: 1,
latitude: longitude,
longitude: latitude,
latitude,
longitude,
iconPath: require("@/static/detail/icon-stark.svg"),
width: 16,
height: 16,
},
]}
includePoints={[
{ latitude: longitude, longitude: latitude },
{ latitude, longitude },
{ latitude: currentLocation[0], longitude: currentLocation[1] },
]}
includePadding={{ left: 50, right: 50, top: 50, bottom: 50 }}
@@ -573,12 +573,14 @@ function VenueInfo(props) {
}
function genNTRPRequirementText(min, max) {
if (min && max) {
if (min && max && min !== max) {
return `${min} - ${max} 之间`;
} else if (max === 1) {
return "没有要求";
} else if (max) {
return `${max} 以上`;
}
return "没有要求";
return '-'
}
// 玩法要求
function GamePlayAndRequirement(props) {