This commit is contained in:
2024-03-15 23:20:20 +08:00
parent 3ce85e2396
commit 351e20f0c0
19 changed files with 311 additions and 72 deletions

View File

@@ -9,6 +9,10 @@
import CouponItem from './components/coupon-item.vue';
import { getCouponList } from '@/api/user';
import { useUserStore } from '@/store';
const store = useUserStore();
const { userInfo } = storeToRefs(store);
const coupons = ref([{
id: 1,
@@ -65,7 +69,7 @@ const coupons = ref([{
onLoad(async () => {
const { data } = await getCouponList({
obj: {
memberId: item?.id, status: 0
memberId: userInfo.value?.id, status: 0
}, pageNum: 1, pageSize: 1000
});
coupons.value = data.list;