diff --git a/src/components/ScoreResult.vue b/src/components/ScoreResult.vue
index 9c21411..0d8a937 100644
--- a/src/components/ScoreResult.vue
+++ b/src/components/ScoreResult.vue
@@ -5,6 +5,7 @@ import SButton from "@/components/SButton.vue";
import ScreenHint from "@/components/ScreenHint.vue";
import BowData from "@/components/BowData.vue";
import { wxShare } from "@/util";
+import { directionAdjusts } from "@/constants";
const props = defineProps({
onClose: {
type: Function,
@@ -31,6 +32,7 @@ const showPanel = ref(true);
const showComment = ref(false);
const showBowData = ref(false);
const finished = ref(false);
+const totalRing = ref(0);
const closePanel = () => {
showPanel.value = false;
setTimeout(() => {
@@ -38,6 +40,12 @@ const closePanel = () => {
}, 300);
};
onMounted(() => {
+ if (props.result.arrows) {
+ totalRing.value = props.result.arrows.reduce(
+ (last, next) => last + next.ring,
+ 0
+ );
+ }
finished.value =
props.result.arrows && props.result.arrows.length === props.total;
});
@@ -62,11 +70,7 @@ onMounted(() => {
:style="{ transform: `translateY(${showPanel ? '0%' : '100%'})` }"
>
- 本局成绩(共{{
- result.arrows.reduce((last, next) => last + next.ring, 0)
- }}环):
+ 本局成绩(共{{ totalRing }}环):
-
- {{ result.adjustmentHint }}
+
+
{
font-size: 20px;
margin: 0 2px;
}
+.coach-comment {
+ display: flex;
+ flex-direction: column;
+ font-size: 14px;
+ margin-top: -20px;
+}
diff --git a/src/constants.js b/src/constants.js
index 77fdc69..56a27f4 100644
--- a/src/constants.js
+++ b/src/constants.js
@@ -64,3 +64,14 @@ export const orderStatusNames = {
8: "已退款",
9: "拒绝退款",
};
+
+export const directionAdjusts = {
+ AdjustLowerRight: "向右下方调瞄",
+ AdjustDown: "向下方调瞄",
+ AdjustLowerLeft: "向左下方调瞄",
+ AdjustLeft: "向左侧调瞄",
+ AdjustUpperLeft: "向左上侧调瞄",
+ AdjustUp: "向上方调瞄",
+ AdjustUpperRight: "向右上方调瞄",
+ AdjustRight: "向右侧调瞄",
+};