细节完善
This commit is contained in:
@@ -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",
|
||||
});
|
||||
|
||||
@@ -267,6 +267,7 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
.user-header > image:last-child {
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
}
|
||||
.user-header > text:nth-child(2) {
|
||||
font-weight: 500;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user