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

46 lines
1.1 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. export default {
  9. onShow() {
  10. this.GetDetectInfoEnhancedFn()
  11. },
  12. onPullDownRefresh() {
  13. this.GetDetectInfoEnhancedFn()
  14. },
  15. methods: {
  16. async GetDetectInfoEnhancedFn() {
  17. alert(this.$store.state.school.BizToken)
  18. uni.showLoading({
  19. title: '正在检测中...'
  20. })
  21. let obj = {
  22. ruleId: 1,
  23. redirectUrl: 'http://192.168.1.44:8001/h5/#/pages/indexEntry/enroll/registInfo/registInfo',
  24. bizToken: this.$store.state.school.BizToken,
  25. userId: this.userId
  26. }
  27. const {data: res} = await GetDetectInfoEnhanced(obj)
  28. let obj2 = JSON.parse(res)
  29. await this.$store.dispatch('getUserInfo')
  30. uni.showLoading()
  31. if(obj2.Text.ErrMsg=='成功') {
  32. this.$goPage('/pages/indexEntry/enroll/registInfo/registInfo')
  33. }
  34. // console.log(obj2)
  35. alert('请求结果来了')
  36. alert(obj2.Text.ErrMsg)
  37. // alert(obj2.Text.name)
  38. // uni.setStorageSync(obj2)
  39. },
  40. }
  41. }
  42. </script>
  43. <style>
  44. </style>