|
|
@@ -25,8 +25,8 @@ const deliveryType = ref(1)
|
|
|
const couponPopup = ref(false)
|
|
|
const couponList = ref<Api.AppMemberCouponVO[]>([])
|
|
|
const couponTabActive = ref(0)
|
|
|
-const availableCoupons = computed(() => couponList.value.filter(it => it.useStatus === 2))
|
|
|
-const unavailableCoupons = computed(() => couponList.value.filter(it => it.useStatus !== 2))
|
|
|
+const availableCoupons = computed(() => couponList.value.filter(it => it.isUsed === 2))
|
|
|
+const unavailableCoupons = computed(() => couponList.value.filter(it => it.isUsed !== 2))
|
|
|
const displayCoupons = computed(() => couponTabActive.value === 0 ? availableCoupons.value : unavailableCoupons.value)
|
|
|
const confirmedCoupon = computed(() => couponList.value.find(it => it.allowanceId === confirmedCouponId.value))
|
|
|
const draftCoupon = computed(() => couponList.value.find(it => it.allowanceId === draftCouponId.value))
|
|
|
@@ -102,7 +102,7 @@ async function openCouponPopup() {
|
|
|
}
|
|
|
|
|
|
function handleSelectCoupon(item: Api.AppMemberCouponVO) {
|
|
|
- if (item.useStatus !== 2 || !item.allowanceId) {
|
|
|
+ if (item.isUsed !== 2 || !item.allowanceId) {
|
|
|
return
|
|
|
}
|
|
|
draftCouponId.value = item.allowanceId
|