CardPackageScreen.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import React, {Component} from 'react';
  2. import CommonTitleBar from '../views/CommonTitleBar';
  3. import {Image, StyleSheet, Text, View} from 'react-native';
  4. import StorageUtil from '../utils/StorageUtil';
  5. // 卡包
  6. export default class CardPackageScreen extends Component {
  7. render() {
  8. return (
  9. <View style={styles.container}>
  10. <CommonTitleBar nav={this.props.navigation} title={"卡包"}/>
  11. <View style={styles.content}>
  12. <Text style={styles.listTitle}>会员卡</Text>
  13. <View style={styles.blueCard}>
  14. <Image source={require('../../images/ic_card_img1.png')}
  15. style={{width: 60, height: 60, marginTop: 10, marginBottom: 10}}/>
  16. <View style={{flex: 1, flexDirection: 'column', marginLeft: 15,}}>
  17. <Text style={{fontSize: 15, color: '#FFFFFF'}}>迪卡侬</Text>
  18. <Text style={{fontSize: 25, color: '#FFFFFF'}}>会员卡</Text>
  19. </View>
  20. </View>
  21. <Text style={[styles.listTitle, {marginTop: 30,}]}>优惠券</Text>
  22. <View style={styles.whiteCard}>
  23. <Image source={require('../../images/ic_card_img2.png')}
  24. style={{width: 60, height: 50, marginTop: 10, marginBottom: 10}}/>
  25. <Text style={{fontSize: 20, color: '#000000', marginLeft: 10}}>朋友的优惠券</Text>
  26. </View>
  27. <View style={[styles.whiteCard, {marginTop: 10}]}>
  28. <Image source={require('../../images/ic_card_img3.png')}
  29. style={{width: 60, height: 50, marginTop: 10, marginBottom: 10}}/>
  30. <Text style={{fontSize: 20, color: '#000000', marginLeft: 10}}>我的票券(0)</Text>
  31. </View>
  32. </View>
  33. </View>
  34. );
  35. }
  36. }
  37. const styles = StyleSheet.create({
  38. container: {
  39. flex: 1,
  40. flexDirection: 'column',
  41. },
  42. content: {
  43. flex: 1,
  44. flexDirection: 'column',
  45. padding: 10,
  46. },
  47. listTitle: {
  48. fontSize: 13,
  49. color: '#6A6A6A',
  50. marginTop: 10,
  51. marginBottom: 10,
  52. },
  53. blueCard: {
  54. backgroundColor: '#29779E',
  55. padding: 15,
  56. flexDirection: 'row',
  57. justifyContent: 'flex-start',
  58. alignItems: 'center',
  59. borderRadius: 8,
  60. },
  61. whiteCard: {
  62. backgroundColor: '#FFFFFF',
  63. padding: 15,
  64. flexDirection: 'row',
  65. justifyContent: 'flex-start',
  66. alignItems: 'center',
  67. borderRadius: 8,
  68. }
  69. });