Commit 57a866af by 李伟康

commit 提交

1 parent 7736deeb
No preview for this file type
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
:class="['canvas-box',{fill:custom}]" :class="['canvas-box',{fill:custom}]"
scale-area scale-area
:style="{height:height}" :style="{height:height}"
@touchstart="viewTouchStart"
> >
<!-- :style="{aspectRatio:aspectRatio}" --> <!-- :style="{aspectRatio:aspectRatio}" -->
<movable-view <movable-view
...@@ -72,6 +73,9 @@ ...@@ -72,6 +73,9 @@
:direction="scaleValue == 1?'none':'all'" :direction="scaleValue == 1?'none':'all'"
:scale-value="defaultScaleValue" :scale-value="defaultScaleValue"
@scale="scale" @scale="scale"
@change="change"
:x="viewX"
:y="viewY"
> >
<canvas <canvas
:class="['board-canvas',{'draw-canvas':drawStatus}]" :class="['board-canvas',{'draw-canvas':drawStatus}]"
...@@ -222,8 +226,9 @@ export default { ...@@ -222,8 +226,9 @@ export default {
showPenBox: false, showPenBox: false,
height: null, height: null,
scaleValue: 1, scaleValue: 1,
defaultScaleValue: 1 defaultScaleValue: 1,
viewX: 0,
viewY: 0
}; };
}, },
props: { props: {
...@@ -887,6 +892,19 @@ export default { ...@@ -887,6 +892,19 @@ export default {
/**缩放 */ /**缩放 */
scale (e) { scale (e) {
this.scaleValue = e.detail.scale this.scaleValue = e.detail.scale
setTimeout(() => {
// this.viewX = this.viewX * this.scaleValue * -1
// this.viewY = this.viewY * this.scaleValue * -1
}, 1e3)
},
change(e){
// console.log(e.detail.x,e.detail.y)
},
viewTouchStart (e) {
let touch = e.changedTouches[0]
// console.log(touch.pageX,touch.pageY)
// this.viewX = -touch.pageX
// this.viewY = -touch.pageY
} }
} }
} }
......
...@@ -7,6 +7,16 @@ ...@@ -7,6 +7,16 @@
custom custom
> >
<template slot="customContent"> <template slot="customContent">
<view class="carType">
<image
:src="carTypeList[0]"
class="img"
/>
</view>
<view class="title">
<view class="sprite-icon icon-aito"></view>
<view class="text">{{title}}</view>
</view>
<view class="content"> <view class="content">
<view <view
class="form-box" class="form-box"
...@@ -49,6 +59,22 @@ ...@@ -49,6 +59,22 @@
</template> </template>
</view> </view>
</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>
</view> </view>
</template> </template>
</wnCanvas> </wnCanvas>
...@@ -66,7 +92,10 @@ export default { ...@@ -66,7 +92,10 @@ export default {
components: { CarBrands }, components: { CarBrands },
props: { props: {
penSwitch: Boolean, penSwitch: Boolean,
show: Boolean show: Boolean,
title: String,
views: Array,
carTypeList: Array
}, },
name: 'Reception', name: 'Reception',
data () { data () {
...@@ -80,7 +109,7 @@ export default { ...@@ -80,7 +109,7 @@ export default {
maxlength: 50 maxlength: 50
}, },
{ {
placeholder: '电话', placeholder: '车主电话',
key: 'phoneNumber', key: 'phoneNumber',
type: 'input', type: 'input',
inputType: 'tel', inputType: 'tel',
...@@ -104,8 +133,9 @@ export default { ...@@ -104,8 +133,9 @@ export default {
if (newval) this.customerInfo = newval if (newval) this.customerInfo = newval
} }
}, },
show(n){ show (n) {
if(n && !this.customerInfo.carModel) this.$refs.carBrandListVisible.autoSelect() console.log(this.views)
if (n && !this.customerInfo.carModel) this.$refs.carBrandListVisible.autoSelect()
} }
}, },
computed: { computed: {
...@@ -152,13 +182,37 @@ export default { ...@@ -152,13 +182,37 @@ export default {
position: relative; position: relative;
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
background-image: url("@/assets/images/media/reception-bg.webp");
background-size: 100%;
.carType {
width: 864rpx;
height: 707rpx;
position: absolute;
right: 0;
top: 0;
z-index: 2;
.img {
width: 100%;
height: 100%;
vertical-align: top;
}
}
.title {
padding: 160rpx 0 32rpx 110rpx;
.sprite-icon {
margin-bottom: 24rpx;
}
.text {
line-height: 112rpx;
font-weight: 500;
font-size: 80rpx;
color: #333333;
}
}
.content { .content {
background: linear-gradient(180deg, #f7f9fc 0%, #f7f9fc 100%);
padding-top: 196rpx;
.form-box { .form-box {
height: 80rpx; height: 80rpx;
margin-bottom: 48rpx; padding: 0 110rpx;
padding: 0 64rpx;
.form { .form {
display: flex; display: flex;
gap: 0 28rpx; gap: 0 28rpx;
...@@ -217,6 +271,25 @@ export default { ...@@ -217,6 +271,25 @@ export default {
} }
} }
} }
.views-box {
display: flex;
gap: 0 48rpx;
padding: 0 72rpx;
justify-content: center;
margin-top: 92rpx;
.item {
height: 944rpx;
position: relative;
.img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
aspect-ratio: 1/1;
height: 1020rpx;
}
}
}
} }
} }
</style> </style>
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
:ref="'media'+item.id" :ref="'media'+item.id"
:title="item.detailTitle || ''" :title="item.detailTitle || ''"
:madiaId="item.id" :madiaId="item.id"
:carTypeList="item.carTypeList"
/> />
</view> </view>
</template> </template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!