|
|
@@ -183,6 +183,12 @@ export default function RoomScreen() {
|
|
|
onPress={() => handleTypeChange(item, index)}
|
|
|
>
|
|
|
<Text style={[styles.typeText, typeIndex === index && styles.typeTextActive]}>{item.name}</Text>
|
|
|
+ {typeIndex === index && (
|
|
|
+ <>
|
|
|
+ <Image source={{ uri: Images.mine.typeSelectIconT }} style={styles.typeSelectIconT} />
|
|
|
+ <Image source={{ uri: Images.mine.typeSelectIconB }} style={styles.typeSelectIconB} />
|
|
|
+ </>
|
|
|
+ )}
|
|
|
</TouchableOpacity>
|
|
|
))}
|
|
|
</ScrollView>
|
|
|
@@ -290,7 +296,7 @@ const styles = StyleSheet.create({
|
|
|
// 类型切换
|
|
|
typeContainer: { paddingHorizontal: 15, marginBottom: 40 },
|
|
|
typeSection: {},
|
|
|
- typeItem: { marginRight: 20, paddingVertical: 8 },
|
|
|
+ typeItem: { marginRight: 15, width: 55, height: 38, justifyContent: 'center', alignItems: 'center', position: 'relative' },
|
|
|
typeText: { fontSize: 12, color: '#DFDFDF' },
|
|
|
typeTextActive: {
|
|
|
color: '#e79018',
|
|
|
@@ -300,6 +306,22 @@ const styles = StyleSheet.create({
|
|
|
textShadowOffset: { width: 1, height: 1 },
|
|
|
textShadowRadius: 1
|
|
|
},
|
|
|
+ typeSelectIconT: {
|
|
|
+ position: 'absolute',
|
|
|
+ right: -5,
|
|
|
+ top: 5,
|
|
|
+ zIndex: 2,
|
|
|
+ width: 28,
|
|
|
+ height: 10,
|
|
|
+ },
|
|
|
+ typeSelectIconB: {
|
|
|
+ position: 'absolute',
|
|
|
+ left: 0,
|
|
|
+ bottom: 0,
|
|
|
+ zIndex: 2,
|
|
|
+ width: 24,
|
|
|
+ height: 14,
|
|
|
+ },
|
|
|
|
|
|
// 房间列表
|
|
|
roomList: { paddingHorizontal: 0, alignItems: 'center' },
|