卖家端申请接口。人口
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
tip="Join the Stylish Parade and start selling your design work"
|
||||
/>
|
||||
<div class="content">
|
||||
<seller-review v-if="isSubmit" />
|
||||
<seller-apply v-else @submit="isSubmit = true" />
|
||||
<seller-apply v-if="applyStatus === null" @submit="onSubmit" />
|
||||
<seller-review v-else />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -16,7 +16,20 @@
|
||||
import sellerHeader from "../seller-header.vue"
|
||||
import sellerReview from "./sellerReview.vue"
|
||||
import sellerApply from "./sellerApply.vue"
|
||||
const isSubmit = ref(false)
|
||||
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()
|
||||
</script>
|
||||
<style scoped lang="less">
|
||||
.become-seller {
|
||||
|
||||
Reference in New Issue
Block a user