This commit is contained in:
18631081161 2026-03-11 19:56:40 +08:00
parent f9e4995720
commit fbb9c67e24

View File

@ -28,7 +28,7 @@
<text class="filter-arrow"></text>
</view>
</picker>
<picker :range="typeOptions" range-key="label" @change="onTypeChange">
<picker :range="typeOptions" range-key="label" @change="onTypeChange" style="margin-left: 40rpx;">
<view class="filter-item">
<text class="filter-text">类型{{ currentTypeName }}</text>
<text class="filter-arrow"></text>
@ -110,7 +110,7 @@
try {
const params = { status: this.currentStatus }
if (this.currentStoreId) params.storeId = this.currentStoreId
if (this.currentType) params.type = this.currentType
if (this.currentType) params.couponType = this.currentType
const res = await getMyCoupons(params)
this.coupons = res.data || res || []
} catch (err) {
@ -192,22 +192,27 @@
/* 筛选行 */
.filter-row {
display: flex;
justify-content: space-between;
margin-bottom: 20rpx;
}
.filter-item {
display: flex;
align-items: center;
gap: 6rpx;
max-width: 300rpx;
}
.filter-text {
font-size: 28rpx;
color: #333;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 280rpx;
}
.filter-arrow {
font-size: 24rpx;
color: #999;
flex-shrink: 0;
}
/* 列表 */
.coupon-list {