From 4acbc1b6d71253e2d3290c4d77b72e0b13851fd3 Mon Sep 17 00:00:00 2001
From: zhaoxiaoqiang <287285524@qq.com>
Date: Thu, 04 Aug 2022 15:58:07 +0800
Subject: [PATCH] 手机事件
---
src/components/upload/uploadIdCard.vue | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/components/upload/uploadIdCard.vue b/src/components/upload/uploadIdCard.vue
index 0fcd79f..c672de9 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 15:30:00
+ * @LastEditTime: 2022-08-04 15:56:41
* @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,11 +313,11 @@
},
// 选择拍照或者相册选项
handleMenuSelect(item, index) {
- console.log(this.$refs,index)
+ console.log(this.$refs.androidInputFileCapture.click(),index);
if (index === 0) {
- this.$refs.androidInputFileCapture.onclick();
+ this.$refs.androidInputFileCapture.tap();
} else {
- this.$refs.androidInputFileImage.onclick();
+ this.$refs.androidInputFileImage.tap();
}
this.selectModel = false;
},
@@ -369,6 +369,7 @@
line-height: 1;
color: #333;
font-weight: normal;
+
}
}
--
Gitblit v1.8.0