From 441b33dabe3cc9079634783c7f48cc5314ad65ba Mon Sep 17 00:00:00 2001
From: zhaoxiaoqiang <287285524@qq.com>
Date: Fri, 05 Aug 2022 14:09:51 +0800
Subject: [PATCH] 命名
---
src/components/upload/uploadIdCard.vue | 19 ++++++++-----------
1 files changed, 8 insertions(+), 11 deletions(-)
diff --git a/src/components/upload/uploadIdCard.vue b/src/components/upload/uploadIdCard.vue
index e39aaf8..04d543a 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-08-05 14:09:34
* @Description:
-->
<template>
@@ -21,17 +21,17 @@
<!-- 真正的上传按钮-->
<div>
<input
- style="display:none;cursor:pointer;"
+ style="display: none;cursor:pointer"
type="file"
- id='androidInputFileImage'
+ id='inputFileImage'
ref="androidInputFileImage"
@change="handlePhotoChange($event,1)"
accept="image/jpg, image/jpeg, image/png"
/>
<input
- style=" display:none;cursor:pointer;"
+ style="display: none;cursor:pointer;"
type="file"
- id='androidInputFileCapture'
+ id='inputFileCapture'
ref="androidInputFileCapture"
@change="handlePhotoChange($event,2)"
accept="image/*"
@@ -313,13 +313,11 @@
},
// 选择拍照或者相册选项
handleMenuSelect(item, index) {
- console.log(this.$refs.androidInputFileCapture.click(),index);
+ console.log( this.$refs.androidInputFileCapture )
if (index === 0) {
- // this.$refs.androidInputFileCapture.dispatchEvent(new MouseEvent('click'))
- this.$refs.androidInputFileCapture.touch();
+ 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 +369,6 @@
line-height: 1;
color: #333;
font-weight: normal;
-
}
}
--
Gitblit v1.8.0