<template>
	<view class="content">
		<view class="point">
			<image class="point-img" src="https://douhuo-storage.oss-cn-beijing.aliyuncs.com/images/2023/06/06/629f75e1f7d6b69478ace3b954e262c7.jpg" mode="widthFix"></image>
			<view class="point-text">
				<view class="point-name">
					{{title}}
				</view>
				<view class="point-tips">
					<text>{{content}}</text>
				</view>
				<!-- <view class="point-btn">
					<view class="btn" @click="onBack">
						返回
					</view>
				</view> -->
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '未知',
				content: '-'
			};
		},
		onShow() {
			if(this.$Route.query.sign_type === 'personal') {
				this.title = "认证成功"
				this.content = "实名认证成功"
			}
			if(this.$Route.query.sign_type === 'order') {
				this.title = "签约成功"
				this.content = "恭喜您已完成签约"
			}
		},
		methods: {
			onBack(){
				this.$webUni.postMessage({
					data: {
						type: 'back',
						val : this.$Route.query.sign_type
					}
				})
				
				// try{
					
					// window.location = "doufire://"
					// if(uni.getSystemInfoSync().platform == 'android'){
					// 	let ifr = document.createElement('iframe');
					// 	ifr.src = "doufire://";
					// 	ifr.style.display = 'none';
					// 	document.body.appendChild(ifr);
					// }else{
						
					// }
				// }catch(e){
				// 	uni.showToast({
				// 		title: e,
				// 		icon : 'none'
				// 	})
				// }
			}
		}
	}
</script>

<style lang="scss">
.point {
		text-align: center;
		padding: 40% 0;
		.point-img {
			width: 50%;
			margin: 0 auto 10rpx;
		}
		.point-text {
			.point-name {
				font-size: $title-size + 14;
			}
			.point-tips{
				margin: $margin + 20 0 $margin*3;
				line-height: 52rpx;
				text {
					display: block;
					color: #999999;
				}
			}
		}
		.point-btn {
			text-align: center;
			.btn {
				background-color: #446EFE;
				display: inline-block;
				color: #ffffff;
				border-radius: $radius-m;
				padding: 0 $padding;
				line-height: 90rpx;
				width: 70%;
			}
		}
	}
</style>
