111
zhaoxiaoqiang
2022-08-04 cfefc555652045d779db09b3c42e5d3af1fca02a
src/components/upload/uploadIdCard.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2019-08-30 18:04:49
 * @LastEditors: zxq
 * @LastEditTime: 2022-08-04 16:03:30
 * @LastEditTime: 2022-08-04 16:08:29
 * @Description:
 -->
<template>
@@ -313,16 +313,13 @@
    },
    // 选择拍照或者相册选项
    handleMenuSelect(item, index) {
      console.log(this.$refs.androidInputFileCapture,index);
      console.log(this.$refs.androidInputFileCapture.click(),index);
      if (index === 0) {
        this.$nextTick(() => {
          this.$refs.androidInputFileCapture.click();
        })
        // this.$refs.androidInputFileCapture.dispatchEvent(new MouseEvent('click'))
        this.$refs.androidInputFileCapture.touch();
      } else {
         this.$nextTick(() => {
            this.$refs.androidInputFileImage.click();
         })
        // this.$refs.androidInputFileImage.dispatchEvent(new MouseEvent('click'))
        this.$refs.androidInputFileImage.touch();
      }
      this.selectModel = false;
    },