胶囊高度适配

This commit is contained in:
kron
2025-08-07 10:48:05 +08:00
parent 91ab946699
commit aa815849b1
5 changed files with 28 additions and 26 deletions

View File

@@ -23,7 +23,6 @@ const { updateConfig, updateUser, updateDevice, updateRank, getLvlName } =
// 使用storeToRefs用于UI里显示保持响应性
const { user, device, rankData } = storeToRefs(store);
const showModal = ref(false);
const isIos = ref(true);
const showGuide = ref(false);
const toPage = (path) => {
@@ -88,8 +87,6 @@ onShow(async () => {
onMounted(async () => {
uni.removeStorageSync("point-book-config");
const deviceInfo = uni.getDeviceInfo();
isIos.value = deviceInfo.osName === "ios";
const config = await getAppConfig();
updateConfig(config);
console.log("全局配置:", config);
@@ -105,7 +102,7 @@ const comingSoon = () => {
<template>
<Container :isHome="true" :showBackToGame="true">
<view class="container" :style="{ paddingTop: isIos ? '100rpx' : '70rpx' }">
<view class="container">
<UserHeader showRank :onSignin="() => (showModal = true)" />
<view :style="{ padding: '12px 10px' }">
<view class="feature-grid">