zhaoxiaoqiang
2022-08-04 6eaed87fe7e53478bbc03323a90496afeeddc910
src/components/upload/uploadIdCard.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2019-08-30 18:04:49
 * @LastEditors: zxq
 * @LastEditTime: 2022-08-04 15:25:02
 * @LastEditTime: 2022-08-04 15:39:32
 * @Description:
 -->
<template>
@@ -21,7 +21,7 @@
    <!-- 真正的上传按钮-->
    <div>
      <input
        style="display: none;cursor:pointer"
        style=" visibility: hidden;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=" visibility: hidden;cursor:pointer;"
        type="file"
        id='androidInputFileCapture'
        ref="androidInputFileCapture"
@@ -315,9 +315,9 @@
    handleMenuSelect(item, index) {
      console.log(this.$refs,index)
      if (index === 0) {
        this.$refs.androidInputFileCapture.click();
        this.$refs.androidInputFileCapture.$el.click();
      } else {
        this.$refs.androidInputFileImage.click();
        this.$refs.androidInputFileImage.$el.click();
      }
      this.selectModel = false;
    },
@@ -369,6 +369,7 @@
      line-height: 1;
      color: #333;
      font-weight: normal;
    }
  }