From 401bd1dfaecf03ff4b7daf59be3f75935851d22a Mon Sep 17 00:00:00 2001 From: zhaoxiaoqiang <l287285524@qq.com> Date: Fri, 05 Aug 2022 00:20:08 +0800 Subject: [PATCH] 222 --- src/components/upload/uploadIdCard.vue | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/upload/uploadIdCard.vue b/src/components/upload/uploadIdCard.vue index 6c04e70..440279e 100644 --- a/src/components/upload/uploadIdCard.vue +++ b/src/components/upload/uploadIdCard.vue @@ -22,7 +22,7 @@ <div> <!-- <label class="upload" > --> <input - style=" cursor: pointer" + style="cursor:pointer" type="file" id="androidInputFileImage" ref="androidInputFileImage" @@ -32,7 +32,7 @@ <!-- </label> --> <!-- <label class="upload" > --> <input - style=" cursor: pointer" + style="cursor:pointer" type="file" id="androidInputFileCapture" ref="androidInputFileCapture" @@ -317,7 +317,10 @@ }, // 选择拍照或者相册选项 handleMenuSelect(item, index) { - // console.log(this.$refs.androidInputFileCapture.click(), index); + console.log(this.$refs); + console.log(this.$refs.androidInputFileCapture); + console.log(this.$refs.androidInputFileImage); + document.getElementById('androidInputFileCapture').click(); if (index === 0) { // this.$refs.androidInputFileCapture.dispatchEvent( // new MouseEvent("click") -- Gitblit v1.8.0