This commit is contained in:
zpc 2026-02-04 02:22:05 +08:00
parent 13fc3fc204
commit 67499601f7
4 changed files with 20 additions and 5 deletions

View File

@ -283,6 +283,11 @@ public class GoodsListResponse
/// </summary>
public DateTime? OpenTime { get; set; }
/// <summary>
/// 抽奖门槛
/// </summary>
public int ChoujiangXianzhi { get; set; }
/// <summary>
/// 创建时间
/// </summary>
@ -344,11 +349,6 @@ public class GoodsDetailResponse : GoodsListResponse
/// </summary>
public int CouponPro { get; set; }
/// <summary>
/// 抽奖限制次数
/// </summary>
public int ChoujiangXianzhi { get; set; }
/// <summary>
/// 商品描述
/// </summary>

View File

@ -676,6 +676,7 @@ public class GoodsService : IGoodsService
FlwStartTime = goods.FlwStartTime,
FlwEndTime = goods.FlwEndTime,
OpenTime = goods.OpenTime,
ChoujiangXianzhi = goods.ChoujiangXianzhi,
CreatedAt = goods.CreatedAt,
UpdatedAt = goods.UpdatedAt
};

View File

@ -61,6 +61,7 @@ export interface GoodsListItem {
flwStartTime: string | null
flwEndTime: string | null
openTime: string | null
choujiangXianzhi: number
createdAt: string
updatedAt: string
}

View File

@ -54,6 +54,14 @@
</template>
</el-table-column>
<!-- 抽奖门槛 -->
<el-table-column label="门槛" width="80" align="center">
<template #default="{ row }">
<span v-if="row.choujiangXianzhi > 0" class="threshold-value">{{ row.choujiangXianzhi }}</span>
<span v-else class="text-muted">-</span>
</template>
</el-table-column>
<!-- 福利屋时间信息 -->
<el-table-column label="时间配置" width="180" v-if="hasFuLiWuType">
<template #default="{ row }">
@ -255,6 +263,11 @@ const formatTime = (time: string | null) => {
font-size: 12px;
}
.threshold-value {
color: #e6a23c;
font-weight: 500;
}
.image-error {
display: flex;
justify-content: center;