|
@@ -19,6 +19,7 @@ const emits = defineEmits<{ close: [] }>()
|
|
|
const userStore = useUserStore()
|
|
|
const { userInfo } = storeToRefs(userStore)
|
|
|
// const show = ref(false)
|
|
|
+const tab = ref(0)
|
|
|
const request = ref()
|
|
|
const { data: coupons, run: setCoupons } = useRequest(() => request.value(), { initialData: [] })
|
|
|
const handleSelect = (coupon: Coupon) => {
|
|
@@ -65,7 +66,7 @@ onMounted(async () => {
|
|
|
<template>
|
|
|
<wd-action-sheet title="优惠券" :modelValue="show" @close="emits('close')">
|
|
|
<view class="">
|
|
|
- <wd-tabs>
|
|
|
+ <wd-tabs v-model="tab">
|
|
|
<wd-tab title="可用优惠券"></wd-tab>
|
|
|
<!-- <wd-tab title="不可用优惠券"></wd-tab> -->
|
|
|
</wd-tabs>
|