|
@@ -43,8 +43,10 @@
|
|
|
'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">
|
|
|
<!-- 进行中-->
|
|
@@ -95,7 +97,11 @@
|
|
|
</template>
|
|
|
<!-- 已中奖-通用型奖品展示 -->
|
|
|
<template v-else>
|
|
|
- <span class="blance cuntom-prize">{{item.customizedReward}}</span>
|
|
|
+ <span class="blance cuntom-prize">
|
|
|
+ {{item.customizedReward || ''}}
|
|
|
+ </span>
|
|
|
+ <span class="cuntom-prize-icon"> X </span>
|
|
|
+ <span class="cuntom-prize-total">{{item?.postTaskLuckdrop?.totalCount || ''}}</span>
|
|
|
</template>
|
|
|
</template>
|
|
|
<template v-else-if="item.type == 3">
|
|
@@ -154,6 +160,7 @@
|
|
|
</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"
|
|
@@ -164,8 +171,10 @@
|
|
|
}}
|
|
|
</template>
|
|
|
</template>
|
|
|
+ <!-- 抽奖红包 -->
|
|
|
<template v-else>
|
|
|
- Termination
|
|
|
+ <!-- 自定义奖品类型 结束时显示 Complete -->
|
|
|
+ {{ item.rewardType === RewardType.custom && item.status == 2 ? 'Complete' : 'Termination' }}
|
|
|
</template>
|
|
|
</template>
|
|
|
<!-- 红包提前终止/退款(进行中)显示-->
|
|
@@ -656,6 +665,20 @@ onBeforeUnmount(() => {
|
|
|
.cuntom-prize {
|
|
|
max-width: 130px;
|
|
|
word-break: break-word;
|
|
|
+ align-self: flex-start;
|
|
|
+ text-align: left;
|
|
|
+ }
|
|
|
+
|
|
|
+ .cuntom-prize-icon {
|
|
|
+ margin: 0 2px;
|
|
|
+ align-self: flex-start;
|
|
|
+ }
|
|
|
+
|
|
|
+ .cuntom-prize-total {
|
|
|
+ max-width: 100px;
|
|
|
+ word-break: inherit;
|
|
|
+ // word-break: break-word;
|
|
|
+ align-self: flex-start;
|
|
|
}
|
|
|
|
|
|
.coin-type-wrapper {
|
|
@@ -675,6 +698,10 @@ onBeforeUnmount(() => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ .custom-bold {
|
|
|
+ max-width: 170px;
|
|
|
+ }
|
|
|
+
|
|
|
.align-content {
|
|
|
flex-direction: column;
|
|
|
align-items: flex-end;
|