细节完善
This commit is contained in:
@@ -5,7 +5,7 @@ import AppBackground from "@/components/AppBackground.vue";
|
|||||||
import Header from "@/components/Header.vue";
|
import Header from "@/components/Header.vue";
|
||||||
import ScreenHint from "@/components/ScreenHint.vue";
|
import ScreenHint from "@/components/ScreenHint.vue";
|
||||||
import BackToGame from "@/components/BackToGame.vue";
|
import BackToGame from "@/components/BackToGame.vue";
|
||||||
import { getCurrentGameAPI } from "@/apis";
|
import { getCurrentGameAPI, laserAimAPI } from "@/apis";
|
||||||
import { debounce } from "@/util";
|
import { debounce } from "@/util";
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
title: {
|
title: {
|
||||||
@@ -108,7 +108,8 @@ const goBack = () => {
|
|||||||
uni.navigateBack();
|
uni.navigateBack();
|
||||||
};
|
};
|
||||||
|
|
||||||
const goCalibration = () => {
|
const goCalibration = async () => {
|
||||||
|
await laserAimAPI();
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/calibration",
|
url: "/pages/calibration",
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -267,6 +267,7 @@ onBeforeUnmount(() => {
|
|||||||
}
|
}
|
||||||
.user-header > image:last-child {
|
.user-header > image:last-child {
|
||||||
width: 36rpx;
|
width: 36rpx;
|
||||||
|
height: 36rpx;
|
||||||
}
|
}
|
||||||
.user-header > text:nth-child(2) {
|
.user-header > text:nth-child(2) {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|||||||
@@ -49,7 +49,8 @@ const ringText = (ring) => {
|
|||||||
<view
|
<view
|
||||||
:style="{
|
:style="{
|
||||||
background: barColor(total === 0 ? b.rate : b.rate / total),
|
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>
|
</view>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import audioManager from "@/audioManager";
|
|||||||
|
|
||||||
const guides = [
|
const guides = [
|
||||||
{
|
{
|
||||||
title: "箭头对准靶子,直至语音提示激光坐标已校准",
|
title: "箭头面向墙面,直至语音提示激光坐标已校准",
|
||||||
src: "https://static.shelingxingqiu.com/attachment/2025-10-30/ddv9p5fk5wscg7hrfo.png",
|
src: "https://static.shelingxingqiu.com/attachment/2025-10-30/ddv9p5fk5wscg7hrfo.png",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,12 @@ import { onShow } from "@dcloudio/uni-app";
|
|||||||
import Container from "@/components/Container.vue";
|
import Container from "@/components/Container.vue";
|
||||||
import ScreenHint from "@/components/ScreenHint.vue";
|
import ScreenHint from "@/components/ScreenHint.vue";
|
||||||
import SButton from "@/components/SButton.vue";
|
import SButton from "@/components/SButton.vue";
|
||||||
import { bindDeviceAPI, getMyDevicesAPI, unbindDeviceAPI } from "@/apis";
|
import {
|
||||||
|
bindDeviceAPI,
|
||||||
|
getMyDevicesAPI,
|
||||||
|
unbindDeviceAPI,
|
||||||
|
laserAimAPI,
|
||||||
|
} from "@/apis";
|
||||||
import useStore from "@/store";
|
import useStore from "@/store";
|
||||||
import { storeToRefs } from "pinia";
|
import { storeToRefs } from "pinia";
|
||||||
const showTip = ref(false);
|
const showTip = ref(false);
|
||||||
@@ -108,7 +113,8 @@ const copyEmail = () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const goCalibration = () => {
|
const goCalibration = async () => {
|
||||||
|
await laserAimAPI();
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/calibration",
|
url: "/pages/calibration",
|
||||||
});
|
});
|
||||||
@@ -225,7 +231,7 @@ onShow(() => {
|
|||||||
<text :style="{ color: '#fed847' }">已赠送6个月射灵世界会员</text>
|
<text :style="{ color: '#fed847' }">已赠送6个月射灵世界会员</text>
|
||||||
</view>
|
</view>
|
||||||
<SButton :onClick="goCalibration" width="60vw" :rounded="40">
|
<SButton :onClick="goCalibration" width="60vw" :rounded="40">
|
||||||
校准智能弓
|
开启智能弓进行校准
|
||||||
</SButton>
|
</SButton>
|
||||||
<text :style="{ marginTop: '20rpx', fontSize: '20rpx', color: '#fff9' }"
|
<text :style="{ marginTop: '20rpx', fontSize: '20rpx', color: '#fff9' }"
|
||||||
>校准时弓箭激光将开启,请勿直视激光</text
|
>校准时弓箭激光将开启,请勿直视激光</text
|
||||||
|
|||||||
Reference in New Issue
Block a user