修复优惠券问题

This commit is contained in:
gyq
2025-11-21 18:15:09 +08:00
parent 97feb2c588
commit da8aedb149
7 changed files with 83 additions and 22 deletions

View File

@@ -61,7 +61,7 @@
</view>
</template>
<template v-else>
<view class="row" v-if="couponType == 1">
<view class="row" v-if="couponType == 1 || couponType == 3">
<text class="title">使用门槛</text>
<text class="info">{{ item.fullAmount }}元减{{ item.discountAmount }}</text>
</view>
@@ -75,7 +75,7 @@
</view>
<view class="row">
<text class="title">发放方式</text>
<text class="info">用户{{ getEmunListLabel('getType', item.getType) }}</text>
<text class="info">{{ getEmunListLabel('getType', item.getType) }}</text>
</view>
<view class="row">
<text class="title">有效期</text>
@@ -87,7 +87,7 @@
</text>
</view>
</template>
<view class="row">
<view class="row" v-if="couponType != 3 && couponType != 1">
<text class="title">创建时间</text>
<text class="info">{{ item.createTime }}</text>
</view>
@@ -115,6 +115,7 @@ const scrollLeft = ref(0); // scroll-view的滚动距离
// 切换类型
function changeType(type, index) {
couponType.value = type;
tableData.query = '';
resetGetData();
calculateCenterScroll(index);
}