|
@@ -10,6 +10,7 @@
|
|
width: `${length / 200}px`,
|
|
width: `${length / 200}px`,
|
|
height: `${width / 200}px`,
|
|
height: `${width / 200}px`,
|
|
position: 'relative',
|
|
position: 'relative',
|
|
|
|
+ transform: `scale(${zoomTimes})`,
|
|
}"
|
|
}"
|
|
:class="[
|
|
:class="[
|
|
width < 25500 && length < 25000 ? 'tranStyle' : 'center',
|
|
width < 25500 && length < 25000 ? 'tranStyle' : 'center',
|
|
@@ -31,9 +32,6 @@
|
|
'transform-origin': 'center center',
|
|
'transform-origin': 'center center',
|
|
zIndex: 4444,
|
|
zIndex: 4444,
|
|
}"
|
|
}"
|
|
- @touchmove.prevent="onTouchMove(index, $event)"
|
|
|
|
- @touchstart="onTouchStart(index, $event)"
|
|
|
|
- @touchend="onTouchEnd(index, $event)"
|
|
|
|
>
|
|
>
|
|
<image
|
|
<image
|
|
style="width: 100%; height: 100%; display: block"
|
|
style="width: 100%; height: 100%; display: block"
|
|
@@ -52,7 +50,9 @@
|
|
item.displayX / 2
|
|
item.displayX / 2
|
|
}px, ${
|
|
}px, ${
|
|
-item.displayY / 2
|
|
-item.displayY / 2
|
|
- }px, 0) translate(-50%, -50%)`,
|
|
|
|
|
|
+ }px, 0) translate(-50%, -50%) scale(${
|
|
|
|
+ 1.5 / zoomTimes
|
|
|
|
+ })`,
|
|
zIndex: 9999,
|
|
zIndex: 9999,
|
|
transition: 'transform 1s linear',
|
|
transition: 'transform 1s linear',
|
|
willChange: 'transform',
|
|
willChange: 'transform',
|
|
@@ -458,6 +458,7 @@ export default {
|
|
index: 0,
|
|
index: 0,
|
|
showModle: false,
|
|
showModle: false,
|
|
unsubscribeFn: null,
|
|
unsubscribeFn: null,
|
|
|
|
+ zoomTimes: "",
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
@@ -486,6 +487,7 @@ export default {
|
|
this.yOffset =
|
|
this.yOffset =
|
|
-(this.devInfo.yyStart + this.devInfo.yyEnd) * 50;
|
|
-(this.devInfo.yyStart + this.devInfo.yyEnd) * 50;
|
|
this.statusLight = this.devInfo.statusLight;
|
|
this.statusLight = this.devInfo.statusLight;
|
|
|
|
+ this.calculate(this.width, this.length);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
@@ -959,6 +961,25 @@ export default {
|
|
|
|
|
|
return existingPoint;
|
|
return existingPoint;
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ calculate(width, length) {
|
|
|
|
+ let zoomTime = width > length ? width : length;
|
|
|
|
+ let practical = zoomTime / 100;
|
|
|
|
+ this.zoomTimes = 710 / practical;
|
|
|
|
+ this.normalizeZoomTimes(this.zoomTimes);
|
|
|
|
+ this.zoomTimes = this.zoomTimes - 0.2;
|
|
|
|
+ },
|
|
|
|
+ normalizeZoomTimes(num) {
|
|
|
|
+ const intPart = Math.floor(num);
|
|
|
|
+ const decimalPart = num - intPart;
|
|
|
|
+
|
|
|
|
+ if (decimalPart >= 0.1 && decimalPart < 0.5) {
|
|
|
|
+ return intPart;
|
|
|
|
+ } else if (decimalPart >= 0.5 && decimalPart < 0.9) {
|
|
|
|
+ return intPart + 0.5;
|
|
|
|
+ }
|
|
|
|
+ return num;
|
|
|
|
+ },
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
this.showModle = true;
|
|
this.showModle = true;
|
|
@@ -1056,12 +1077,12 @@ export default {
|
|
.center {
|
|
.center {
|
|
position: absolute;
|
|
position: absolute;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
- background-color: #fff;
|
|
|
|
- border: 14rpx solid #333333;
|
|
|
|
|
|
+ border: none;
|
|
|
|
+ outline: 10rpx solid #333333;
|
|
background-image: url("https://hflnxx.oss-cn-shanghai.aliyuncs.com/IMAGE/20250919/toilet_bg.png");
|
|
background-image: url("https://hflnxx.oss-cn-shanghai.aliyuncs.com/IMAGE/20250919/toilet_bg.png");
|
|
background-repeat: no-repeat;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
background-position: center;
|
|
- transform: scale(1.3);
|
|
|
|
|
|
+ // transform: scale(1.3);
|
|
|
|
|
|
.moduleContent {
|
|
.moduleContent {
|
|
position: relative;
|
|
position: relative;
|
|
@@ -1082,11 +1103,12 @@ export default {
|
|
position: absolute;
|
|
position: absolute;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
- border: 9rpx solid #333333;
|
|
|
|
|
|
+ border: none;
|
|
|
|
+ outline: 10rpx solid #333333;
|
|
background-image: url("https://hflnxx.oss-cn-shanghai.aliyuncs.com/IMAGE/20250919/toilet_bg.png");
|
|
background-image: url("https://hflnxx.oss-cn-shanghai.aliyuncs.com/IMAGE/20250919/toilet_bg.png");
|
|
background-repeat: no-repeat;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
background-position: center;
|
|
- transform: scale(2.3);
|
|
|
|
|
|
+ // transform: scale(2.3);
|
|
|
|
|
|
.moduleContent {
|
|
.moduleContent {
|
|
// overflow: hidden;
|
|
// overflow: hidden;
|