Files
aida_front/src/views/SellerDashboard/BecomeSeller/index.vue

49 lines
1.3 KiB
Vue
Raw Normal View History

2026-04-08 15:19:21 +08:00
<template>
<div class="become-seller">
<seller-header
title="Apply to Become a Seller"
tip="Join the Stylish Parade and start selling your design work"
/>
<div class="content">
2026-04-24 16:57:13 +08:00
<seller-apply v-if="applyStatus === null" @submit="onSubmit" />
<seller-review v-else />
2026-04-08 15:19:21 +08:00
</div>
</div>
</template>
<script setup>
import { ref, computed } from "vue"
import sellerHeader from "../seller-header.vue"
import sellerReview from "./sellerReview.vue"
2026-04-09 10:33:21 +08:00
import sellerApply from "./sellerApply.vue"
2026-04-24 16:57:13 +08:00
import { Https } from "@/tool/https"
import { useStore } from "vuex"
import { ApplyStatus } from "@/store/seller/index.d"
const store = useStore()
const applyStatus = computed(() => store.state.seller.applyStatus)
const onSubmit = () => store.commit("seller/set_applyStatus", ApplyStatus.Pending)
const getSellerApplyStatus = () => {
store.commit("set_loading", true)
Https.axiosGet(Https.httpUrls.getSellerApplyStatus).then((res) => {
store.commit("set_loading", false)
store.commit("seller/set_applyStatus", res)
})
}
getSellerApplyStatus()
2026-04-08 15:19:21 +08:00
</script>
<style scoped lang="less">
.become-seller {
width: 100%;
height: 100%;
overflow: hidden;
position: relative;
display: flex;
flex-direction: column;
> .content {
margin-top: 4rem;
flex: 1;
overflow: hidden;
}
}
</style>