add 下拉逻辑 review by daiqiang
Showing
1 changed file
with
11 additions
and
0 deletions
@@ -38,6 +38,7 @@ export default class AssociatorGift extends Component { | @@ -38,6 +38,7 @@ export default class AssociatorGift extends Component { | ||
38 | let heightStyle = total > 0 ? {height: 45} : {height: 35}; | 38 | let heightStyle = total > 0 ? {height: 45} : {height: 35}; |
39 | return ( | 39 | return ( |
40 | <View style={styles.bagBackground}> | 40 | <View style={styles.bagBackground}> |
41 | + <View style={styles.header}/> | ||
41 | <Image style={styles.bgImage} source={require('../images/hyzx_lb.png')}/> | 42 | <Image style={styles.bgImage} source={require('../images/hyzx_lb.png')}/> |
42 | <Text style={styles.bagTitle}>{title}</Text> | 43 | <Text style={styles.bagTitle}>{title}</Text> |
43 | <Text style={[styles.bagTips, heightStyle]}>{desc}</Text> | 44 | <Text style={[styles.bagTips, heightStyle]}>{desc}</Text> |
@@ -143,10 +144,20 @@ let styles = StyleSheet.create({ | @@ -143,10 +144,20 @@ let styles = StyleSheet.create({ | ||
143 | container: { | 144 | container: { |
144 | flex: 1, | 145 | flex: 1, |
145 | }, | 146 | }, |
147 | + header: { | ||
148 | + backgroundColor: '#444444', | ||
149 | + width, | ||
150 | + height: 500, | ||
151 | + flex: 1, | ||
152 | + position: 'absolute', | ||
153 | + top: -500, | ||
154 | + left: 0, | ||
155 | + }, | ||
146 | bagBackground: { | 156 | bagBackground: { |
147 | width: width, | 157 | width: width, |
148 | alignItems: 'center', | 158 | alignItems: 'center', |
149 | backgroundColor: '#444444', | 159 | backgroundColor: '#444444', |
160 | + position: 'relative' | ||
150 | }, | 161 | }, |
151 | bgImage: { | 162 | bgImage: { |
152 | width: 50, | 163 | width: 50, |
-
Please register or login to post a comment