meet.js 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. import React, { Component } from "react"
  2. import { StyleSheet, Text, View, Image } from "react-native"
  3. import { unitWidth, unitHeight, getStatusBarHeight } from "../utils/AdapterUtil";
  4. import MyButtom from '../component/MyButton'
  5. import { color } from "react-native-reanimated";
  6. export default class Meet extends Component {
  7. render() {
  8. return (
  9. <View style={styles.container}>
  10. <View style={styles.photoArea}>
  11. <View style={styles.photoRow}>
  12. <View style={styles.photoItem}>
  13. <Image
  14. source={require("../../static/userPhone.png")}
  15. style={styles.userPhone}
  16. />
  17. <View style={styles.userPhoneText}>
  18. <Text style={{ color: "#fff", fontSize: unitWidth * 24 }}>90%</Text>
  19. </View>
  20. </View>
  21. <View style={styles.photoItem}>
  22. <Image
  23. source={require("../../static/userPhone.png")}
  24. style={styles.userPhone}
  25. />
  26. <View style={styles.userPhoneText}>
  27. <Text style={{ color: "#fff", fontSize: unitWidth * 24 }}>90%</Text>
  28. </View>
  29. </View>
  30. </View>
  31. <View style={styles.photoCenterRow}>
  32. <View style={styles.photoCenterCul}>
  33. <View style={styles.photoItem}>
  34. <Image
  35. source={require("../../static/userPhone.png")}
  36. style={styles.userPhone}
  37. />
  38. <View style={styles.userPhoneText}>
  39. <Text style={{ color: "#fff", fontSize: unitWidth * 24 }}>90%</Text>
  40. </View>
  41. </View>
  42. <View style={styles.photoItem}>
  43. <Image
  44. source={require("../../static/userPhone.png")}
  45. style={styles.userPhone}
  46. />
  47. <View style={styles.userPhoneText}>
  48. <Text style={{ color: "#fff", fontSize: unitWidth * 24 }}>90%</Text>
  49. </View>
  50. </View>
  51. </View>
  52. <View style={styles.photoCenter}>
  53. <Image
  54. source={require("../../static/userPhone.png")}
  55. style={styles.userCenterPhone}
  56. />
  57. <View style={styles.userCenterText}>
  58. <Text style={{ color: "#fff", fontSize: unitWidth * 24 }}>90%</Text>
  59. </View>
  60. </View>
  61. <View style={styles.photoCenterCul}>
  62. <View style={styles.photoItem}>
  63. <Image
  64. source={require("../../static/userPhone.png")}
  65. style={styles.userPhone}
  66. />
  67. <View style={styles.userPhoneText}>
  68. <Text style={{ color: "#fff", fontSize: unitWidth * 24 }}>90%</Text>
  69. </View>
  70. </View>
  71. <View style={styles.photoItem}>
  72. <Image
  73. source={require("../../static/userPhone.png")}
  74. style={styles.userPhone}
  75. />
  76. <View style={styles.userPhoneText}>
  77. <Text style={{ color: "#fff", fontSize: unitWidth * 24 }}>90%</Text>
  78. </View>
  79. </View>
  80. </View>
  81. </View>
  82. <View style={styles.photoRow}>
  83. <View style={styles.photoItem}>
  84. <Image
  85. source={require("../../static/userPhone.png")}
  86. style={styles.userPhone}
  87. />
  88. <View style={styles.userPhoneText}>
  89. <Text style={{ color: "#fff", fontSize: unitWidth * 24 }}>90%</Text>
  90. </View>
  91. </View>
  92. <View style={styles.photoItem}>
  93. <Image
  94. source={require("../../static/userPhone.png")}
  95. style={styles.userPhone}
  96. />
  97. <View style={styles.userPhoneText}>
  98. <Text style={{ color: "#fff", fontSize: unitWidth * 24 }}>90%</Text>
  99. </View>
  100. </View>
  101. </View>
  102. </View>
  103. <View style={styles.bottomBtn}>
  104. <MyButtom
  105. text={"换一批"}
  106. width={unitWidth * 270}
  107. height={unitHeight * 74}
  108. borderRadius={unitHeight * 74}
  109. bgColor="#FA788A"
  110. shadowBgc="rgba(250,120,138,1)"
  111. style={{ fontSize: unitWidth * 28 }}
  112. />
  113. <MyButtom
  114. text={"换题目"}
  115. width={unitWidth * 270}
  116. height={unitHeight * 74}
  117. borderRadius={unitHeight * 74}
  118. bgColor="#fff"
  119. shadowBgc="#fff"
  120. borderColor="#FA788A"
  121. borderWidth={1}
  122. style={{ fontSize: unitWidth * 28, color: "#FA788A" }}
  123. />
  124. </View>
  125. </View>
  126. )
  127. }
  128. }
  129. const styles = StyleSheet.create({
  130. container: {
  131. flex: 1,
  132. paddingTop: getStatusBarHeight() + unitHeight * 38,
  133. alignItems: "center"
  134. },
  135. photoArea: {
  136. height: unitHeight * 714,
  137. width: "100%"
  138. },
  139. photoRow: {
  140. width: "100%",
  141. height: unitHeight * 133,
  142. flexDirection: "row",
  143. justifyContent: "space-between",
  144. paddingLeft: unitWidth * 206,
  145. paddingRight: unitWidth * 206
  146. },
  147. photoCenterRow: {
  148. width: "100%",
  149. height: unitHeight * 340,
  150. flexDirection: "row",
  151. justifyContent: "space-between",
  152. alignItems: "center",
  153. paddingLeft: unitWidth * 55,
  154. paddingRight: unitWidth * 55
  155. },
  156. photoCenterCul: {
  157. width: unitWidth * 133,
  158. height: "100%",
  159. justifyContent: "space-between"
  160. },
  161. photoCenter: {
  162. height: unitHeight * 187,
  163. width: unitWidth * 167,
  164. alignItems: "center"
  165. },
  166. userCenterPhone: {
  167. height: unitWidth * 167,
  168. width: unitWidth * 167,
  169. borderRadius: unitHeight * 167,
  170. },
  171. userCenterText: {
  172. width: unitWidth * 100,
  173. height: unitHeight * 40,
  174. backgroundColor: "#FA788A",
  175. marginTop: unitHeight * -20,
  176. borderRadius: unitHeight * 40,
  177. justifyContent: "center",
  178. alignItems: "center"
  179. },
  180. photoItem: {
  181. width: unitWidth * 133,
  182. height: unitHeight * 151,
  183. alignItems: "center"
  184. },
  185. userPhone: {
  186. width: unitWidth * 133,
  187. height: unitWidth * 133,
  188. borderRadius: unitWidth * 133
  189. },
  190. userPhoneText: {
  191. width: unitWidth * 90,
  192. height: unitHeight * 36,
  193. backgroundColor: "#FA788A",
  194. borderRadius: unitHeight * 36,
  195. marginTop: unitHeight * -18,
  196. justifyContent: "center",
  197. alignItems: "center"
  198. },
  199. bottomBtn: {
  200. width: "100%",
  201. marginTop: unitHeight * 94,
  202. height: unitHeight * 74,
  203. flexDirection: "row",
  204. justifyContent: "space-between",
  205. paddingLeft: unitWidth * 65,
  206. paddingRight: unitWidth * 65
  207. }
  208. })