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

145 lines
2.5 KiB
Vue
Raw Normal View History

2025-10-09 10:42:45 +08:00
<script setup lang="ts">
2025-10-09 16:04:55 +08:00
import { onMounted, onUnmounted, reactive, toRefs } from "vue";
2025-10-09 13:56:00 +08:00
import SelectItem from "@/components/selectStyle/selectItem.vue";
2025-10-10 16:03:12 +08:00
import HeaderTitle from '@/components/HeaderTitle.vue'
import { useRouter } from 'vue-router'
2025-10-10 17:21:38 +08:00
import editProfile1 from '@/assets/images/editProfile1.jpg'
2025-10-10 16:03:12 +08:00
const router = useRouter()
2025-10-09 10:42:45 +08:00
//const props = defineProps({
//})
//const emit = defineEmits([
//])
let data = reactive({
2025-10-09 16:04:55 +08:00
selectList:
[
{
id:1,
imgList:[
2025-10-10 17:21:38 +08:00
editProfile1,
editProfile1,
editProfile1,
editProfile1,
2025-10-09 16:04:55 +08:00
],
isLike: false,
isAdd: false,
},
{
id:2,
imgList:[
2025-10-10 17:21:38 +08:00
editProfile1,
editProfile1,
editProfile1,
editProfile1,
2025-10-09 16:04:55 +08:00
],
isLike: false,
isAdd: false,
},
{
id:2,
imgList:[
2025-10-10 17:21:38 +08:00
editProfile1,
editProfile1,
editProfile1,
editProfile1,
2025-10-09 16:04:55 +08:00
],
isLike: false,
isAdd: false,
},
{
id:2,
imgList:[
2025-10-10 17:21:38 +08:00
editProfile1,
editProfile1,
editProfile1,
editProfile1,
2025-10-09 16:04:55 +08:00
],
isLike: false,
isAdd: false,
},
]
2025-10-09 10:42:45 +08:00
})
2025-10-10 16:03:12 +08:00
const toSelectModel = ()=>{
router.push({ path: 'selectModel' })
}
2025-10-09 10:42:45 +08:00
onMounted(()=>{
})
onUnmounted(()=>{
})
defineExpose({})
2025-10-09 16:04:55 +08:00
const { selectList } = toRefs(data);
2025-10-09 10:42:45 +08:00
</script>
<template>
2025-10-10 16:03:12 +08:00
<header-title />
2025-10-09 10:42:45 +08:00
<div class="selectStyle">
2025-10-09 16:04:55 +08:00
<div class="text">
<div class="title">
Whats your Style?
2025-10-09 13:56:00 +08:00
</div>
2025-10-09 16:04:55 +08:00
<div class="info">
Select the outfit that matches you the most.
</div>
</div>
<div class="selectContent">
<SelectItem :selectList="selectList" />
2025-10-09 10:42:45 +08:00
</div>
</div>
2025-10-10 16:03:12 +08:00
<div class="footer">
<button @click.stop="toSelectModel">Continue</button>
</div>
2025-10-09 10:42:45 +08:00
</template>
<style lang="less" scoped>
.selectStyle{
width: 100%;
2025-10-10 16:03:12 +08:00
// height: 100%;
2025-10-09 10:42:45 +08:00
position: relative;
2025-10-09 16:04:55 +08:00
> .text{
text-align: center;
width: 100%;
margin-top: 7rem;
margin-bottom: 4.8rem;
> .title{
font-family: satoshiBold;
font-weight: 700;
font-size: 9.6rem;
line-height: 124%;
}
> .info{
font-size: 4rem;
font-weight: 400;
line-height: 124%;
margin-top: 1.3rem;
}
}
.selectContent{
padding: 0 4rem;
}
2025-10-09 10:42:45 +08:00
}
2025-10-10 16:03:12 +08:00
.footer {
position: fixed;
width: 100%;
bottom: 0;
left: 0;
height: 11.2rem;
background-color: #000;
display: flex;
align-items: center;
justify-content: flex-end;
> button {
width: 24.6rem;
height: 5.9rem;
border-radius: 0.7rem;
box-sizing: content-box;
border: 0.3rem solid #fff;
background: transparent;
font-family: satoshiRegular;
font-weight: 400;
font-size: 4rem;
color: #fff;
margin-right: 5rem;
&:active {
opacity: 0.7;
}
}
}
2025-10-09 10:42:45 +08:00
</style>