AttestationInfo.js 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. import React, { Component } from "react"
  2. import { StyleSheet, Text, View,Image } from "react-native"
  3. import { unitWidth, unitHeight } from "../utils/AdapterUtil";
  4. import AntDesign from "react-native-vector-icons/AntDesign"
  5. export default class WelcomePage extends Component {
  6. render() {
  7. return (
  8. <View style={styles.container}>
  9. <View style={styles.starArea}>
  10. <Text style={{ fontSize: unitWidth * 28, color: "#333333" }}>您目前的信用等级V1</Text>
  11. <View style={styles.starList}>
  12. <View style={{ alignItems: "center" }}>
  13. <AntDesign
  14. name={"star"}
  15. size={30}
  16. style={{ color: "#FFB664" }}
  17. />
  18. <Text style={{ fontSize: unitWidth * 28, color: "#333333" }}>V1</Text>
  19. </View>
  20. <View style={{ alignItems: "center" }}>
  21. <AntDesign
  22. name={"staro"}
  23. size={30}
  24. style={styles.starItem}
  25. />
  26. <Text style={{ fontSize: unitWidth * 28, color: "#333333" }}>V2</Text>
  27. </View>
  28. <View style={{ alignItems: "center" }}>
  29. <AntDesign
  30. name={"staro"}
  31. size={30}
  32. style={styles.starItem}
  33. />
  34. <Text style={{ fontSize: unitWidth * 28, color: "#333333" }}>V3</Text>
  35. </View>
  36. <View style={{ alignItems: "center" }}>
  37. <AntDesign
  38. name={"staro"}
  39. size={30}
  40. style={styles.starItem}
  41. />
  42. <Text style={{ fontSize: unitWidth * 28, color: "#333333" }}>V4</Text>
  43. </View>
  44. <View style={{ alignItems: "center" }}>
  45. <AntDesign
  46. name={"staro"}
  47. size={30}
  48. style={styles.starItem}
  49. />
  50. <Text style={{ fontSize: unitWidth * 28, color: "#333333" }}>V5</Text>
  51. </View>
  52. </View>
  53. <Text style={{ fontSize: unitWidth * 24, color: "#333333" }}>信用等级越高,代表您的综合竞争力越高哦</Text>
  54. </View>
  55. <View style={styles.bottomList}>
  56. <View style={styles.bottomIconItem}>
  57. <Image
  58. source={require("../../static/gift.png")}
  59. style={styles.imgIcon}
  60. />
  61. <Text style={{ fontSize: unitWidth * 24, color: "#666666",marginTop:unitHeight * 30 }}>实名认证</Text>
  62. </View>
  63. <View style={styles.bottomIconItem}>
  64. <Image
  65. source={require("../../static/gift.png")}
  66. style={styles.imgIcon}
  67. />
  68. <Text style={{ fontSize: unitWidth * 24, color: "#666666",marginTop:unitHeight * 30 }}>工作认证</Text>
  69. </View>
  70. <View style={styles.bottomIconItem}>
  71. <Image
  72. source={require("../../static/gift.png")}
  73. style={styles.imgIcon}
  74. />
  75. <Text style={{ fontSize: unitWidth * 24, color: "#666666",marginTop:unitHeight * 30 }}>学历认证</Text>
  76. </View>
  77. <View style={styles.bottomIconItem}>
  78. <Image
  79. source={require("../../static/gift.png")}
  80. style={styles.imgIcon}
  81. />
  82. <Text style={{ fontSize: unitWidth * 24, color: "#666666",marginTop:unitHeight * 30 }}>房产认证</Text>
  83. </View>
  84. <View style={styles.bottomIconItem}>
  85. <Image
  86. source={require("../../static/gift.png")}
  87. style={styles.imgIcon}
  88. />
  89. <Text style={{ fontSize: unitWidth * 24, color: "#666666",marginTop:unitHeight * 30 }}>车辆认证</Text>
  90. </View>
  91. </View>
  92. </View>
  93. )
  94. }
  95. }
  96. const styles = StyleSheet.create({
  97. container: {
  98. flex: 1,
  99. alignItems: "center"
  100. },
  101. starArea: {
  102. width: "100%",
  103. height: unitHeight * 287,
  104. backgroundColor: "#fff",
  105. alignItems: "center",
  106. paddingTop: unitHeight * 31,
  107. marginBottom: unitHeight * 20
  108. },
  109. starList: {
  110. width: "100%",
  111. flexDirection: "row",
  112. justifyContent: "space-between",
  113. paddingLeft: unitWidth * 64,
  114. paddingRight: unitWidth * 64,
  115. marginTop: unitHeight * 50,
  116. marginBottom: unitHeight * 30
  117. },
  118. starItem: {
  119. color: "#ccc"
  120. },
  121. bottomList: {
  122. width: "100%",
  123. backgroundColor: "#fff",
  124. flexDirection: "row",
  125. justifyContent:"space-between",
  126. paddingLeft:unitWidth * 40,
  127. paddingRight:unitWidth * 40
  128. },
  129. bottomIconItem:{
  130. width:unitWidth * 110,
  131. height:unitHeight * 157,
  132. justifyContent:"center",
  133. alignItems:"center"
  134. }
  135. })