unibest/src/pages/index/about.vue

52 lines
1.2 KiB
Vue
Raw Normal View History

2024-03-01 17:32:03 +08:00
<route lang="json5">
{
style: {
navigationBarTitleText: '关于',
},
}
</route>
<template>
<view
2024-03-03 15:21:26 +08:00
class="bg-white overflow-hidden pt-2 px-4"
2024-03-01 17:32:03 +08:00
:style="{ marginTop: safeAreaInsets?.top + 'px' }"
>
2024-03-03 15:21:26 +08:00
<view class="text-center text-3xl mt-4">关于页面</view>
<view class="text-center text-3xl mt-8">
鸽友们好我是
<text class="text-red-500">菲鸽</text>
</view>
2024-03-25 21:01:26 +08:00
<view class="text-center mt-8">
2024-04-02 21:25:00 +08:00
<wd-button type="primary" @click="gotoPage()">进入多语言页面</wd-button>
2024-03-25 21:01:26 +08:00
</view>
<view class="text-center py-4">
当前平台是
2024-03-28 19:25:41 +08:00
<text class="text-red-500">{{ PLATFORM.platform }}</text>
</view>
2024-04-02 20:46:32 +08:00
<view class="text-center desc mt-10">设计稿样式编写</view>
<view class="text-center desc">设计稿是750pxcss里面全部写rpx 即可</view>
2024-03-01 17:32:03 +08:00
</view>
</template>
<script lang="ts" setup>
2024-03-28 19:25:41 +08:00
import PLATFORM from '@/utils/platform'
2024-03-01 17:32:03 +08:00
// 获取屏幕边界到安全区域距离
const { safeAreaInsets } = uni.getSystemInfoSync()
2024-03-28 19:25:41 +08:00
console.log(PLATFORM)
2024-04-02 21:25:00 +08:00
const gotoPage = () => {
uni.navigateTo({
url: '/pages/index/i18n',
})
}
2024-03-01 17:32:03 +08:00
</script>
<style lang="scss" scoped>
.desc {
2024-04-02 20:46:32 +08:00
height: 80rpx;
}
</style>