Commit 57a866af by 李伟康

commit 提交

1 parent 7736deeb
No preview for this file type
......@@ -62,6 +62,7 @@
:class="['canvas-box',{fill:custom}]"
scale-area
:style="{height:height}"
@touchstart="viewTouchStart"
>
<!-- :style="{aspectRatio:aspectRatio}" -->
<movable-view
......@@ -72,6 +73,9 @@
:direction="scaleValue == 1?'none':'all'"
:scale-value="defaultScaleValue"
@scale="scale"
@change="change"
:x="viewX"
:y="viewY"
>
<canvas
:class="['board-canvas',{'draw-canvas':drawStatus}]"
......@@ -222,8 +226,9 @@ export default {
showPenBox: false,
height: null,
scaleValue: 1,
defaultScaleValue: 1
defaultScaleValue: 1,
viewX: 0,
viewY: 0
};
},
props: {
......@@ -887,6 +892,19 @@ export default {
/**缩放 */
scale (e) {
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 @@
custom
>
<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="form-box"
......@@ -49,6 +59,22 @@
</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>
</view>
</template>
</wnCanvas>
......@@ -66,7 +92,10 @@ export default {
components: { CarBrands },
props: {
penSwitch: Boolean,
show: Boolean
show: Boolean,
title: String,
views: Array,
carTypeList: Array
},
name: 'Reception',
data () {
......@@ -80,7 +109,7 @@ export default {
maxlength: 50
},
{
placeholder: '电话',
placeholder: '车主电话',
key: 'phoneNumber',
type: 'input',
inputType: 'tel',
......@@ -104,8 +133,9 @@ export default {
if (newval) this.customerInfo = newval
}
},
show(n){
if(n && !this.customerInfo.carModel) this.$refs.carBrandListVisible.autoSelect()
show (n) {
console.log(this.views)
if (n && !this.customerInfo.carModel) this.$refs.carBrandListVisible.autoSelect()
}
},
computed: {
......@@ -152,13 +182,37 @@ export default {
position: relative;
width: 100vw;
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 {
background: linear-gradient(180deg, #f7f9fc 0%, #f7f9fc 100%);
padding-top: 196rpx;
.form-box {
height: 80rpx;
margin-bottom: 48rpx;
padding: 0 64rpx;
padding: 0 110rpx;
.form {
display: flex;
gap: 0 28rpx;
......@@ -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>
......@@ -37,6 +37,7 @@
:ref="'media'+item.id"
:title="item.detailTitle || ''"
:madiaId="item.id"
:carTypeList="item.carTypeList"
/>
</view>
</template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!