细节完善

This commit is contained in:
kron
2025-10-31 10:22:02 +08:00
parent a8ee1f0be3
commit d9d1efa316
5 changed files with 16 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ import AppBackground from "@/components/AppBackground.vue";
import Header from "@/components/Header.vue";
import ScreenHint from "@/components/ScreenHint.vue";
import BackToGame from "@/components/BackToGame.vue";
import { getCurrentGameAPI } from "@/apis";
import { getCurrentGameAPI, laserAimAPI } from "@/apis";
import { debounce } from "@/util";
const props = defineProps({
title: {
@@ -108,7 +108,8 @@ const goBack = () => {
uni.navigateBack();
};
const goCalibration = () => {
const goCalibration = async () => {
await laserAimAPI();
uni.navigateTo({
url: "/pages/calibration",
});

View File

@@ -267,6 +267,7 @@ onBeforeUnmount(() => {
}
.user-header > image:last-child {
width: 36rpx;
height: 36rpx;
}
.user-header > text:nth-child(2) {
font-weight: 500;

View File

@@ -49,7 +49,8 @@ const ringText = (ring) => {
<view
:style="{
background: barColor(total === 0 ? b.rate : b.rate / total),
height: (total === 0 ? b.rate : b.rate / total) * 300 + 'rpx',
height:
Math.max((total === 0 ? b.rate : b.rate / total) * 240) + 'rpx',
}"
>
</view>