<!-- https://www.kancloud.cn/dishaxueyuan/uni-app/1358897 onBackPress在小程序不生效 -->
<template>
	<view class="pages">
		<view class="hold-status-bar show">
			<!-- 占据了状态栏位置 -->
		</view>
		<view class="custom-nav">
			<view class="custom-nav-left" @click="$api.goback"><text class="iconfont icon-jiantou"></text></view>
			<view class="custom-nav-center"></view>
		</view>
		<image :src="$getimg + 'building.png'" class="building-img" mode="heightFix"></image>
		<view class="building-text">正在建设中<text class="dotting"></text></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				$getimg:this.$getimg,
				token:'',
				params:{
					
				}
				
			}
		},
		onBackPress(options) {  
			console.log('onBackPress options',options);
			if (options.from === 'navigateBack') {  
				return false;  
			}  
			this.back();  
			return true;  
		}, 
		onShow() {
			let serf = this;		
		},
		onLoad() {
			var pages = getCurrentPages();
			console.log('pages',pages);
			let menuButtonInfo = uni.getMenuButtonBoundingClientRect();//胶囊按钮信息
			console.log('menuButtonInfo',menuButtonInfo);

		},
		methods: {

		}
	}
</script>

<style>
	/* @import url("./building.css"); */
	page{background-color: #F5F5F5;text-align: center;}
	.custom-nav{background-color: #fff;color: #333;padding-bottom: 20rpx;}
	.building-img{margin-top: 408rpx;width: 240rpx;height: 240rpx;margin-bottom: 36rpx;}
	.building-text{font-size: 30rpx;color: #999;line-height: 45rpx;font-weight: 400;}
</style>
