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.
|
|
<template> <view class="pageBgImg"> <topNavbar title="实名认证"></topNavbar> </view> </template>
<script> import { GetDetectInfoEnhanced } from '@/config/api.js' import { website } from '@/config/site.config.js' export default { onShow() { this.GetDetectInfoEnhancedFn() }, onPullDownRefresh() { this.GetDetectInfoEnhancedFn() }, methods: { async GetDetectInfoEnhancedFn() { alert(this.$store.state.school.BizToken) uni.showLoading({ title: '正在检测中...' }) let redirectUrl = website + '/pages/indexEntry/enroll/registInfo/registInfo' if(this.$store.state.user.NonPlatformStudent) { redirectUrl = website + '/pages/indexEntry/NonPlatformStudent/NonPlatformStudent' } let obj = { ruleId: 1, redirectUrl, bizToken: this.$store.state.school.BizToken, userId: this.userId } const {data: res} = await GetDetectInfoEnhanced(obj) let obj2 = JSON.parse(res) await this.$store.dispatch('getUserInfo') uni.showLoading() if(obj2.Text.ErrMsg=='成功') { this.$goPage('/pages/indexEntry/enroll/registInfo/registInfo') } // console.log(obj2)
alert('请求结果来了') alert(obj2.Text.ErrMsg) // alert(obj2.Text.name)
// uni.setStorageSync(obj2)
}, } } </script>
<style> </style>
|