新增营销系统、分销系统、会员功能、门店、提现功能
This commit is contained in:
@ -9,6 +9,7 @@
|
||||
import { toRefs } from "vue";
|
||||
import { receiveACoupon } from "@/api/coupon";
|
||||
import { useRouter } from "@/hooks/useRouter";
|
||||
const emit = defineEmits(['receiveCoupon'])
|
||||
|
||||
const {push} = useRouter()
|
||||
const props = defineProps({
|
||||
@ -32,11 +33,13 @@ const {
|
||||
|
||||
const getCoupon = async () => {
|
||||
await receiveACoupon(coupons.value.id)
|
||||
emit('receiveCoupon')
|
||||
uni.showToast({
|
||||
title: "领取成功",
|
||||
icon: "none",
|
||||
duration: 2000
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
const goToProduct = (coupons) => {
|
||||
@ -120,9 +123,6 @@ const goToProduct = (coupons) => {
|
||||
padding: 14rpx 22rpx;
|
||||
background: #ee6d46;
|
||||
color: #fff;
|
||||
}
|
||||
.get-coupon {
|
||||
|
||||
}
|
||||
.disable{
|
||||
background: #666666;
|
||||
|
Reference in New Issue
Block a user