|
@@ -164,8 +164,8 @@
|
|
|
borderRadius: mapMode ? '16rpx 16rpx 0px 0px' : '0px',
|
|
borderRadius: mapMode ? '16rpx 16rpx 0px 0px' : '0px',
|
|
|
overflowY: mapMode ? 'visible' : 'auto',
|
|
overflowY: mapMode ? 'visible' : 'auto',
|
|
|
}"
|
|
}"
|
|
|
- @touchstart.stop="touchCardStart"
|
|
|
|
|
- @touchmove.stop="touchCardMove"
|
|
|
|
|
|
|
+ @touchstart="touchCardStart"
|
|
|
|
|
+ @touchmove="touchCardMove"
|
|
|
>
|
|
>
|
|
|
<view
|
|
<view
|
|
|
v-if="mapMode"
|
|
v-if="mapMode"
|
|
@@ -196,6 +196,8 @@
|
|
|
:fromMap="true"
|
|
:fromMap="true"
|
|
|
></charge-station>
|
|
></charge-station>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="station-placeholder"></view>
|
|
|
|
|
+ <view class="station-iphonex"></view>
|
|
|
</block>
|
|
</block>
|
|
|
<block v-else>
|
|
<block v-else>
|
|
|
<!-- 单个 -->
|
|
<!-- 单个 -->
|
|
@@ -297,7 +299,7 @@ const styleData = ref({
|
|
|
dialogHeight: 0,
|
|
dialogHeight: 0,
|
|
|
dialogPlaceHolderHeight: 0,
|
|
dialogPlaceHolderHeight: 0,
|
|
|
cardHeight: 0,
|
|
cardHeight: 0,
|
|
|
- navHeight: 0
|
|
|
|
|
|
|
+ navHeight: 0,
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const filterDialog = ref({
|
|
const filterDialog = ref({
|
|
@@ -513,7 +515,7 @@ const refresh = () => {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const handleNavReady = (e: any) => {
|
|
const handleNavReady = (e: any) => {
|
|
|
- console.log(e)
|
|
|
|
|
|
|
+ console.log(e);
|
|
|
styleData.value.dialog = `padding-top:${e.detail.statusBarHeight - 6}px;`;
|
|
styleData.value.dialog = `padding-top:${e.detail.statusBarHeight - 6}px;`;
|
|
|
const searchHeight = rpxToPx(88);
|
|
const searchHeight = rpxToPx(88);
|
|
|
const filterHeight = 0; // rpxToPx(72);
|
|
const filterHeight = 0; // rpxToPx(72);
|
|
@@ -742,7 +744,7 @@ const touchCardMove = (e: any) => {
|
|
|
if (!startpageY) {
|
|
if (!startpageY) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- const threshold = 150;
|
|
|
|
|
|
|
+ const threshold = 200;
|
|
|
if (e.touches && e.touches.length) {
|
|
if (e.touches && e.touches.length) {
|
|
|
if (mapMode.value && startpageY - e.touches[0].pageY > threshold) {
|
|
if (mapMode.value && startpageY - e.touches[0].pageY > threshold) {
|
|
|
mapMode.value = false;
|
|
mapMode.value = false;
|
|
@@ -933,6 +935,15 @@ page {
|
|
|
width: 160rpx;
|
|
width: 160rpx;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ .station-placeholder {
|
|
|
|
|
+ min-height: 104rpx;
|
|
|
|
|
+ }
|
|
|
|
|
+ .station-iphonex {
|
|
|
|
|
+ box-sizing: content-box;
|
|
|
|
|
+ padding-bottom: constant(safe-area-inset-bottom);
|
|
|
|
|
+ padding-bottom: env(safe-area-inset-bottom);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.charging {
|
|
.charging {
|