学员端小程序
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.

51 lines
1.3 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title="实名认证"></topNavbar>
  4. </view>
  5. </template>
  6. <script>
  7. import { GetDetectInfoEnhanced } from '@/config/api.js'
  8. import { website } from '@/config/site.config.js'
  9. export default {
  10. onShow() {
  11. this.GetDetectInfoEnhancedFn()
  12. },
  13. onPullDownRefresh() {
  14. this.GetDetectInfoEnhancedFn()
  15. },
  16. methods: {
  17. async GetDetectInfoEnhancedFn() {
  18. alert(this.$store.state.school.BizToken)
  19. uni.showLoading({
  20. title: '正在检测中...'
  21. })
  22. let redirectUrl = website + '/pages/indexEntry/enroll/registInfo/registInfo'
  23. if(this.$store.state.user.NonPlatformStudent) {
  24. redirectUrl = website + '/pages/indexEntry/NonPlatformStudent/NonPlatformStudent'
  25. }
  26. let obj = {
  27. ruleId: 1,
  28. redirectUrl,
  29. bizToken: this.$store.state.school.BizToken,
  30. userId: this.userId
  31. }
  32. const {data: res} = await GetDetectInfoEnhanced(obj)
  33. let obj2 = JSON.parse(res)
  34. await this.$store.dispatch('getUserInfo')
  35. uni.showLoading()
  36. if(obj2.Text.ErrMsg=='成功') {
  37. this.$goPage('/pages/indexEntry/enroll/registInfo/registInfo')
  38. }
  39. // console.log(obj2)
  40. alert('请求结果来了')
  41. alert(obj2.Text.ErrMsg)
  42. // alert(obj2.Text.name)
  43. // uni.setStorageSync(obj2)
  44. },
  45. }
  46. }
  47. </script>
  48. <style>
  49. </style>