easypay-app/pages/users/faceTest/index.vue

542 lines
10 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<!-- 完善信息最大盒子 -->
<view class="modify_revise">
<view class="rzpage" >
<view class="topbox">
<view class="text" style="font-weight: 500;font-size: 40rpx;">
为保障账户安全
</view>
<view class="text">
需采集你的人脸信息已核实身份
</view>
<image
src="https://api.yruibao.com/crmebimage/public/content/2024/03/12/545ad1f3f9e94c288167a4a5a78b125fyfrxub448y.png"
mode=""></image>
<view class="text">
请保持正脸
</view>
<view class="text">
根据指示完成人脸认证
</view>
</view>
<view class="uploadbox">
<view class="box_tip">
拍摄须知
</view>
<view class="upimg">
<view class="imgcont">
<image
src="https://api.yruibao.com/crmebimage/public/content/2024/03/12/3d2e864c64d943ac98f2a44b526511ed9zge43hq14.png"
alt="" />
<view class="botimg">
<image
src="https://api.yruibao.com/crmebimage/public/content/2024/03/12/183431357c3e4cd49c7ddc63cdc2e7d7y67xajv85d.png"
mode=""></image>
标准
</view>
</view>
<view class="imgcont">
<image
src="https://api.yruibao.com/crmebimage/public/content/2024/03/12/cea2e31224bf4940b058a4ccfedb64875yp2sw7541.png"
alt="" />
<view class="botimg">
<image
src="https://api.yruibao.com/crmebimage/public/content/2024/03/12/64ebffbb0e514be7887531285f8e4e31cc3qfx6hbq.png"
mode=""></image>
标准
</view>
</view>
<view class="imgcont">
<image
src="https://api.yruibao.com/crmebimage/public/content/2024/03/12/802ec15387fe445582eb63875c5eca90hwo9deupr4.png"
alt="" />
<view class="botimg">
<image
src="https://api.yruibao.com/crmebimage/public/content/2024/03/12/64ebffbb0e514be7887531285f8e4e31cc3qfx6hbq.png"
mode=""></image>
标准
</view>
</view>
<view class="imgcont">
<image
src="https://api.yruibao.com/crmebimage/public/content/2024/03/12/9f81e185c8364beeb40e84f59e69af071k8dsd7km8.png"
alt="" />
<view class="botimg">
<image
src="https://api.yruibao.com/crmebimage/public/content/2024/03/12/64ebffbb0e514be7887531285f8e4e31cc3qfx6hbq.png"
mode=""></image>
标准
</view>
</view>
</view>
<view class="btnbox">
<view class="btn" @click="readyTest()">
开始认证
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import {
getInformation,
getocr,
getfaceToken
} from '@/api/api.js'
// import config from '@/config/app.js'
// const baseUrl = config.domain
export default {
data() {
return {
facetoken:''
}
},
onLoad(option) {
this.getfacetoken()
},
methods: {
readyTest(){
console.log('dianjil');
let linkUrl='https://liveness.shumaidata.com/index?token=' +this.facetoken
window.location.href = linkUrl
// uni.navigateTo({
// url: 'https://liveness.shumaidata.com/index?token=' +this.facetoken // 要跳转的外部链接地址
// });
},
getfacetoken(){
getfaceToken().then(res => {
console.log(res);
if (res.code== '200') {
this.facetoken=res.data
let token =res.data
uni.setStorageSync('faceToken',token)
}
})
},
}
}
</script>
<style lang="less">
page {
background: #FFFFFF;
}
.lxrlist {
width: 100%;
padding: 20rpx 30rpx !important;
box-sizing: border-box;
color: gray;
view:hover {
background-color: aqua;
color: #000;
font-size: 14px;
font-weight: 700;
}
view {
height: 60rpx;
line-height: 60rpx;
text-align: center;
border-bottom: 1px solid #ccc;
}
}
.modify_revise {
width: 100%;
height: 100vh;
background: #FFFFFF;
// padding: 20rpx;
box-sizing: border-box;
font-size: 12px !important;
.rzpage {
.btnbox {
margin-top: 100rpx;
width: 100%;
display: flex;
justify-content: center;
.btn {
display: flex;
justify-content: center;
align-items: center;
width: 500rpx;
height: 82rpx;
background: #409EFF;
border-radius: 10rpx 10rpx 10rpx 10rpx;
font-weight: 500;
font-size: 32rpx;
color: #FFFFFF;
line-height: 44rpx;
}
}
.topbox {
padding-bottom: 20rpx;
display: flex;
flex-wrap: wrap;
justify-content: center;
width: 750rpx;
background: #FFFFFF;
box-shadow: 0rpx 6rpx 16rpx 0rpx rgba(0, 0, 0, 0.16);
border-radius: 0rpx 0rpx 0rpx 0rpx;
.text {
margin-top: 24rpx;
width: 100%;
text-align: center;
font-weight: 400;
font-size: 28rpx;
color: #333333;
line-height: 38rpx;
}
image {
width: 374rpx;
height: 376rpx;
}
}
.uploadbox {
padding: 0 46rpx;
margin-top: 66rpx;
width: 750rpx;
padding-bottom: 20rpx;
background: #FFFFFF;
// box-shadow: 0rpx 6rpx 16rpx 0rpx rgba(0, 0, 0, 0.08);
.box_tip {
width: 100%;
font-weight: 600;
font-size: 32rpx;
color: #333333;
}
border-radius: 0rpx 0rpx 0rpx 0rpx;
.upimg {
margin-top: 30rpx;
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
.imgcont {
width: 132rpx;
display: flex;
flex-wrap: wrap;
justify-content: center;
image {
width: 132rpx;
height: 78rpx;
}
.botimg {
margin-top: 28rpx;
display: flex;
flex-wrap: nowrap;
align-items: center;
font-weight: 400;
font-size: 20rpx;
color: #A19C9C;
line-height: 28rpx;
image {
margin-right: 8rpx;
width: 25.14rpx;
height: 25.25rpx;
}
}
}
}
}
}
.infopage {
.btnbox {
margin-top: 50rpx;
width: 100%;
display: flex;
justify-content: center;
.btn {
display: flex;
justify-content: center;
align-items: center;
width: 500rpx;
height: 82rpx;
background: #409EFF;
border-radius: 10rpx 10rpx 10rpx 10rpx;
font-weight: 500;
font-size: 32rpx;
color: #FFFFFF;
line-height: 44rpx;
}
}
.info_box {
margin-bottom: 24rpx;
display: flex;
flex-wrap: wrap;
width: 748rpx;
padding: 0 52rpx;
background: #FFFFFF;
box-shadow: 0rpx 6rpx 16rpx 0rpx rgba(0, 0, 0, 0.16);
.info_li {
width: 100%;
height: 80rpx;
display: flex;
align-items: center;
flex-wrap: nowrap;
border-bottom: 2rpx solid #F0F0F0;
.text {
margin-right: 56rpx;
width: 154rpx;
font-weight: 400;
font-size: 26rpx;
color: #212529;
line-height: 36rpx;
}
.tips {
font-weight: 400;
font-size: 22rpx;
color: #808080;
}
.input {}
}
}
}
.top {
padding: 20rpx;
}
.upidcard {
.btnbox {
margin-top: 50rpx;
width: 100%;
display: flex;
justify-content: center;
.btn {
display: flex;
justify-content: center;
align-items: center;
width: 500rpx;
height: 82rpx;
background: #409EFF;
border-radius: 10rpx 10rpx 10rpx 10rpx;
font-weight: 500;
font-size: 32rpx;
color: #FFFFFF;
line-height: 44rpx;
}
}
.tip {
display: flex;
padding-left: 40rpx;
align-items: center;
width: 750rpx;
height: 64rpx;
background: #FFEBEB;
border-radius: 0rpx 0rpx 0rpx 0rpx;
font-weight: 400;
font-size: 28rpx;
color: #EB8989;
image {
margin-right: 6rpx;
width: 40rpx;
height: 40rpx;
}
}
.uploadbox {
padding: 0 46rpx;
margin-top: 66rpx;
width: 750rpx;
padding-bottom: 20rpx;
background: #FFFFFF;
box-shadow: 0rpx 6rpx 16rpx 0rpx rgba(0, 0, 0, 0.08);
border-radius: 0rpx 0rpx 0rpx 0rpx;
.showimg {
margin-top: 40rpx;
width: 100%;
display: flex;
justify-content: center;
image {
width: 572rpx;
height: 314rpx;
}
}
.uptip {
display: flex;
flex-wrap: wrap;
.uptipli {
margin-top: 24rpx;
width: 100%;
font-weight: 400;
font-size: 24rpx;
color: #A19C9C;
line-height: 32rpx;
}
}
.upself {
margin-bottom: 60rpx;
padding: 36rpx 44rpx;
width: 678rpx;
height: 478rpx;
background: #FFFFFF;
box-shadow: 0rpx 6rpx 16rpx 0rpx rgba(0, 0, 0, 0.16);
border-radius: 30rpx 30rpx 30rpx 30rpx;
.box_tip {
width: 100%;
font-weight: 600;
font-size: 32rpx;
color: #333333;
}
image {
margin-top: 24rpx;
width: 578rpx;
height: 330rpx;
border-radius: 14rpx;
}
}
.upimg {
margin-top: 30rpx;
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
.imgcont {
width: 132rpx;
display: flex;
flex-wrap: wrap;
justify-content: center;
font-weight: 400;
font-size: 20rpx;
color: #A19C9C;
line-height: 28rpx;
image {
width: 132rpx;
height: 91.25rpx;
}
}
}
.iptbox {
display: flex;
flex-wrap: wrap;
.iptli {
width: 100%;
margin-top: 34rpx;
display: flex;
flex-wrap: nowrap;
.left {
margin-right: 78rpx;
width: 112rpx;
font-weight: 400;
font-size: 28rpx;
color: #A19C9C;
}
.right {
font-weight: 400;
font-size: 28rpx;
color: #C8C7C7;
}
.act1 {
color: #212529;
}
}
}
.box_tip {
font-weight: 600;
font-size: 32rpx;
color: #333333;
}
.img_boxs {
margin-top: 38rpx;
margin-left: 24rpx;
display: flex;
flex-wrap: nowrap;
align-items: center;
.img_box {
font-weight: 400;
font-size: 24rpx;
color: #C8C7C7;
line-height: 32rpx;
margin-right: 60rpx;
width: 278rpx;
display: flex;
flex-wrap: wrap;
justify-content: center;
image {
width: 278rpx;
height: 188rpx;
}
}
}
}
}
}
</style>