Jelajahi Sumber

fix:首页滚动问题

linhaoyu 2 tahun lalu
induk
melakukan
dd5d24a0c2

+ 0 - 3
src/pages-charge/appointment/appointment.vue

@@ -1,7 +1,4 @@
 <template>
-  <!--  #ifdef MP-WEIXIN -->
-  <page-meta page-style="overflow: {{X || R ? 'hidden' : 'visible'}}" />
-  <!--  #endif -->
   <view :class="['page']">
     <view v-if="data && priceInfo">
       <view class="block">

+ 16 - 5
src/pages/map/map.vue

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

+ 1 - 1
src/utils/constant.ts

@@ -15,4 +15,4 @@ isDevelopment = env === "develop" || env === "trial";
 export const domain = isDevelopment ? "dev.kuaiyuman.cn" : "www.kuaiyuman.cn";
 export const host = `https://${domain}/api`;
 
-export const isDebug = isDevelopment
+export const isDebug = false