task#,身份证正面

This commit is contained in:
2024-09-14 14:18:17 +08:00
parent fd1ad6db3c
commit 5dc9bfb840

View File

@ -20,6 +20,10 @@
v-model="identityCardFrontList"
:before-read="beforeRead"
:after-read="identityCardFrontHandler"
:max-count="1"
capture="camera"
:preview-size="54"
accept="image/png, image/jpeg"
/>
</div>
<div class="lineBot"></div>
@ -227,6 +231,7 @@ export default {
},
// 返回布尔值
beforeRead(file) {
this.$toast('beforeReadbeforeReadbeforeRead');
console.log("beforeRead",file)
if (file.type !== 'image/jpeg') {
this.$toast('请上传 jpg 格式图片');