success.vue 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <view class="sucbox">
  3. <view class="subtop">
  4. <image :src="sucimg"></image>
  5. <view class="tit">您的认证已成功</view>
  6. <!-- <view class="tit">请您耐心等待审核</view> -->
  7. <!-- <view class="txt" @click="getNodata">查看业务申报详情</view> -->
  8. </view>
  9. <view class="back" @click="getHome">返回首页</view>
  10. </view>
  11. </template>
  12. <script>
  13. import config from '@/config'
  14. const baseUrl = config.baseUrl
  15. import { getToken } from '@/utils/auth'
  16. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  17. import {getOcrH5Fn} from "@/api/mine/card.js"
  18. export default{
  19. components:{},
  20. data(){
  21. return{
  22. sucimg:require('@/work/static/images/success.png'),
  23. }
  24. },
  25. onLoad(e) {
  26. var that=this;
  27. // #ifndef APP-PLUS
  28. if(e.response){
  29. var face='Y'
  30. var data=JSON.parse(decodeURIComponent(e.response))
  31. console.log(data)
  32. if(data.code==1000){
  33. that.$store.dispatch('checkInitFace', face).then(() => {
  34. })
  35. if(data.extInfo){
  36. var certifyId=data.extInfo.certifyId;
  37. console.log(certifyId)
  38. if(getToken()){
  39. var params={
  40. certifyId:certifyId
  41. }
  42. getOcrH5Fn(params).then(resa=>{
  43. if(resa.code==200){
  44. }
  45. })
  46. }else{
  47. uni.setStorageSync('certifyId',certifyId);
  48. that.$tab.reLaunch('/pages/login')
  49. }
  50. }
  51. }
  52. }
  53. // #endif
  54. },
  55. methods:{
  56. checkPermi, checkRole,
  57. getHome(){
  58. this.$tab.reLaunch('/pages/index/index')
  59. },
  60. getNodata(){
  61. this.$tab.navigateTo('/work/pages/nodata')
  62. }
  63. }
  64. }
  65. </script>
  66. <style>
  67. page{background:#ffffff;}
  68. </style>
  69. <style lang="scss" scoped>
  70. .sucbox{min-height: 100vh;display: flex;flex-direction: column;padding: 100rpx 0 200rpx;align-items: center;
  71. .subtop{
  72. flex: 1;display: flex;flex-direction: column;align-items: center;
  73. image{width: 550rpx;height: 450rpx;margin: 0 auto 40rpx;}
  74. .tit{font-weight: bold;font-size: 30rpx;color: #222327;padding-top: 6rpx;}
  75. .txt{font-weight: bold;font-size: 30rpx;color: #00A9F0;margin-top: 60rpx;}
  76. }
  77. .back{font-weight: bold;font-size: 30rpx;flex: 0 0 auto;color: #666666;text-align: center;}
  78. }
  79. </style>