Suggestion.js 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. import React, { Component } from "react"
  2. import { StyleSheet, TextInput, View, Image, Text } from "react-native"
  3. import { unitWidth, unitHeight } from "../utils/AdapterUtil";
  4. import MyButtom from '../component/MyButton'
  5. export default class Suggestion extends Component {
  6. render() {
  7. return (
  8. <View style={styles.container}>
  9. <View style={styles.textArea}>
  10. <TextInput
  11. placeholder="请输入您的投诉建议内容,我们会为您更好的服务"
  12. multiline={true}
  13. placeholderTextColor={"#999999"}
  14. style={styles.TextInput}
  15. />
  16. <Text style={{ textAlign: "right", fontSize: unitWidth * 24, color: "#999999", marginRight: unitWidth * 46 }}>0/200</Text>
  17. <View style={styles.phoneArea}>
  18. <Image
  19. source={require("../../static/userPhone.png")}
  20. style={styles.imgIcon}
  21. />
  22. <Text style={{ fontSize: unitWidth * 28, color: "#333333"} }>照片</Text>
  23. </View>
  24. </View>
  25. <View style={styles.bottomBtn}>
  26. <MyButtom
  27. text={"提交反馈"}
  28. width={unitWidth * 502}
  29. height={unitHeight * 84}
  30. borderRadius={unitHeight * 84}
  31. bgColor="#FA788A"
  32. shadowBgc="rgba(250,120,138,1)"
  33. style={{ fontSize: unitWidth * 32 }}
  34. />
  35. </View>
  36. </View>
  37. )
  38. }
  39. }
  40. const styles = StyleSheet.create({
  41. container: {
  42. flex: 1,
  43. paddingLeft: unitWidth * 23,
  44. paddingRight: unitWidth * 23,
  45. alignItems: "center"
  46. },
  47. textArea: {
  48. width: "100%",
  49. height: unitHeight * 463,
  50. backgroundColor: "#fff",
  51. paddingLeft: unitWidth * 23,
  52. paddingTop: unitHeight * 30,
  53. borderRadius: unitHeight * 10,
  54. marginTop: unitHeight * 10,
  55. },
  56. TextInput: {
  57. width: "100%",
  58. height: unitHeight * 197
  59. },
  60. phoneArea: {
  61. width: unitWidth * 140,
  62. alignItems:"center"
  63. },
  64. imgIcon: {
  65. width: unitWidth * 140,
  66. height: unitHeight * 140,
  67. marginBottom:unitHeight * 12,
  68. },
  69. bottomBtn: {
  70. width: "100%",
  71. marginTop: unitHeight * 196,
  72. height: unitHeight * 84,
  73. justifyContent: 'center',
  74. alignItems: 'center'
  75. },
  76. })