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>
41 lines
764 B
Vue
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>
|