
本次提交添加了多个静态资源文件(如图片)以及页面基础结构,包括首页、消息页和索引页。同时引入了基础样式和工具函数,用于处理状态栏和标题栏的高度计算。这些改动为后续功能开发奠定了基础。
43 lines
637 B
Vue
43 lines
637 B
Vue
<template>
|
|
<view class="content">
|
|
<image class="logo" src="/static/logo.png"></image>
|
|
<view class="text-area">
|
|
<text class="title">{{ title }}</text>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue';
|
|
|
|
const title = ref('测试');
|
|
</script>
|
|
|
|
<style>
|
|
.content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.logo {
|
|
height: 200rpx;
|
|
width: 200rpx;
|
|
margin-top: 200rpx;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
margin-bottom: 50rpx;
|
|
}
|
|
|
|
.text-area {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.title {
|
|
font-size: 36rpx;
|
|
color: #8f8f94;
|
|
}
|
|
</style>
|