-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBeautyTab.js
185 lines (182 loc) · 5.82 KB
/
BeautyTab.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
Image,
TouchableOpacity,
View
} from 'react-native';
import Toast, {DURATION} from 'react-native-easy-toast'
export default class BeautyTab extends Component {
//大胸妹=34
// 小清新=35
// 文艺范=36
// 性感妹=37
// 大长腿=38
// 黑丝袜=39
// 小翘臀=40
onSelected(type){
switch (type) {
case 34:
this.props.nav.navigate('huabanlist',{ type: type});
break;
case 35:
this.props.nav.navigate('huabanlist',{ type: type});
break;
case 36:
this.props.nav.navigate('huabanlist',{ type: type});
break;
case 37:
this.props.nav.navigate('huabanlist',{ type: type});
break;
case 38:
this.props.nav.navigate('huabanlist',{ type: type});
break;
case 39:
this.props.nav.navigate('huabanlist',{ type: type});
break;
case 40:
this.props.nav.navigate('huabanlist',{ type: type});
break;
default:
}
}
render() {
return (
<View style={styles.container}>
<View style={styles.tabTitleView}>
<Text style={styles.tabTitleText}>花瓣美女</Text>
</View>
<View style={styles.tabcontainer}>
<View style={styles.rowdivide}/>
<View style={styles.tabrow}>
<View style={styles.colnumdivide}/>
<TouchableOpacity onPress={this.onSelected.bind(this,34)} activeOpacity={0.5}>
<Image style={styles.tabrowItemImage} source={require('./image/beauty.png')} resizeMode="contain">
<Text style={styles.rowTitle}>{'大胸妹'}</Text>
</Image>
</TouchableOpacity>
<View style={styles.colnumdivide}/>
<TouchableOpacity onPress={this.onSelected.bind(this,35)} activeOpacity={0.5}>
<Image style={styles.tabrowItemImage} source={require('./image/beauty.png')} resizeMode="contain">
<Text style={styles.rowTitle}>{'小清新'}</Text>
</Image>
</TouchableOpacity>
<View style={styles.colnumdivide}/>
<TouchableOpacity onPress={this.onSelected.bind(this,36)} activeOpacity={0.5}>
<Image style={styles.tabrowItemImage} source={require('./image/beauty.png')} resizeMode="contain">
<Text style={styles.rowTitle}>{'文艺范'}</Text>
</Image>
</TouchableOpacity>
<View style={styles.colnumdivide}/>
</View>
<View style={styles.rowdivide}/>
<View style={styles.tabrow}>
<View style={styles.colnumdivide}/>
<TouchableOpacity onPress={this.onSelected.bind(this,37)} activeOpacity={0.5}>
<Image style={styles.tabrowItemImage} source={require('./image/beauty.png')} resizeMode="contain">
<Text style={styles.rowTitle}>{'性感妹'}</Text>
</Image>
</TouchableOpacity>
<View style={styles.colnumdivide}/>
<TouchableOpacity onPress={this.onSelected.bind(this,38)} activeOpacity={0.5}>
<Image style={styles.tabrowItemImage} source={require('./image/beauty.png')} resizeMode="contain">
<Text style={styles.rowTitle}>{'大长腿'}</Text>
</Image>
</TouchableOpacity>
<View style={styles.colnumdivide}/>
<TouchableOpacity onPress={this.onSelected.bind(this,39)} activeOpacity={0.5}>
<Image style={styles.tabrowItemImage} source={require('./image/beauty.png')} resizeMode="contain">
<Text style={styles.rowTitle}>{'黑丝袜'}</Text>
</Image>
</TouchableOpacity>
<View style={styles.colnumdivide}/>
</View>
<View style={styles.rowdivide}/>
<View style={styles.tabrowlast}>
<View style={styles.colnumdivide}/>
<TouchableOpacity onPress={this.onSelected.bind(this,40)} activeOpacity={0.5}>
<Image style={styles.tabrowItemImage} source={require('./image/beauty.png')} resizeMode="contain">
<Text style={styles.rowTitle}>{'小翘臀'}</Text>
</Image>
</TouchableOpacity>
<View style={styles.colnumdivide}/>
<View style={styles.tabrowItemEmpty}/>
<View style={styles.colnumdivide}/>
<View style={styles.tabrowItemEmpty} />
<View style={styles.colnumdivide}/>
</View>
<View style={styles.rowdivide}>
</View>
</View>
<Toast ref="toast"/>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#F5FCFF',
},
tabcontainer:{
flex: 1,
justifyContent: 'center',
alignItems: 'center',
marginTop:10,
marginBottom:10,
},
tabrow:{
flexDirection:'row',
justifyContent: 'center',
alignItems: 'center',
},
tabrowlast:{
flexDirection:'row',
justifyContent: 'center',
alignItems: 'flex-start',
},
tabrowItemImage:{
width:90,
height:120,
backgroundColor:'#ddd'
},
tabrowItemEmpty:{
width:90,
height:120,
},
rowTitle: {
flex:1,
justifyContent:'center',
alignItems:'center',
textAlignVertical:'center',
backgroundColor:'rgba(0,0,0,0.5)',
padding:3,
textAlign:'center',
color: 'white',
fontSize: 15
},
rowdivide:{
flex: 1,
flexDirection:'row',
},
colnumdivide:{
flex: 1,
},
tabTitleView:{
flexDirection:'row',
height:40,
marginBottom:10,
},
tabTitleText:{
flex:1,
textAlign:'center',
textAlignVertical:'center',
justifyContent: 'center',
alignItems: 'center',
backgroundColor:'#2196F3',
color:'white',
fontSize:14
},
});