You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
108 lines
1.9 KiB
108 lines
1.9 KiB
<template>
|
|
<view class="main">
|
|
<view :style="{height:iSMT+'px'}"></view>
|
|
<view class="top">
|
|
<view class="top-list">
|
|
<text style="width:180rpx;">公共消息</text>
|
|
<text class="public">重大咨询、财经要闻等系统提醒</text>
|
|
<switch class="arrow switch-btn" />
|
|
</view>
|
|
<view class="top-list">
|
|
<text>字体大小</text>
|
|
<switch class="arrow switch-btn" />
|
|
</view>
|
|
</view>
|
|
|
|
<view class="bottom">
|
|
<view class="bottom-list">
|
|
<text>盯盘预警</text>
|
|
<uni-icons type="arrowright" size="16" class="arrow" />
|
|
</view>
|
|
<view class="bottom-list">
|
|
<text>订阅服务</text>
|
|
<text class="cache">45.5M</text>
|
|
<uni-icons type="arrowright" size="16" class="arrow" />
|
|
</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;
|
|
justify-content: center;
|
|
margin: 0 40rpx;
|
|
padding: 0 10rpx;
|
|
border-bottom: 1rpx solid #eee;
|
|
}
|
|
|
|
.top-list:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.switch-btn {
|
|
width: 100rpx;
|
|
transform: scale(0.6);
|
|
transform-origin: center right;
|
|
}
|
|
|
|
.public {
|
|
width: 450rpx;
|
|
margin-left: auto;
|
|
font-size: 10px;
|
|
color: rgb(203, 203, 203);
|
|
}
|
|
|
|
.arrow {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.bottom {
|
|
height: 13.5vh;
|
|
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;
|
|
}
|
|
</style>
|