12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <template>
- <view class="sucbox">
- <view class="subtop">
- <image :src="sucimg"></image>
- <view class="tit">您的认证已成功</view>
- <!-- <view class="tit">请您耐心等待审核</view> -->
- <!-- <view class="txt" @click="getNodata">查看业务申报详情</view> -->
- </view>
-
- <view class="back" @click="getHome">返回首页</view>
- </view>
- </template>
- <script>
- import config from '@/config'
- const baseUrl = config.baseUrl
- import { getToken } from '@/utils/auth'
- import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
- import {getOcrH5Fn} from "@/api/mine/card.js"
- export default{
- components:{},
- data(){
- return{
- sucimg:require('@/work/static/images/success.png'),
- }
- },
- onLoad(e) {
- var that=this;
- // #ifndef APP-PLUS
- if(e.response){
- var face='Y'
- var data=JSON.parse(decodeURIComponent(e.response))
- console.log(data)
- if(data.code==1000){
- that.$store.dispatch('checkInitFace', face).then(() => {
- })
- if(data.extInfo){
- var certifyId=data.extInfo.certifyId;
- console.log(certifyId)
- if(getToken()){
- var params={
- certifyId:certifyId
- }
- getOcrH5Fn(params).then(resa=>{
- if(resa.code==200){
-
- }
- })
- }else{
- uni.setStorageSync('certifyId',certifyId);
- that.$tab.reLaunch('/pages/login')
- }
- }
- }
- }
- // #endif
- },
- methods:{
- checkPermi, checkRole,
- getHome(){
- this.$tab.reLaunch('/pages/index/index')
- },
- getNodata(){
- this.$tab.navigateTo('/work/pages/nodata')
- }
- }
- }
- </script>
- <style>
- page{background:#ffffff;}
- </style>
- <style lang="scss" scoped>
- .sucbox{min-height: 100vh;display: flex;flex-direction: column;padding: 100rpx 0 200rpx;align-items: center;
- .subtop{
- flex: 1;display: flex;flex-direction: column;align-items: center;
- image{width: 550rpx;height: 450rpx;margin: 0 auto 40rpx;}
- .tit{font-weight: bold;font-size: 30rpx;color: #222327;padding-top: 6rpx;}
- .txt{font-weight: bold;font-size: 30rpx;color: #00A9F0;margin-top: 60rpx;}
- }
- .back{font-weight: bold;font-size: 30rpx;flex: 0 0 auto;color: #666666;text-align: center;}
- }
- </style>
|