1、父页面引用组件
<view class="topic_box">
<view>请拍摄本人真实有效的身份证原件和人脸照片</view>
<view>拍摄时请保证身份证边缘完整,内容清晰可见</view>
</view>
<view class="upload_box" data-type="idCardPortrait" bind:tap="onChooseImg">
<image class="upload_img" mode="aspectFit" src="{
{info.idcardPortraitPath ? info.idcardPortraitUrl : '../../imgs/upload_icon/1.png'}}"></image>
</view>
<view wx:if="{
{info.idcardPortraitPath}}" class="upload_desc-box">
<view class="upload_desc">
<view class="desc_ft">姓名</view>
<view class="desc_bd">{
{info.name}}</view>
</view>
<view class="upload_desc">
<view class="desc_ft">身份证号</view>
<view class="desc_bd">{
{info.id}}</view>
</view>
</view>
<view class="upload_box" data-type="idCardEmblem" bind:tap="onChooseImg">
<image class="upload_img" mode="aspectFit" src="{
{info.idcardEmblemPath ? info.idcardEmblemUrl : '../../imgs/upload_icon/3.png'}}"></image>
</view>
<view wx:if="{
{info.idcardEmblemPath}}" class="upload_desc-box">
<view class="upload_desc">
<view class="desc_ft">签发机关</view>
<view class="desc_bd">{
{info.authority}}</view>
</view>
<view class="upload_desc">
<view class="desc_ft">有效期</view>
<view class="desc_bd">{
{validDate}}</view>
</view>
</view>
<!--<view class="upload_box" data-type="portrait" bind:tap="onChooseImg">
<image class="upload_img" mode="aspectFit" src="{
{info.portra
标签:info,..,微信,upload,idcardPortraitPath,身份证,上传,desc
From: https://blog.csdn.net/xfzhy1/article/details/145215549