更新记录
1.0.0(2024-06-12)
下载此版本
身份证正反面上传
平台兼容性
uni-app
| Vue2 |
Vue3 |
Chrome |
Safari |
app-vue |
app-nvue |
Android |
iOS |
鸿蒙 |
| × |
√ |
√ |
√ |
- |
- |
- |
- |
- |
| 微信小程序 |
支付宝小程序 |
抖音小程序 |
百度小程序 |
快手小程序 |
京东小程序 |
鸿蒙元服务 |
QQ小程序 |
飞书小程序 |
快应用-华为 |
快应用-联盟 |
| √ |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
其他
uploadLicense
证件正反面上传组件(身份证,驾驶证)
基本用法
<template>
<view class="content">
<upload-license v-model:frontImg="user.frontImg" v-model:backImg="user.backImg"></upload-license>
</view>
</template>
<script setup lang="ts">
import { ref } from "vue";
import uploadLicense from "@/components/zh-uploadLicense/zh-uploadLicense.vue"
const user = ref({
frontImg: "",
backImg: ""
})
</script>
属性
| Name |
Description |
Default |
| frontImg |
正面图片 |
| backImg |
反面图片 |
| frontDesc |
正面描述 |
身份证人像面 |
| backDesc |
正面图片 |
身份证国徽面 |
| defaultFrontSrc |
正面图片 |
./images/idcard-front.png |
| defaultBackSrc |
正面图片 |
./images/idcard-back.png |