<template>
	<view class="pages">

	</view>
</template>

<script>
	export default {
		data() {
			return {
				https:''
			}
		},
		onLoad(option) {
           this.getshuaxin()
		},
		methods: {
           getshuaxin(){
           	this.$u.get('/app/realName/refreshRealName').then(res => {
           		if(res.code == 200){
           			if(res.data.pass == true){
           				let realNameType = res.data.realNameType
           				let infoId = res.data.infoId
           				uni.showModal({
           					title: '温馨提示',
           					content: `人脸认证成功`,
           					showCancel: false,
           					success: function(res) {
           						uni.switchTab({
           							url:'/pages/my'
           						})
           					}
           				})
           			}else{
           				uni.showModal({
           					title: '温馨提示',
           					content: `人脸认证失败`,
           					showCancel: false,
           					success: function(res) {
           						uni.navigateBack()
           					}
           				})
           			}
           		}else{
           			uni.showModal({
           				title: '温馨提示',
           				content: `人脸认证失败`,
           				showCancel: false,
           				success: function(res) {
           					uni.navigateBack()
           				}
           			})
           		}
           	})
           }
		}
	}
</script>

<style lang="scss" scoped>
	
</style>