This commit is contained in:
kron
2025-08-07 11:04:12 +08:00
parent aa815849b1
commit b180d89ab2
6 changed files with 18 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
<script setup> <script setup>
import { ref } from "vue"; import { ref, onMounted } from "vue";
const props = defineProps({ const props = defineProps({
type: { type: {
type: Number, type: Number,
@@ -10,6 +10,11 @@ const props = defineProps({
default: "#050b19", default: "#050b19",
}, },
}); });
const capsuleHeight = ref(0);
onMounted(() => {
const menuBtnInfo = uni.getMenuButtonBoundingClientRect();
capsuleHeight.value = menuBtnInfo.top + 50 - 9;
});
</script> </script>
<template> <template>
@@ -30,7 +35,7 @@ const props = defineProps({
class="bg-image" class="bg-image"
v-if="type === 2" v-if="type === 2"
src="../static/app-bg3.png" src="../static/app-bg3.png"
mode="widthFix" :style="{ height: capsuleHeight + 'px' }"
/> />
<view class="bg-overlay" v-if="type === 0"></view> <view class="bg-overlay" v-if="type === 0"></view>
</view> </view>

View File

@@ -268,8 +268,9 @@ onMounted(async () => {
} }
.container > view:first-child > button > image { .container > view:first-child > button > image {
transition: all 0.5s ease; transition: all 0.5s ease;
width: 20px; width: 16px;
height: 20px; height: 16px;
padding-right: 5px;
} }
.bow-items { .bow-items {
display: grid; display: grid;

View File

@@ -81,7 +81,7 @@ onMounted(async () => {
:bgType="2" :bgType="2"
bgColor="#F5F5F5" bgColor="#F5F5F5"
:whiteBackArrow="false" :whiteBackArrow="false"
title="计分" title="计分与技术分析"
> >
<view class="container"> <view class="container">
<view class="header"> <view class="header">
@@ -163,6 +163,7 @@ onMounted(async () => {
align-items: center; align-items: center;
color: #ffffffc7; color: #ffffffc7;
font-size: 14px; font-size: 14px;
margin-top: 10px;
} }
.header > image { .header > image {
position: absolute; position: absolute;
@@ -182,6 +183,6 @@ onMounted(async () => {
font-size: 27px; font-size: 27px;
font-weight: 500; font-weight: 500;
margin-right: 5px; margin-right: 5px;
color: #fff; color: #FFF4C9;
} }
</style> </style>

View File

@@ -153,6 +153,7 @@ onLoad(async (options) => {
width: clac(100% - 20px); width: clac(100% - 20px);
overflow-x: auto; overflow-x: auto;
padding: 0 10px; padding: 0 10px;
margin-top: 10px;
} }
.tab-bar::-webkit-scrollbar { .tab-bar::-webkit-scrollbar {
width: 0; width: 0;

View File

@@ -141,6 +141,7 @@ const toDetailPage = (id) => {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 0 15px; padding: 0 15px;
margin-top: 10px;
} }
.selectors > view { .selectors > view {
display: flex; display: flex;
@@ -180,9 +181,9 @@ const toDetailPage = (id) => {
width: 40px; width: 40px;
} }
.point-records { .point-records {
margin: 15px; margin: 0 15px;
margin-bottom: 0; margin-top: 10px;
height: calc(100% - 70px); height: calc(100% - 80px);
} }
.no-data { .no-data {
width: 100%; width: 100%;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB