|
|
@@ -0,0 +1,54 @@
|
|
|
+<template>
|
|
|
+ <div class="entry-information-page">
|
|
|
+ <custom-header name="录入信息" bgColor="#fff"></custom-header>
|
|
|
+ <div class="entry-information-body">
|
|
|
+ <ba-information v-if="currentStep === 1" @next="handleNext" />
|
|
|
+ <select-category v-else-if="currentStep === 2" @prev="handlePrev" @next="handleNext" />
|
|
|
+ <select-variety v-else-if="currentStep === 3" @prev="handlePrev" @confirm="handleConfirm" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup>
|
|
|
+import { ref } from "vue";
|
|
|
+import customHeader from "@/components/customHeader.vue";
|
|
|
+import baInformation from "./components/baInformation.vue";
|
|
|
+import selectCategory from "./components/selectCategory.vue";
|
|
|
+import selectVariety from "./components/selectVariety.vue";
|
|
|
+
|
|
|
+const currentStep = ref(1);
|
|
|
+
|
|
|
+const handleNext = () => {
|
|
|
+ if (currentStep.value < 3) {
|
|
|
+ currentStep.value += 1;
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+const handlePrev = () => {
|
|
|
+ if (currentStep.value > 1) {
|
|
|
+ currentStep.value -= 1;
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+const handleConfirm = () => {
|
|
|
+ // TODO: 提交信息
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.entry-information-page {
|
|
|
+ min-height: 100vh;
|
|
|
+ // background: #e8f4ff;
|
|
|
+ background: linear-gradient(180deg, #57B5FF 0%, #BBE1FF 10%, #F6F6F6 100%),
|
|
|
+linear-gradient(270deg, rgba(218, 195, 255, 0.59) 0%, #E6F2FF 0.01%, #8FC5FE 100%);
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+}
|
|
|
+
|
|
|
+.entry-information-body {
|
|
|
+ flex: 1;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ overflow: hidden;
|
|
|
+}
|
|
|
+</style>
|