front/src/views/h5/customer-center/place-order/index.vue
zzh abfca7a21a feat: add H5 customer center, marketing admin, and employee profile UX
Ship customer portal and marketing pages, user edit drawer with employee archive, IDE employee numbers, channel config refactor, and related nginx/route updates.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-26 23:44:02 +08:00

41 lines
764 B
Vue

<template>
<div class="h5-po-page">
<H5CreateOrderFlow v-model:visible="sheetVisible" />
</div>
</template>
<script lang="ts" setup>
import { onMounted, ref, watch } from 'vue';
import { useRouter } from 'vue-router';
import H5CreateOrderFlow from '../components/H5CreateOrderFlow.vue';
defineOptions({ name: 'H5PlaceOrder' });
const router = useRouter();
const sheetVisible = ref(true);
function leave() {
if (window.history.length > 1) {
router.back();
return;
}
router.replace('/h5/me');
}
watch(sheetVisible, (visible) => {
if (!visible) leave();
});
onMounted(() => {
sheetVisible.value = true;
});
</script>
<style lang="less" scoped>
.h5-po-page {
min-height: 100%;
min-height: 100dvh;
background: #f5f7f8;
}
</style>