update:优化赏金赛记录

This commit is contained in:
2026-08-31 16:14:57 +08:00
parent bbfa35e871
commit 74bfd7a327
2 changed files with 3 additions and 11 deletions
+1 -11
View File
@@ -13,20 +13,10 @@ const { user } = storeToRefs(store);
const arrows = ref([]); const arrows = ref([]);
const isSvip = ref(false); const isSvip = ref(false);
const practiseDetail = ref({}); const practiseDetail = ref({});
const trainingTypeNameMap = Object.freeze({
base: "基础训练",
endurance: "耐力训练",
precision: "精准训练",
rhythm: "节奏训练",
stability: "稳定训练",
});
const trainingType = computed(() => const trainingType = computed(() =>
String(practiseDetail.value.trainingType || "").trim().toLowerCase() String(practiseDetail.value.trainingType || "").trim().toLowerCase()
); );
const trainingTypeName = computed(
() => trainingTypeNameMap[trainingType.value] || "自由训练"
);
const targetTypeText = computed(() => { const targetTypeText = computed(() => {
const targetType = Number(practiseDetail.value.targetType); const targetType = Number(practiseDetail.value.targetType);
return targetType > 0 ? `${targetType}CM靶` : ""; return targetType > 0 ? `${targetType}CM靶` : "";
@@ -83,7 +73,7 @@ onLoad(async (options) => {
</view> --> </view> -->
<view v-if="practiseDetail.id" class="practice-meta"> <view v-if="practiseDetail.id" class="practice-meta">
<text v-if="targetTypeText">{{ targetTypeText }}</text> <text v-if="targetTypeText">{{ targetTypeText }}</text>
<text>{{ trainingTypeName }}</text> <text>{{ practiseDetail.trainingTypeText }}</text>
<text v-if="difficultyText">{{ difficultyText }}</text> <text v-if="difficultyText">{{ difficultyText }}</text>
</view> </view>
<view :style="{ marginBottom: '20px' }"> <view :style="{ marginBottom: '20px' }">
+2
View File
@@ -240,9 +240,11 @@ onLoad((options) => {
} }
.login-title { .login-title {
width: 600rpx;
margin: 28rpx 0 60rpx; margin: 28rpx 0 60rpx;
font-size: 40rpx; font-size: 40rpx;
font-weight: 500; font-weight: 500;
text-align: center;
} }
.avatar-wrap { .avatar-wrap {