Commit e3510914 by 李伟康

commit

1 parent 8227837f
......@@ -9,9 +9,8 @@
>
<template slot="customContent">
<view class="layout-content">
<view class="title">
<view :class="['sprite-icon',`${isByd?'icon-byd':'icon-aito'}`]"></view>
<view class="text">{{title}}</view>
<view class="title flex">
{{title}}
</view>
<view class="content">
<view
......@@ -61,22 +60,10 @@
</template>
</view>
</view>
<view class="views-box">
<template v-for="(i,index) in views">
<view
:key="index"
class="item"
:style="i.style"
>
<image
:src="i.detailUrl"
class="img"
:style="i.imgStyle"
/>
</view>
</template>
</view>
<image
:class="['content-image']"
:src="views[viewIndex].detailUrl"
/>
</view>
</view>
</template>
......@@ -128,6 +115,7 @@ export default {
],
customerInfo: {},
focusIndex: -1,
viewIndex: 0,
}
},
watch: {
......@@ -193,7 +181,7 @@ export default {
.layout {
width: 100%;
height: 100%;
background-image: url('@/assets/images/media/reception-bg.webp');
background-size: 100%;
&-content {
position: relative;
......@@ -201,29 +189,33 @@ export default {
margin: $margin;
}
.title {
padding: toRpx(160) 0 toRpx(32) toRpx(110);
.sprite-icon {
margin-bottom: toRpx(24);
}
.text {
line-height: toRpx(112);
font-weight: 700;
font-size: toRpx(80);
color: #333333;
}
position: fixed;
left: 0;
top: toRpx(48);
width: 100%;
justify-content: center;
z-index: 2;
height: toRpx(96);
align-items: center;
font-weight: 500;
font-size: toRpx(36);
color: #1a1a1a;
}
.content {
.form-box {
height: toRpx(80);
padding: 0 toRpx(110);
position: relative;
z-index: 1;
z-index: 2;
position: absolute;
left: toRpx(64);
top: toRpx(168);
padding: 0;
.form {
display: flex;
gap: 0 toRpx(28);
height: 100%;
&-item {
width: toRpx(368);
width: toRpx(524);
height: 100%;
position: relative;
......@@ -278,64 +270,25 @@ export default {
}
}
}
.views-box {
display: flex;
gap: 0 toRpx(48);
padding: 0 toRpx(72);
justify-content: center;
margin-top: toRpx(92);
.item {
height: toRpx(944);
position: relative;
.img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
aspect-ratio: 1/1;
height: toRpx(1020);
}
}
&-image {
position: absolute;
width: 100%;
height: 100%;
z-index: 1;
}
.bg {
width: 100vw;
height: 100vh;
position: fixed;
left: 0;
top: 0;
}
}
}
.byd-layout {
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 {
.title {
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%;
}
}
}
}
background-image: url('@/assets/images/media/reception-bg.webp');
}
</style>
......@@ -173,9 +173,9 @@ export default {
if (!e || !e.changedTouches || drawStatus || toolList.length == 0 || e.changedTouches.length === 0) return
let halfScreenWidth = screenWidth / 2,
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)
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 (isDistanceSignificant && index != -1 && scaleValueObject[id] == 1 && !productModelStatus) {
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!