diff --git a/src/apis.js b/src/apis.js
index 5a6385b..7958e00 100644
--- a/src/apis.js
+++ b/src/apis.js
@@ -119,3 +119,9 @@ export const readyGameAPI = (battleId) => {
battleId,
});
};
+
+export const getGameAPI = (battleId) => {
+ return request("POST", "/user/battle/detail", {
+ id: battleId,
+ });
+};
diff --git a/src/components/BattleFooter.vue b/src/components/BattleFooter.vue
index 74b6fbc..0653b47 100644
--- a/src/components/BattleFooter.vue
+++ b/src/components/BattleFooter.vue
@@ -1,21 +1,10 @@
@@ -23,27 +12,30 @@ setTimeout(() => {
-
+
Round {{ index + 1 }}
- {{ score }}
+ {{
+ result.blueArrows
+ .map((item) => item.ring)
+ .reduce((last, next) => last + next, 0)
+ }}
环
-
+
Round {{ index + 1 }}
- {{ score }}
+ {{ result.redArrows
+ .map((item) => item.ring)
+ .reduce((last, next) => last + next, 0) }}
环
-
- 第三轮射击结束
-
@@ -92,6 +84,7 @@ setTimeout(() => {
font-size: 14px;
}
.players > view > view > view:last-child {
+ font-size: 14px;
padding-right: 20px;
}
.players > view > view > view:last-child > text:first-child {
diff --git a/src/components/Container.vue b/src/components/Container.vue
index 7426f3a..ba7b84a 100644
--- a/src/components/Container.vue
+++ b/src/components/Container.vue
@@ -25,9 +25,10 @@ defineProps({