本文给大家带来的是微信小程序提交身份证信息验证页面设计制作开发教程,制作好以后效果图如下:
一、wxml页面代码如下:
<!--pages/mine/Authentication.wxml-->
<view class="container">
<view class="title-hd font-color-999">
<text>为保障厂家及经纪人自身的合法权益</text>
<text>经济人须上传身份证照片进行实名认证</text>
</view>
<view class="idCard-box">
<view class="cardBox-hd font-color-666">身份证照片(照片)</view>
<view class="cardBox-bd">
<image class="img1" src="/assets/images/Click_shooting.png"></image>
<image class="img2" src="/assets/images/IDcard_front.png"></image>
</view>
</view>
<view class="idCard-box">
<view class="cardBox-hd font-color-666">身份证照片(背面)</view>
<view class="cardBox-bd">
<image class="img1" src="/assets/images/Click_shooting.png"></image>
<image class="img2" src="/assets/images/IDcard_front.png"></image>
</view>
</view>
<view class="ft-title font-color-999">拍摄时注意光线和焦距,务必保持照片清晰</view>
<view class="butbox" style="margin:40rpx auto 30rpx; ">
<navigator class="but bg-color-c24e4e font-color-white" url="submitVerification">提交验证</navigator>
</view>
</view>
|
二、wxss样式文件代码如下:
/* pages/mine/Authentication.wxss */
.title-hd{
display: flex;
padding:30rpx;
height: 84rpx;
flex-direction: column;
justify-content: space-between;
line-height: 1
}
.idCard-box{
display: flex;
padding: 40rpx 30rpx;
flex-direction: column;
background-color: #fff;
margin-bottom: 20rpx;
}
.cardBox-bd {
display: flex;
flex-direction: row;
align-items: center;
padding-top: 20rpx;
}
.cardBox-bd .img1{
width: 280rpx;
height: 170rpx;
margin: 0rpx 70rpx;
}
.cardBox-bd .img2{
width: 200rpx;
height:130rpx;
}
.ft-title{
padding:20rpx 30rpx 0;
}
|
三、js页面代码如下:
// pages/mine/Authentication.js
Page({
data:{},
onLoad:function(options){
// 页面初始化 options为页面跳转所带来的参数
},
onReady:function(){
// 页面渲染完成
},
onShow:function(){
// 页面显示
},
onHide:function(){
// 页面隐藏
},
onUnload:function(){
// 页面关闭
}
})
|