胶囊高度适配

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

@@ -1,6 +1,5 @@
<script setup>
import { ref, onMounted, onUnmounted } from "vue";
const isIos = ref(true);
const props = defineProps({
title: {
@@ -30,8 +29,6 @@ const updateLoading = (value) => {
};
onMounted(() => {
const deviceInfo = uni.getDeviceInfo();
isIos.value = deviceInfo.osName === "ios";
const pages = getCurrentPages();
const currentPage = pages[pages.length - 1];
if (currentPage.route === "pages/point-book-edit") {
@@ -52,7 +49,7 @@ onUnmounted(() => {
</script>
<template>
<view class="container" :style="{ paddingTop: isIos ? '90rpx' : '60rpx' }">
<view class="container">
<view class="back-btn" @click="onClick">
<image v-if="whiteBackArrow" src="../static/back.png" mode="widthFix" />
<image
@@ -107,7 +104,9 @@ onUnmounted(() => {
)
}}
{{
pointBook.bowtargetType.name.substring(pointBook.bowtargetType.name.length - 3)
pointBook.bowtargetType.name.substring(
pointBook.bowtargetType.name.length - 3
)
}}</text
>
</view>
@@ -120,7 +119,7 @@ onUnmounted(() => {
justify-content: flex-start;
align-items: center;
width: 72vw;
height: 100rpx;
height: 50px;
/* margin-top: var(--status-bar-height); */
padding-left: 15px;
}