checkWait.vue 1.5 KB
<template>
	<view>
		<view class="waitImgWrap">
			<image src="../../static/image/my/noTask.png" mode=""></image>
		</view>
		<view class="nowStatus">
			{{userInfo.hometown_check_status == 1 ? '等待审核' : userInfo.hometown_check_status == 3 ? '审核未通过' : '审核已通过'}}
		</view>
		<view class="desc">
			{{userInfo.hometown_cause}}
		</view>
		<view class="bottomBtnWrap">
			<view class="bottomBtn" @click="confirm">
				确认
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				userInfo:{}
			}
		},
		onLoad() {
			//获取用户信息
			this.$request('/user/info').then((res)=>{
				console.log('用户信息',res)
				this.userInfo = res.data
			})
		},
		methods:{
			confirm(){
				if(this.userInfo.hometown_check_status == 3){
					this.$href('becomeLand')
				}else{
					uni.switchTab({
						url:'my'
					})
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	page{background: #f8f8f9;}
	.waitImgWrap{
		padding-top: 154rpx;
		image{width: 100%;height: 400rpx;}
	}
	.nowStatus{
		font-size: 36rpx;
		padding-top: 56rpx;
		font-weight: 600;
		text-align: center;
	}
	.desc{
		padding: 24rpx 32rpx;
		color: #969799;
		font-size: 28rpx;
		text-align: center;
	}
	.bottomBtnWrap{
		padding-top: 72rpx;
		display: flex;
		justify-content: center;
		.bottomBtn{
			width: 686rpx;
			height: 80rpx;
			border-radius: 50rpx;
			background: #35655f;
			color: #fff;
			font-size: 28rpx;
			text-align: center;
			line-height: 80rpx;
		}
	}
</style>