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.
47 lines
1.1 KiB
47 lines
1.1 KiB
<template>
|
|
<view class="pageBgImg">
|
|
<topNavbar title="实名认证"></topNavbar>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import { GetDetectInfoEnhanced } from '@/config/api.js'
|
|
export default {
|
|
onShow() {
|
|
this.GetDetectInfoEnhancedFn()
|
|
},
|
|
onPullDownRefresh() {
|
|
this.GetDetectInfoEnhancedFn()
|
|
},
|
|
methods: {
|
|
async GetDetectInfoEnhancedFn() {
|
|
alert(this.$store.state.school.BizToken)
|
|
uni.showLoading({
|
|
title: '正在检测中...'
|
|
})
|
|
let obj = {
|
|
ruleId: 1,
|
|
redirectUrl: 'http://192.168.1.44:8002/h5/#/pages/indexEntry/enroll/registInfo/registInfo',
|
|
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>
|