Files
lanecarford_front/src/views/Workshop/home.vue

92 lines
2.0 KiB
Vue
Raw Normal View History

2025-11-17 14:13:39 +08:00
<script setup lang="ts">
import { onMounted, onUnmounted, reactive, toRefs, computed, onActivated } from "vue";
import { useRouter } from 'vue-router'
const router = useRouter()
2025-11-17 15:17:27 +08:00
import { showConfirmDialog } from 'vant'
2025-12-19 15:32:04 +08:00
import { FlowType } from '@/types/enum'
2025-11-17 14:13:39 +08:00
//const props = defineProps({
//})
const emit = defineEmits([
2025-12-23 14:41:09 +08:00
'viewType'
2025-11-17 14:13:39 +08:00
])
// const data = reactive({
// })
2025-12-19 15:32:04 +08:00
const newJourney = ()=>{
router.push(`/workshop/styList/index?flowType=${FlowType.MAIN}`)
2025-11-17 15:17:27 +08:00
}
2025-12-19 15:32:04 +08:00
const historicalReview = ()=>{
2025-12-22 11:29:38 +08:00
router.push(`/workshop/creation?flowType=${FlowType.HISTORY}`)
2025-11-20 14:54:41 +08:00
}
2025-11-17 15:17:27 +08:00
2025-11-17 14:13:39 +08:00
onMounted(()=>{
2025-12-23 14:41:09 +08:00
emit('viewType', 1)
2025-11-17 14:13:39 +08:00
})
onUnmounted(()=>{
})
defineExpose({})
// const { } = toRefs(data);
</script>
<template>
2025-12-19 15:32:04 +08:00
<div class="homePage">
<img class="homeBg" src="@/assets/images/homeBg.png" alt="">
<div class="button">
<div class="item" @click="newJourney">New Journey</div>
<div class="item" @click="historicalReview">Historical Review</div>
2025-11-17 14:13:39 +08:00
</div>
2025-12-19 15:32:04 +08:00
<div class="info">
Powered by AiDLab for Lane Crawford
2025-11-17 14:13:39 +08:00
</div>
</div>
</template>
<style lang="less" scoped>
.header-title {
--header-title-background: #fff;
--header-title-height: 12rem !important;
}
2025-12-19 15:32:04 +08:00
.homePage{
position: relative;
flex: 1;
> .homeBg{
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
2025-11-17 14:13:39 +08:00
}
2025-12-19 15:32:04 +08:00
> .button{
margin: 64.3rem auto 0;
font-family: satoshiBold;
font-size: 4.6rem;
color: #fff;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
> .item{
width: 45.6rem;
margin-bottom: 8rem;
line-height: 13.1rem;
border: 1.16px solid #FFFFFF;
2025-12-22 11:29:38 +08:00
backdrop-filter: blur(2.5rem);
2025-12-19 15:32:04 +08:00
background: radial-gradient(100% 100% at 0% 0%, rgba(115, 115, 115, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
&:last-child{
margin-bottom: 0;
2025-11-17 14:13:39 +08:00
}
}
}
2025-12-19 15:32:04 +08:00
> .info{
position: absolute;
bottom: 7rem;
font-size: 3rem;
font-family: satoshiRegular;
color: #fff;
text-align: center;
width: 100%;
font-weight: 400;
letter-spacing: .5rem;
}
2025-11-17 14:13:39 +08:00
}
</style>