<template>
	<red-packet v-if="state.page_type == '红包'"></red-packet>
	<luck-draw v-else-if="state.page_type == '抽奖'"></luck-draw>
</template>
<script setup>
import { reactive } from "vue";
import RedPacket from "./red-packet.vue";
import LuckDraw from "./luck-draw.vue";
import { getQueryString } from "@/uilts/help.js";
let state = reactive({});
state.page_type = getQueryString("page_type") || "红包";
</script>
