23
zhaoxiaoqiang
2022-08-05 d9beae3929be0f8043850e5e3d9b0a21e66dd178
src/components/upload/uploadIdCard.vue
@@ -24,7 +24,7 @@
        <input
          style="cursor:pointer"
          type="file"
          id="androidInputFileImage"
          ref="androidInputFileImage"
          @change="handlePhotoChange($event, 1)"
          accept="image/jpg, image/jpeg, image/png"
@@ -34,7 +34,7 @@
        <input
          style="cursor:pointer"
          type="file"
          id="androidInputFileCapture"
          ref="androidInputFileCapture"
          @change="handlePhotoChange($event, 2)"
          accept="image/*"
@@ -325,10 +325,16 @@
        // this.$refs.androidInputFileCapture.dispatchEvent(
        //   new MouseEvent("click")
        // );
        this.$refs.androidInputFileCapture._proto_.click();
         setTimeout(() => {
          this.$refs.androidInputFileCapture.click();
         },0)
      } else {
        // this.$refs.androidInputFileImage.dispatchEvent(new MouseEvent("click"));
        this.$refs.androidInputFileImage.click();
        setTimeout(() => {
          this.$refs.androidInputFileImage.click();
         },0)
      }
      this.selectModel = false;
    },