Attestation.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. import React, { Component } from "react"
  2. import { StyleSheet, View } from "react-native"
  3. import { unitWidth, unitHeight } from "../../utils/AdapterUtil";
  4. import MyButtom from '../../component/MyButton'
  5. import Title from "./Title"
  6. import Icon from "./Icon"
  7. import Info from "./Info"
  8. import Select from "./Select"
  9. import IdSelect from "./IdSelect"
  10. import IdIcon from "./IdIcon"
  11. export default class Attestation extends Component {
  12. state = {
  13. pageStatus: 2
  14. }
  15. render() {
  16. return (
  17. <View style={styles.container}>
  18. {
  19. this.state.pageStatus === 1 ? (<Select />) : null
  20. }
  21. <Title
  22. tit="完成身份验证,信用值+10"
  23. subTit=""
  24. />
  25. {
  26. this.state.pageStatus === 2 ? (<IdSelect />) : null
  27. }
  28. {
  29. this.state.pageStatus === 1 ? (<Icon
  30. text="请上传您的行驶证内页图片"
  31. IconList={["点击上传个人名片", "点击上传个人工牌", "点击上传在职证明"]}
  32. />) : null
  33. }
  34. {
  35. this.state.pageStatus === 2 ? (<IdIcon
  36. IconList={["点击上传人像面", "点击上传国徽面"]}
  37. />) : null
  38. }
  39. <Info
  40. infoList={["1.请保证拍摄图片清晰可辨,证书中的印章完整清晰。", "2.证书中的证书编号、院校名称、学历类别、姓名等信息须完整清晰,请勿遮挡。"]}
  41. />
  42. <View style={styles.bottomBtn}>
  43. <MyButtom
  44. text={"提交认证"}
  45. width={unitWidth * 502}
  46. height={unitHeight * 84}
  47. borderRadius={unitHeight * 84}
  48. bgColor="#FA788A"
  49. shadowBgc="rgba(250,120,138,1)"
  50. style={{ fontSize: unitWidth * 32 }}
  51. />
  52. </View>
  53. </View>
  54. )
  55. }
  56. }
  57. const styles = StyleSheet.create({
  58. container: {
  59. flex: 1,
  60. alignItems: "center",
  61. backgroundColor: "#fff"
  62. },
  63. bottomBtn: {
  64. width: "100%",
  65. height: unitHeight * 84,
  66. justifyContent: 'center',
  67. alignItems: 'center',
  68. position: "absolute",
  69. bottom: unitHeight * 138
  70. }
  71. })