uniapp简单的身份证照片(正反面)上传

这是没有进行身份证照片验证的 如果要判断上传的图片是否为身份证 可以参考阿里云的
阿里云身份证验证超链接
最后放上了上传身份证图片的人像框和国徽框
引入的js文件在图片后面
wxml

<template>
	<view class="ID-mian">
		<h3>身份证正面(上传)</h3>
		<view class="card-zheng">
			<view class="zheng_left" v-show="isShow">
				<image src="../../static/zheng.png" mode="" @tap='touchphoto1'></image>
			</view>
			<view class="zheng_right" v-show="!isShow">
				<image :src="V_TPID"></image>
			</view>
		</view>
		<h3>身份证反面(上传)</h3>
		<view class="card-fan">
			<view class="fan_left" v-show="isShow1">
				<image src="../../static/fan.png" mode="" @tap='touchphoto2'></image>
			</view>
			<view class="fan_right" v-show="!isShow1">
				<image :src="V_TPID1"></image>
			</view>
		</view>
		<view style="display: flex;align-items: center;margin-top: 10px;">
			<button style="width: 100%;height:40px;
			             line-height: 40px; color:white;
			             background-color: #39B54A;
						 font-size: 14px;"
						 @click="back">
						 确认上传
			</button>
		</view>
	</view
  • 1
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 6
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值