下单页面增加生日有礼弹窗,关注公众号弹窗,订单结算增加满减活动,修改霸王餐,增加结算成功私域引流和公众号弹窗
This commit is contained in:
41
components/modal-list.vue
Normal file
41
components/modal-list.vue
Normal file
@@ -0,0 +1,41 @@
|
||||
<template>
|
||||
<view>
|
||||
<officialAccount
|
||||
v-if="showOfficialAccount"
|
||||
@close="modelClose($event, 'officialAccount')"
|
||||
/>
|
||||
<couponModal
|
||||
v-if="showCoupon"
|
||||
getMode="eat"
|
||||
@close="modelClose($event, 'coupon')"
|
||||
/>
|
||||
<birthdayGift v-if="showBirthdayGift" @close="modelClose($event, 'birthdayGift')" />
|
||||
</view>
|
||||
</template>
|
||||
<script setup>
|
||||
import { ref, watch, computed, reactive, toRaw } from "vue";
|
||||
import couponModal from "@/components/coupon-modal.vue";
|
||||
import birthdayGift from "@/components/birthday-modal.vue";
|
||||
import officialAccount from "@/components/official-account.vue";
|
||||
//弹窗列表
|
||||
const list = ref([]);
|
||||
|
||||
const showBirthdayGift = ref(true);
|
||||
const showCoupon = ref(false);
|
||||
const showOfficialAccount = ref(false);
|
||||
|
||||
function modelClose(e, type) {
|
||||
console.log("modelClose", type);
|
||||
if (type == "birthdayGift") {
|
||||
showCoupon.value = true;
|
||||
return;
|
||||
}
|
||||
if (type == "coupon") {
|
||||
showOfficialAccount.value = true;
|
||||
return;
|
||||
}
|
||||
if (type == "officialAccount") {
|
||||
return;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user