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

View File

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

View File

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

View File

@ -54,6 +54,14 @@
</template> </template>
</el-table-column> </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"> <el-table-column label="时间配置" width="180" v-if="hasFuLiWuType">
<template #default="{ row }"> <template #default="{ row }">
@ -255,6 +263,11 @@ const formatTime = (time: string | null) => {
font-size: 12px; font-size: 12px;
} }
.threshold-value {
color: #e6a23c;
font-weight: 500;
}
.image-error { .image-error {
display: flex; display: flex;
justify-content: center; justify-content: center;