meet.js 8.4 KB

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