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

39 lines
924 B

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. // alert(1)
  11. // alert(this.$store.state.school.BizToken)
  12. this.GetDetectInfoEnhancedFn()
  13. },
  14. onPullDownRefresh() {
  15. this.GetDetectInfoEnhancedFn()
  16. },
  17. methods: {
  18. async GetDetectInfoEnhancedFn() {
  19. // let BizToken = uni.getStorageSync('BizToken')
  20. // alert(BizToken)
  21. let obj = {
  22. ruleId: 1,
  23. redirectUrl: 'http://192.168.1.44:8002/h5/#/pages/indexEntry/enroll/registInfo/registInfo',
  24. bizToken: this.$store.state.school.BizToken
  25. }
  26. const {data: res} = await GetDetectInfoEnhanced(obj)
  27. let obj2 = JSON.parse(res)
  28. console.log(obj2)
  29. alert('请求结果来了')
  30. alert(obj2.Text.name)
  31. // uni.setStorageSync(obj2)
  32. },
  33. }
  34. }
  35. </script>
  36. <style>
  37. </style>