Skip to content

Commit bd081e2

Browse files
committed
🚸 调整完成判断逻辑
1 parent 16f6289 commit bd081e2

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

src/components/pageHome/ph-pos-user.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div ref="posRef" class="ph-pos-user-card">
44
<div class="ph-puc-top">
55
<div class="title">
6-
<v-icon v-if="props.pos.is_finished" color="var(--tgc-od-green)" title="已完成">
6+
<v-icon v-if="isFin" color="var(--tgc-od-green)" title="已完成">
77
mdi-checkbox-marked-circle-outline
88
</v-icon>
99
<v-icon v-else color="var(--tgc-od-white)" title="未完成">mdi-circle</v-icon>
@@ -69,7 +69,7 @@
6969
剩余双倍次数: {{ props.pos.double_detail.left }}/{{ props.pos.double_detail.total }}
7070
</span>
7171
</template>
72-
<!-- 处理立本活动 TODO:待完善 -->
72+
<!-- 处理立本活动 -->
7373
<template v-else-if="props.pos.type === gameEnum.actCalendarType.LiBen">
7474
<span>当天{{ props.pos.liben_detail.status === 1 ? "未" : "已" }}兑换</span>
7575
<span>{{ props.pos.liben_detail.progress }}/{{ props.pos.liben_detail.total }}</span>
@@ -139,6 +139,12 @@ const endHd = ref<string>();
139139
const isStart = computed<boolean>(() => {
140140
return props.pos.start_timestamp !== "0";
141141
});
142+
const isFin = computed<boolean>(() => {
143+
if (props.pos.type === gameEnum.actCalendarType.LiBen) {
144+
return props.pos.liben_detail.is_has_taken_special_reward;
145+
}
146+
return props.pos.is_finished;
147+
});
142148
143149
onMounted(() => {
144150
endTs.value = Number(props.pos.end_timestamp);

src/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ Sentry.init({
6161
beforeSend(event, hint) {
6262
console.log(hint);
6363
// Check if it is an exception, and if so, show the report dialog
64-
if (event.exception && event.event_id) {
65-
Sentry.showReportDialog({ eventId: event.event_id });
66-
}
64+
// if (event.exception && event.event_id) {
65+
// Sentry.showReportDialog({ eventId: event.event_id });
66+
// }
6767
return event;
6868
},
6969
// Setting this option to true will send default PII data to Sentry.

0 commit comments

Comments
 (0)