Browse Source

1.修改按钮按住不居中问题

zhangmengjie 5 years ago
parent
commit
b82c187433
1 changed files with 7 additions and 6 deletions
  1. 7 6
      pages/components/PersonalInfoDialog.js

+ 7 - 6
pages/components/PersonalInfoDialog.js

@@ -208,7 +208,7 @@ export default class PersonalInfoDialog extends Component<Props> {
                 <View
                   style={{
                     flex: 2,
-                    backgroundColor: this.state.touchcolor,
+
                     height: "100%",
                     borderRadius: 30
                   }}
@@ -227,7 +227,8 @@ export default class PersonalInfoDialog extends Component<Props> {
                         textAlign: "center",
                         fontSize: 23,
                         borderRadius: 30,
-                        color: this.state.touchtextcolor
+                        color: this.state.touchtextcolor,
+                        backgroundColor: this.state.touchcolor
                       }}
                     >
                       确定
@@ -238,9 +239,7 @@ export default class PersonalInfoDialog extends Component<Props> {
                 <View
                   style={{
                     flex: 2,
-                    backgroundColor: this.state.touch_cancel_color,
-                    height: "100%",
-                    borderRadius: 30
+                    height: "100%"
                   }}
                 >
                   <TouchableOpacity
@@ -253,8 +252,10 @@ export default class PersonalInfoDialog extends Component<Props> {
                       style={{
                         textAlignVertical: "center",
                         textAlign: "center",
+                        borderRadius: 30,
                         fontSize: 23,
-                        color: this.state.touch_cancel_textcolor
+                        color: this.state.touch_cancel_textcolor,
+                        backgroundColor: this.state.touch_cancel_color
                       }}
                     >
                       取消