2 Commits
Author SHA1 Message Date
zhangyi 45bc324f70 update:优化节奏训练结算 2026-08-25 18:00:14 +08:00
zhangyi 2eba5f87d7 update:优化记录 2026-08-25 17:49:44 +08:00
6 changed files with 21 additions and 4 deletions
+7 -1
View File
@@ -30,7 +30,13 @@ const getDisplayText = (arrow = {}) => {
const isFailed = (arrow = {}) => {
if (!arrow) return false;
if (props.recordMode && props.trainingType !== "precision") return false;
if (
props.recordMode &&
props.trainingType !== "precision" &&
props.trainingType !== "rhythm"
) {
return false;
}
return arrow.ok !== true;
};
@@ -28,6 +28,10 @@ const props = defineProps({
type: Number,
default: 0,
},
trainingType: {
type: String,
default: "",
},
});
</script>
@@ -72,6 +76,7 @@ const props = defineProps({
:rowCount="total === 12 ? 6 : 9"
:total="total"
:arrows="arrows"
:trainingType="trainingType"
:margin="total === 12 ? 4 : 1"
:fontSize="total === 12 ? 25 : 22"
/>
+7 -1
View File
@@ -21,6 +21,10 @@ const props = defineProps({
type: Boolean,
default: true,
},
trainingType: {
type: String,
default: "",
},
});
const items = ref(new Array(props.total).fill(9));
const bgImages = [
@@ -34,7 +38,9 @@ const getDisplayText = (arrow) => {
};
const isLowScore = (arrow) => {
if (!arrow || arrow.ringX) return false;
if (!arrow) return false;
if (props.trainingType === "rhythm") return arrow.ok !== true;
if (arrow.ringX) return false;
const ring = Number(arrow.ring);
return Number.isFinite(ring) && ring < 6;
};
@@ -454,7 +454,7 @@ const calories = computed(
</view>
</view>
</ScreenHint>
<BowData :total="details.length" :arrows="details" :show="showBowData"
<BowData :total="details.length" :arrows="details" :show="showBowData" :trainingType="resultTrainingType"
:onClose="() => (showBowData = false)" />
<UserUpgrade :show="showUpgrade" :onClose="() => (showUpgrade = false)" :lvl="userLevel" />
</view>
+1 -1
View File
@@ -484,7 +484,7 @@ onShow(async () => {
<text class="record-sub-text">我的训练记录</text>
<image
class="record-arrow"
src="https://static.shelingxingqiu.com/shootmini/static/training-home/img_7.png"
src="https://static.shelingxingqiu.com/shootmini/static/training-home/img_right.png"
mode="widthFix"
/>
</view>
Binary file not shown.

After

Width:  |  Height:  |  Size: 348 B