Commit e3510914 by 李伟康

commit

1 parent 8227837f
...@@ -9,9 +9,8 @@ ...@@ -9,9 +9,8 @@
> >
<template slot="customContent"> <template slot="customContent">
<view class="layout-content"> <view class="layout-content">
<view class="title"> <view class="title flex">
<view :class="['sprite-icon',`${isByd?'icon-byd':'icon-aito'}`]"></view> {{title}}
<view class="text">{{title}}</view>
</view> </view>
<view class="content"> <view class="content">
<view <view
...@@ -61,22 +60,10 @@ ...@@ -61,22 +60,10 @@
</template> </template>
</view> </view>
</view> </view>
<view class="views-box"> <image
<template v-for="(i,index) in views"> :class="['content-image']"
<view :src="views[viewIndex].detailUrl"
:key="index" />
class="item"
:style="i.style"
>
<image
:src="i.detailUrl"
class="img"
:style="i.imgStyle"
/>
</view>
</template>
</view>
</view> </view>
</view> </view>
</template> </template>
...@@ -128,6 +115,7 @@ export default { ...@@ -128,6 +115,7 @@ export default {
], ],
customerInfo: {}, customerInfo: {},
focusIndex: -1, focusIndex: -1,
viewIndex: 0,
} }
}, },
watch: { watch: {
...@@ -193,7 +181,7 @@ export default { ...@@ -193,7 +181,7 @@ export default {
.layout { .layout {
width: 100%; width: 100%;
height: 100%; height: 100%;
background-image: url('@/assets/images/media/reception-bg.webp');
background-size: 100%; background-size: 100%;
&-content { &-content {
position: relative; position: relative;
...@@ -201,29 +189,33 @@ export default { ...@@ -201,29 +189,33 @@ export default {
margin: $margin; margin: $margin;
} }
.title { .title {
padding: toRpx(160) 0 toRpx(32) toRpx(110); position: fixed;
.sprite-icon { left: 0;
margin-bottom: toRpx(24); top: toRpx(48);
} width: 100%;
.text { justify-content: center;
line-height: toRpx(112); z-index: 2;
font-weight: 700; height: toRpx(96);
font-size: toRpx(80); align-items: center;
color: #333333; font-weight: 500;
} font-size: toRpx(36);
color: #1a1a1a;
} }
.content { .content {
.form-box { .form-box {
height: toRpx(80); height: toRpx(80);
padding: 0 toRpx(110); padding: 0 toRpx(110);
position: relative; z-index: 2;
z-index: 1; position: absolute;
left: toRpx(64);
top: toRpx(168);
padding: 0;
.form { .form {
display: flex; display: flex;
gap: 0 toRpx(28); gap: 0 toRpx(28);
height: 100%; height: 100%;
&-item { &-item {
width: toRpx(368); width: toRpx(524);
height: 100%; height: 100%;
position: relative; position: relative;
...@@ -278,64 +270,25 @@ export default { ...@@ -278,64 +270,25 @@ export default {
} }
} }
} }
.views-box { &-image {
display: flex; position: absolute;
gap: 0 toRpx(48); width: 100%;
padding: 0 toRpx(72); height: 100%;
justify-content: center; z-index: 1;
margin-top: toRpx(92); }
.item { .bg {
height: toRpx(944); width: 100vw;
position: relative; height: 100vh;
.img { position: fixed;
position: absolute; left: 0;
top: 50%; top: 0;
left: 50%;
transform: translate(-50%, -50%);
aspect-ratio: 1/1;
height: toRpx(1020);
}
}
} }
} }
} }
.byd-layout { .byd-layout {
background-image: url('@/assets/images/media/byd-reception-bg.webp') !important; background-image: url('@/assets/images/media/byd-reception-bg.webp') !important;
.content .views-box {
margin-top: toRpx(44);
.item {
.img {
height: toRpx(960);
}
}
}
} }
.aito-layout { .aito-layout {
.title { background-image: url('@/assets/images/media/reception-bg.webp');
padding: toRpx(112) 0 toRpx(40) toRpx(112);
}
.content {
.form-box {
position: fixed;
right: toRpx(184);
top: toRpx(188);
padding: 0;
}
.views-box {
margin-top: 0;
display: flex;
flex-wrap: wrap;
padding: 0 toRpx(38);
gap: 0;
justify-content: flex-start;
.item {
width: toRpx(1132);
.img {
width: 100%;
height: 100%;
}
}
}
}
} }
</style> </style>
...@@ -173,9 +173,9 @@ export default { ...@@ -173,9 +173,9 @@ export default {
if (!e || !e.changedTouches || drawStatus || toolList.length == 0 || e.changedTouches.length === 0) return if (!e || !e.changedTouches || drawStatus || toolList.length == 0 || e.changedTouches.length === 0) return
let halfScreenWidth = screenWidth / 2, let halfScreenWidth = screenWidth / 2,
touch = e.changedTouches[0], touch = e.changedTouches[0],
isDistanceSignificant = Math.abs(touch.pageX - startX) > screenWidth / 3, isDistanceSignificant = Math.abs(touch.pageX - startX) > screenWidth / 6,
index = toolList.findIndex(item => item.id == id) index = toolList.findIndex(item => item.id == id)
if (Math.abs(this.startY - touch.pageY) > 100) return if (Math.abs(this.startY - touch.pageY) > 150) return
if (!scaleValueObject[id]) scaleValueObject[id] = 1 if (!scaleValueObject[id]) scaleValueObject[id] = 1
if (isDistanceSignificant && index != -1 && scaleValueObject[id] == 1 && !productModelStatus) { if (isDistanceSignificant && index != -1 && scaleValueObject[id] == 1 && !productModelStatus) {
const { nextId, modeName, title } = this.getNextId(index, toolList, startX, halfScreenWidth) const { nextId, modeName, title } = this.getNextId(index, toolList, startX, halfScreenWidth)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!