筛选
This commit is contained in:
parent
f9e4995720
commit
fbb9c67e24
|
|
@ -28,7 +28,7 @@
|
||||||
<text class="filter-arrow">∨</text>
|
<text class="filter-arrow">∨</text>
|
||||||
</view>
|
</view>
|
||||||
</picker>
|
</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">
|
<view class="filter-item">
|
||||||
<text class="filter-text">类型:{{ currentTypeName }}</text>
|
<text class="filter-text">类型:{{ currentTypeName }}</text>
|
||||||
<text class="filter-arrow">∨</text>
|
<text class="filter-arrow">∨</text>
|
||||||
|
|
@ -110,7 +110,7 @@
|
||||||
try {
|
try {
|
||||||
const params = { status: this.currentStatus }
|
const params = { status: this.currentStatus }
|
||||||
if (this.currentStoreId) params.storeId = this.currentStoreId
|
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)
|
const res = await getMyCoupons(params)
|
||||||
this.coupons = res.data || res || []
|
this.coupons = res.data || res || []
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
@ -192,22 +192,27 @@
|
||||||
/* 筛选行 */
|
/* 筛选行 */
|
||||||
.filter-row {
|
.filter-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
}
|
}
|
||||||
.filter-item {
|
.filter-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 6rpx;
|
gap: 6rpx;
|
||||||
|
max-width: 300rpx;
|
||||||
}
|
}
|
||||||
.filter-text {
|
.filter-text {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
max-width: 280rpx;
|
||||||
}
|
}
|
||||||
.filter-arrow {
|
.filter-arrow {
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
/* 列表 */
|
/* 列表 */
|
||||||
.coupon-list {
|
.coupon-list {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user