洛阳学员端
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.
 
 
 
 
 
 

84 lines
1.9 KiB

<template>
<view class="pageBgImg">
<!-- #ifdef H5 -->
<topNavbar title="实名认证"></topNavbar>
<!-- #endif -->
</view>
</template>
<script>
import {
GetDetectInfoEnhanced,
getbiztoken
} from '@/config/api.js'
import {
website
} from '@/config/site.config.js'
export default {
data() {
return {
userId: ''
}
},
onLoad(options) {
// const routeInfo = this.$route;
// console.log('当前页面路由信息:', routeInfo);
// const fullPath = '/' + routeInfo.path + '?' + Object.keys(routeInfo.query).map(key => key + '=' + routeInfo
// .query[key]).join('&');
// console.log('当前页面全路径:', fullPath);
if (options.userId) {
this.userId = options.userId
this.GetDetectInfoEnhancedFn()
}
},
onPullDownRefresh() {
this.GetDetectInfoEnhancedFn()
},
methods: {
async GetDetectInfoEnhancedFn() {
const data = await getbiztoken({
userId: this.userId
})
// alert(this.$store.state.school.BizToken)
uni.showLoading({
title: '正在检测中...'
})
let redirectUrl = ''
// // #ifdef H5
// let redirectUrl = website + '/pages/indexEntry/enroll/registInfo/registInfo'
// if (this.$store.state.user.NonPlatformStudent) {
// redirectUrl = website + '/pages/indexEntry/NonPlatformStudent/NonPlatformStudent'
// }
// // #endif
let obj = {
ruleId: 2,
redirectUrl: '',
bizToken: data.data,
userId: this.userId
}
const res = await GetDetectInfoEnhanced(obj)
// // #ifdef H5
// let obj2 = JSON.parse(res.data)
// console.log(obj2)
// await this.$store.dispatch('getUserInfo')
// if (obj2.Text.ErrMsg == '成功') {
// this.$goPage('/pages/indexEntry/enroll/registInfo/registInfo')
// }
// // #endif
// #ifdef MP-WEIXIN
window.close()
// #endif
},
}
}
</script>
<style>
</style>