胶囊高度适配
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user