Explorar o código

1.修改选择框消失时间

zhangmengjie %!s(int64=6) %!d(string=hai) anos
pai
achega
c2d1b49993
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 2 0
      pages/components/ChosePhoto.js
  2. 0 1
      pages/components/PersonalInfo.js

+ 2 - 0
pages/components/ChosePhoto.js

@@ -192,6 +192,7 @@ export default class ChosePhoto extends Component<Props> {
     );
   }
   photograph() {
+    this.setModalVisible(false);
     //拍照
     ImagePicker.launchCamera(options, response => {
       if (response.error) {
@@ -202,6 +203,7 @@ export default class ChosePhoto extends Component<Props> {
   }
 
   album_selection() {
+    this.setModalVisible(false);
     //打开系统相册
     ImagePicker.launchImageLibrary(options, response => {
       if (response.error) {

+ 0 - 1
pages/components/PersonalInfo.js

@@ -654,7 +654,6 @@ export default class PersonalInfo extends BasePage {
   }
 
   photoback(photo_uri) {
-    this.chosephoto.setModalVisible(false);
     if (photo_uri == undefined || photo_uri === "" || photo_uri == null) {
       return;
     }