页面布局优化

This commit is contained in:
kron
2026-01-09 18:12:27 +08:00
parent 937fce1a35
commit 155f2986c7
16 changed files with 140 additions and 195 deletions

View File

@@ -1,24 +1,7 @@
<script setup>
import { ref, onMounted } from "vue";
import Container from "@/components/Container.vue";
import useStore from "@/store";
import { storeToRefs } from "pinia";
const store = useStore();
const { user } = storeToRefs(store);
const isIos = ref(false);
const openLink = () => {
// uni.navigateTo({
// url:
// "/pages/webview?url=" +
// encodeURIComponent("https://beian.miit.gov.cn/"),
// });
};
onMounted(() => {
const deviceInfo = uni.getDeviceInfo();
isIos.value = deviceInfo.osName === "ios";
});
const isIOS = uni.getDeviceInfo().osName === "ios";
</script>
<template>
@@ -34,8 +17,7 @@ onMounted(() => {
<view
class="copyright"
:style="{ paddingBottom: isIos ? '30rpx' : '20rpx' }"
@click="openLink"
:style="{ paddingBottom: isIOS ? '40rpx' : '20rpx' }"
>
<text>粤ICP备2025421150号-2X</text>
</view>
@@ -46,7 +28,7 @@ onMounted(() => {
<style scoped>
.container {
width: calc(100% - 50rpx);
height: 100%;
height: calc(100% - 50rpx);
padding: 25rpx;
background-color: #ffffff;
position: relative;