Files
aida_front/src/views/SellerDashboard/MyListings/EditDetail/Status.vue
2026-04-29 15:21:50 +08:00

75 lines
1.7 KiB
Vue

<template>
<div class="status-wrapper flex flex-col flex-1">
<seller-header
class="edit-detail-header"
/>
<div class="status-container flex flex-col flex-1 flex-center">
<img src="@/assets/images/seller/success-0.png" class="icon" alt="" />
<div class="title">{{ $t(title) }}</div>
<div class="desc">
{{ $t(desc) }}
</div>
<div class="btn" @click="handleBack">Back to My Listings</div>
</div>
</div>
</template>
<script setup lang="ts">
import { ref, computed } from "vue"
import { useRoute, useRouter } from "vue-router"
import SellerHeader from "../../seller-header.vue"
const ROUTE = useRoute()
const ROUTER = useRouter()
const title = computed(() => {
if (ROUTE.params.status === "publish") return "SellerListEdit.listingLive"
if (ROUTE.params.status === "draft") return "SellerListEdit.draftSaved"
})
const desc = computed(() => {
if (ROUTE.params.status === "publish") return "SellerListEdit.publishDesc"
if (ROUTE.params.status === "draft") return "SellerListEdit.draftDesc"
})
const handleBack = () => {
ROUTER.push({ name: "myListingsIndex" })
}
</script>
<style lang="less" scoped>
.status-wrapper {
.status-container {
row-gap: 2.4rem;
font-weight: 400;
.title {
font-size: 2.2rem;
}
.icon {
width: 8.33rem;
height: 8.33rem;
}
.desc {
width: 58.2rem;
text-align: center;
white-space: pre-line;
color: #585858;
font-size: 1.8rem;
}
.btn {
margin-top: 3.6rem;
height: 6rem;
width: 30rem;
border-radius: 4rem;
text-align: center;
line-height: 6rem;
padding: 0 2rem;
font-size: 1.6rem;
column-gap: 0.8rem;
cursor: pointer;
background-color: #000;
color: #fff;
}
}
}
</style>