洛阳学员端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
1.9 KiB

  1. <template>
  2. <view class="pageBgImg">
  3. <!-- #ifdef H5 -->
  4. <topNavbar title="实名认证"></topNavbar>
  5. <!-- #endif -->
  6. </view>
  7. </template>
  8. <script>
  9. import {
  10. GetDetectInfoEnhanced,
  11. getbiztoken
  12. } from '@/config/api.js'
  13. import {
  14. website
  15. } from '@/config/site.config.js'
  16. export default {
  17. data() {
  18. return {
  19. userId: ''
  20. }
  21. },
  22. onLoad(options) {
  23. // const routeInfo = this.$route;
  24. // console.log('当前页面路由信息:', routeInfo);
  25. // const fullPath = '/' + routeInfo.path + '?' + Object.keys(routeInfo.query).map(key => key + '=' + routeInfo
  26. // .query[key]).join('&');
  27. // console.log('当前页面全路径:', fullPath);
  28. if (options.userId) {
  29. this.userId = options.userId
  30. this.GetDetectInfoEnhancedFn()
  31. }
  32. },
  33. onPullDownRefresh() {
  34. this.GetDetectInfoEnhancedFn()
  35. },
  36. methods: {
  37. async GetDetectInfoEnhancedFn() {
  38. const data = await getbiztoken({
  39. userId: this.userId
  40. })
  41. // alert(this.$store.state.school.BizToken)
  42. uni.showLoading({
  43. title: '正在检测中...'
  44. })
  45. let redirectUrl = ''
  46. // // #ifdef H5
  47. // let redirectUrl = website + '/pages/indexEntry/enroll/registInfo/registInfo'
  48. // if (this.$store.state.user.NonPlatformStudent) {
  49. // redirectUrl = website + '/pages/indexEntry/NonPlatformStudent/NonPlatformStudent'
  50. // }
  51. // // #endif
  52. let obj = {
  53. ruleId: 2,
  54. redirectUrl: '',
  55. bizToken: data.data,
  56. userId: this.userId
  57. }
  58. const res = await GetDetectInfoEnhanced(obj)
  59. // // #ifdef H5
  60. // let obj2 = JSON.parse(res.data)
  61. // console.log(obj2)
  62. // await this.$store.dispatch('getUserInfo')
  63. // if (obj2.Text.ErrMsg == '成功') {
  64. // this.$goPage('/pages/indexEntry/enroll/registInfo/registInfo')
  65. // }
  66. // // #endif
  67. // #ifdef MP-WEIXIN
  68. window.close()
  69. // #endif
  70. },
  71. }
  72. }
  73. </script>
  74. <style>
  75. </style>