代码提交
This commit is contained in:
@ -6,15 +6,15 @@
|
||||
>
|
||||
<view class="coupon-box">
|
||||
<template v-if="!showEmpty">
|
||||
<template v-for="item in couponList">
|
||||
<view class="coupon-list" v-for="item in couponList">
|
||||
<CouponItem
|
||||
:coupons="item"
|
||||
:type="'get'"
|
||||
/>
|
||||
</template>
|
||||
</view>
|
||||
</template>
|
||||
<Empty
|
||||
:iconSrc="emptyIcon"
|
||||
:iconSrc="emptyCouponIcon"
|
||||
v-else
|
||||
>
|
||||
暂时没有可领取的优惠券~
|
||||
@ -31,7 +31,7 @@ import Empty from "@/components/Empty/index.vue"
|
||||
import { getProductCoupon } from "@/api/coupon";
|
||||
import CouponItem from "@/pages/discountCoupon/components/CouponItem.vue";
|
||||
import Popup from '@/components/Popup/index.vue';
|
||||
import emptyIcon from "@/static/icon/empty/优惠券.png";
|
||||
import { emptyCouponIcon } from "@/utils/images";
|
||||
|
||||
const props = defineProps(["id"])
|
||||
|
||||
@ -91,6 +91,9 @@ defineExpose({
|
||||
padding: 24rpx;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
.coupon-list {
|
||||
margin-bottom: 24rpx;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user