<template>
	<view class="main">
		<view :style="{height:iSMT+'px'}"></view>
		<view class="top">
			<view class="top-list">
				<text class="label">公共消息</text>
				<view class="right">
					<text class="public">重大咨询、财经要闻等系统提醒</text>
					<switch class="switch-btn" />
				</view>
			</view>
			<view class="top-list">
				<text class="label">指标消息提醒</text>
				<view class="right">
					<text class="public">所有指标消息的提醒</text>
					<switch class="switch-btn" />
				</view>
			</view>
		</view>

		<view class="bottom">
			<view class="bottom-list">
				<text class="label">盯盘预警</text>
				<view class="right">
					<text class="public">自选股预警和个性化预警设置</text>
					<uni-icons type="arrowright" size="16" />
				</view>
			</view>
			<view class="bottom-list">
				<text class="label">订阅服务</text>
				<view class="right">
					<text class="public">订阅你感兴趣的专题服务</text>
					<uni-icons type="arrowright" size="16" />
				</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	import {
		ref,
		onMounted
	} from 'vue'
	const iSMT = ref(0)

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

<style>
	.top {
		margin-top: 1.5vh;
		height: 14vh;
		background-color: white;
	}

	.top-list {
		width: 630rpx;
		height: 7vh;
		display: flex;
		align-items: center;
		margin: 0 40rpx;
		padding: 0 10rpx;
		border-bottom: 1rpx solid #eee;
	}

	.top-list:last-child {
		border-bottom: none;
	}

	.right {
		display: flex;
		align-items: center;
		gap: 10rpx;
	}

	.switch-btn {
		transform: scale(0.6);
		transform-origin: center right;
	}

	.public {
		font-size: 10px;
		color: rgb(203, 203, 203);
	}

	.bottom {
		height: 14vh;
		background-color: white;
		margin-top: 1vh;
	}

	.bottom-list {
		width: 630rpx;
		height: 7vh;
		display: flex;
		align-items: center;
		margin: 0 40rpx;
		padding: 0 10rpx;
		border-bottom: 1rpx solid #eee;
	}

	.cache {
		margin-left: 55%;
		font-size: 14px;
		color: rgb(203, 203, 203);
	}

	.bottom-list:last-child {
		border-bottom: none;
	}

	.label {
		flex: 1;
	}
</style>