<template>
	<view class="main">
		<view :style="{height:iSMT+'px'}"></view>
		<view class="top">
			<view class="top-list" @click="goToPush">
				<text class="text">消息推送</text>
				<text class="message" v-if="isMessage">通知已开启</text>
				<text class="message" v-if="!isMessage">通知未开启</text>
				<uni-icons type="arrowright" size="16" />
			</view>
		</view>
	</view>
</template>

<script setup>
	import {
		ref,
		onMounted
	} from 'vue'
	const iSMT = ref(0)
	const isMessage = ref(true)
	
	const goToPush = () =>{
		uni.navigateTo({
			url: '/pages/setting/push'
		})
	}

	onMounted(() => {
		// 状态栏高度
		iSMT.value = uni.getSystemInfoSync().statusBarHeight;
		console.log('看看高度', iSMT.value)
	})
</script>

<style>
	.top {
		margin-top: 1.5vh;
		height: 7vh;
		background-color: white;
		display: flex;
		justify-content: center;
	}

	.top-list {
		width: 630rpx;
		height: 7vh;
		display: flex;
		align-items: center;
		margin: 0rpx 40rpx;
	}

	.message {
		font-size: 14px;
		color: rgb(203, 203, 203);
	}
	
	.text{
		flex:1;
	}
</style>