PassMode1.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. import React, { Component } from "react"
  2. import { StyleSheet, Text, View, Image } from "react-native"
  3. import { unitWidth, unitHeight } from "../utils/AdapterUtil";
  4. export default class PassMode1 extends Component {
  5. render() {
  6. return (
  7. <View style={styles.container}>
  8. <View style={styles.topArea}>
  9. <View style={styles.tit}>
  10. <Text style={styles.titText}>第一关</Text>
  11. </View>
  12. <Text style={{ fontSize: unitWidth * 28, color: "#666666" }}>你会选择你爱的人还是爱你的人你会选择你爱的人还是爱你的人你会选择你爱的人还是爱你的人你会选择你爱的人还是爱你的人你会选择你爱的人还是爱你的人你会选择你爱的人还是爱你的人你会选择你爱的人还是爱你的人</Text>
  13. </View>
  14. <View style={styles.btnList}>
  15. <View style={styles.btnItem}>
  16. <View style={styles.btnItemLeft}>
  17. <Text style={{ fontSize: unitWidth * 60, color: "#FFE1EE" }}>A</Text>
  18. </View>
  19. <View style={styles.btnItemRight}>
  20. <Text style={{ fontSize: unitWidth * 28, color: "#666666" }}>XXXXXXXXXXXXXXXXXXXXXXXXXXXX</Text>
  21. </View>
  22. </View>
  23. <View style={styles.btnItemRed}>
  24. <View style={styles.btnItemLeft}>
  25. <Text style={{ fontSize: unitWidth * 60, color: "#FFE1EE" }}>B</Text>
  26. </View>
  27. <View style={styles.btnItemRight}>
  28. <Text style={{ fontSize: unitWidth * 28, color: "#666666" }}>XXXXXXXXXXXXXXXXXXXXXXXXXXXX</Text>
  29. </View>
  30. </View>
  31. <View style={styles.btnItem}>
  32. <View style={styles.btnItemLeft}>
  33. <Text style={{ fontSize: unitWidth * 60, color: "#FFE1EE" }}>C</Text>
  34. </View>
  35. <View style={styles.btnItemRight}>
  36. <Text style={{ fontSize: unitWidth * 28, color: "#666666" }}>XXXXXXXXXXXXXXXXXXXXXXXXXXXX</Text>
  37. </View>
  38. </View>
  39. <View style={styles.btnItem}>
  40. <View style={styles.btnItemLeft}>
  41. <Text style={{ fontSize: unitWidth * 60, color: "#FFE1EE" }}>D</Text>
  42. </View>
  43. <View style={styles.btnItemRight}>
  44. <Text style={{ fontSize: unitWidth * 28, color: "#666666" }}>XXXXXXXXXXXXXXXXXXXXXXXXXXXX</Text>
  45. </View>
  46. </View>
  47. </View>
  48. </View>
  49. )
  50. }
  51. }
  52. const styles = StyleSheet.create({
  53. container: {
  54. flex: 1,
  55. alignItems: "center"
  56. },
  57. topArea: {
  58. width: "100%",
  59. paddingLeft: unitWidth * 24,
  60. paddingRight: unitWidth * 24,
  61. paddingTop: unitHeight * 20,
  62. },
  63. tit: {
  64. borderLeftWidth: unitWidth * 4,
  65. borderColor: "#FA788A",
  66. paddingLeft: unitWidth * 12,
  67. justifyContent: "center",
  68. marginBottom: unitHeight * 47
  69. },
  70. titText: {
  71. fontSize: unitWidth * 28,
  72. color: "#333333",
  73. fontWeight: "bold"
  74. },
  75. btnList: {
  76. paddingLeft:unitWidth * 30,
  77. marginTop: unitHeight * 60,
  78. width:"100%"
  79. },
  80. btnItem: {
  81. width: unitWidth * 642,
  82. height: unitHeight * 80,
  83. backgroundColor: "#F2F2F2",
  84. marginBottom: unitHeight * 30,
  85. borderRadius: unitHeight * 80,
  86. flexDirection: "row",
  87. alignItems: "center",
  88. borderWidth:1,
  89. borderColor:"#ccc"
  90. },
  91. btnItemLeft: {
  92. flex: 1,
  93. height: "100%",
  94. justifyContent: "center",
  95. alignItems: "center",
  96. borderRightWidth: 1,
  97. borderRightColor: "#FFD1D1"
  98. },
  99. btnItemRight: {
  100. flex: 4,
  101. paddingLeft: unitWidth * 23,
  102. paddingRight: unitWidth * 23
  103. },
  104. btnItemRed: {
  105. width: unitWidth * 642,
  106. height: unitHeight * 80,
  107. backgroundColor: "#FB788A",
  108. marginBottom: unitHeight * 30,
  109. borderRadius: unitHeight * 80,
  110. flexDirection: "row",
  111. alignItems: "center",
  112. borderWidth:1,
  113. borderColor:"#FF4A6C"
  114. }
  115. })