From 1aabe35193870f66acae5013fb10003a5bb16b96 Mon Sep 17 00:00:00 2001
From: zhaoxiaoqiang <l287285524@qq.com>
Date: Fri, 05 Aug 2022 01:12:50 +0800
Subject: [PATCH] 还原

---
 src/components/upload/uploadIdCard.vue |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/src/components/upload/uploadIdCard.vue b/src/components/upload/uploadIdCard.vue
index 7c3ba37..4ecaabc 100644
--- a/src/components/upload/uploadIdCard.vue
+++ b/src/components/upload/uploadIdCard.vue
@@ -1,7 +1,7 @@
 <!--
  * @Date: 2019-08-30 18:04:49
  * @LastEditors: zxq
- * @LastEditTime: 2022-08-04 16:08:29
+ * @LastEditTime: 2022-06-10 14:38:34
  * @Description:
  -->
 <template>
@@ -21,7 +21,7 @@
     <!-- 真正的上传按钮-->
     <div>
       <input
-        style="display:none;cursor:pointer;"
+        style="display: none;cursor:pointer"
         type="file"
         id='androidInputFileImage'
         ref="androidInputFileImage"
@@ -29,7 +29,7 @@
         accept="image/jpg, image/jpeg, image/png"
       />
       <input
-        style=" display:none;cursor:pointer;"
+        style="display: none;cursor:pointer;"
         type="file"
         id='androidInputFileCapture'
         ref="androidInputFileCapture"
@@ -313,13 +313,10 @@
     },
     // 选择拍照或者相册选项
     handleMenuSelect(item, index) {
-      console.log(this.$refs.androidInputFileCapture.click(),index);
       if (index === 0) {
-        // this.$refs.androidInputFileCapture.dispatchEvent(new MouseEvent('click'))
-        this.$refs.androidInputFileCapture.ontouch();
+        this.$refs.androidInputFileCapture.click();
       } else {
-        // this.$refs.androidInputFileImage.dispatchEvent(new MouseEvent('click'))
-        this.$refs.androidInputFileImage.touch();
+        this.$refs.androidInputFileImage.click();
       }
       this.selectModel = false;
     },
@@ -371,7 +368,6 @@
       line-height: 1;
       color: #333;
       font-weight: normal;
-     
     }
   }
 

--
Gitblit v1.8.0