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

167 lines
3.2 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
import { onMounted, onUnmounted, reactive, toRefs } from "vue";
import SelectItem from "@/components/selectStyle/selectItem.vue";
import HeaderTitle from '@/components/HeaderTitle.vue'
import { useRouter } from 'vue-router'
import editProfile1_1 from '@/assets/images/workshop/selectStyle/selectStyle1-1.png'
import editProfile1_2 from '@/assets/images/workshop/selectStyle/selectStyle1-2.png'
import editProfile1_3 from '@/assets/images/workshop/selectStyle/selectStyle1-3.png'
import editProfile1_4 from '@/assets/images/workshop/selectStyle/selectStyle1-4.png'
const router = useRouter()
//const props = defineProps({
//})
const emit = defineEmits([
'view-type'
])
let data = reactive({
selectList:
[
{
id:1,
imgList:[
editProfile1_1,
editProfile1_2,
editProfile1_3,
editProfile1_4,
],
isLike: false,
isAdd: false,
},
{
id:2,
imgList:[
editProfile1_1,
editProfile1_2,
editProfile1_3,
editProfile1_4,
],
isLike: false,
isAdd: false,
},
{
id:3,
imgList:[
editProfile1_1,
editProfile1_2,
editProfile1_3,
editProfile1_4,
],
isLike: false,
isAdd: false,
},
{
id:4,
imgList:[
editProfile1_1,
editProfile1_2,
editProfile1_3,
editProfile1_4,
],
isLike: false,
isAdd: false,
},
],
select:{
}
})
const toSelectModelContinue = ()=>{
router.push({ path: 'selectModelContinue' })
}
onMounted(()=>{
emit('view-type', 1)
})
onUnmounted(()=>{
})
defineExpose({})
const { selectList, select } = toRefs(data);
</script>
<template>
<header-title style-type="2" />
<div class="selectStyle">
<div class="text">
<div class="title">
Whats your Style?
</div>
<div class="info">
Select the outfit that matches you the most.
</div>
</div>
<div class="selectContent">
<SelectItem :selectList="selectList" v-model:select="select" />
</div>
</div>
<div class="footer placeholder"></div>
<div class="footer">
<button @click.stop="toSelectModelContinue">Continue</button>
</div>
</template>
<style lang="less" scoped>
.header-title {
--header-title-background: #f6f6f6;
}
.selectStyle{
width: 100%;
flex: 1;
// height: 100%;
position: relative;
display: flex;
flex-direction: column;
background-color: #f6f6f6;
overflow: hidden;
> .text{
text-align: center;
width: 100%;
margin-top: 3.4rem;
margin-bottom: 7.2rem;
> .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 3.5rem;
flex: 1;
overflow: auto;
}
}
.footer {
position: fixed;
width: 100%;
bottom: 0;
left: 0;
height: 11.2rem;
display: flex;
align-items: center;
justify-content: flex-end;
background-color: #f6f6f6;
&.placeholder{
position: relative;
}
> button {
width: 24.6rem;
height: 5.9rem;
border-radius: 0.7rem;
box-sizing: content-box;
border: 0.3rem solid #000;
background-color: #000;
font-family: satoshiBold;
font-weight: 700;
font-size: 3.6rem;
color: #fff;
margin-right: 5rem;
&:active {
opacity: 0.7;
}
}
}
</style>