|
@@ -43,13 +43,15 @@
|
|
|
'align-content':
|
|
|
(item.type == 2 ||
|
|
|
(item.type == 1 && item.status == 1)) &&
|
|
|
- item?.amount?.length + item?.currencySymbol?.length > 12,
|
|
|
- }">
|
|
|
+ item?.amount?.length + item?.currencySymbol?.length > 12,
|
|
|
+ 'custom-bold': item.rewardType === RewardType.custom
|
|
|
+ }"
|
|
|
+ >
|
|
|
<!-- 收到的 -->
|
|
|
<template v-if="item.type == 1">
|
|
|
<!-- 进行中-->
|
|
|
<template v-if="item.status == 0">
|
|
|
- In progress
|
|
|
+ In Progress
|
|
|
</template>
|
|
|
<!-- 已完成 -->
|
|
|
<template v-else-if="item.status == 1">
|
|
@@ -95,7 +97,11 @@
|
|
|
</template>
|
|
|
<!-- 已中奖-通用型奖品展示 -->
|
|
|
<template v-else>
|
|
|
- <span class="blance cuntom-prize">{{item.customizedReward}}</span>
|
|
|
+ <span class="blance cuntom-prize">
|
|
|
+ {{item.customizedReward || ''}}<span class="cuntom-prize-icon">X</span>
|
|
|
+ <span class="cuntom-prize-total">{{item?.postTaskLuckdrop?.totalCount || ''}}</span>
|
|
|
+ </span>
|
|
|
+
|
|
|
</template>
|
|
|
</template>
|
|
|
<template v-else-if="item.type == 3">
|
|
@@ -154,18 +160,24 @@
|
|
|
</template>
|
|
|
<!-- 2:已结束; 3:提前终止-->
|
|
|
<template v-else-if="item.status == 2 || item.status == 3">
|
|
|
+ <!-- 普通红包 -->
|
|
|
<template v-if="item.postTaskLuckdrop && item.postTaskLuckdrop.luckdropType == 1">
|
|
|
- ({{
|
|
|
- item.status == 2 ? "Time expired" : "Termination"
|
|
|
- }})
|
|
|
+ <template v-if="item.status == 2">
|
|
|
+ (Time expired)
|
|
|
+ </template>
|
|
|
+ <template v-if="item.status == 3">
|
|
|
+ {{item.srcContentId ? '(Termination)' : 'Termination'}}
|
|
|
+ </template>
|
|
|
<template v-if="item.status == 2 || item.status == 3 && item.srcContentId">
|
|
|
{{ item.postTaskLuckdrop.receivedCount }}/{{
|
|
|
item.postTaskLuckdrop.totalCount
|
|
|
}}
|
|
|
</template>
|
|
|
</template>
|
|
|
+ <!-- 抽奖红包 -->
|
|
|
<template v-else>
|
|
|
- Termination
|
|
|
+ <!-- 自定义奖品类型 结束时显示 Complete -->
|
|
|
+ {{ item.rewardType === RewardType.custom && item.status == 2 ? 'Complete' : 'Termination' }}
|
|
|
</template>
|
|
|
</template>
|
|
|
<!-- 红包提前终止/退款(进行中)显示-->
|
|
@@ -656,6 +668,16 @@ onBeforeUnmount(() => {
|
|
|
.cuntom-prize {
|
|
|
max-width: 130px;
|
|
|
word-break: break-word;
|
|
|
+ text-align: left;
|
|
|
+ }
|
|
|
+
|
|
|
+ .cuntom-prize-icon {
|
|
|
+ color: #000;
|
|
|
+ }
|
|
|
+
|
|
|
+ .cuntom-prize-total {
|
|
|
+ color: #000;
|
|
|
+ word-break: break-word;
|
|
|
}
|
|
|
|
|
|
.coin-type-wrapper {
|