Explorar el Código

fix:搜索页面的参数

chenzhen2 hace 1 año
padre
commit
3a0bb3af0d
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      src/packagesEnv/pages/search/index.wpy

+ 4 - 2
src/packagesEnv/pages/search/index.wpy

@@ -325,8 +325,10 @@ wepy.page({
     checkSpace(item) {
       this.activeId = item.permanentSpaceId;
       // 去地图页面
-      wx.redirectTo({
-        url: `/packagesEnv/pages/officehome/index?from='FindIt'&floorId=${item.floorId}&buildingId=${item.buildingId}&spaceId=${item.permanentSpaceId}`
+      wx.navigateTo({
+        url: `/packagesEnv/pages/officehome/index?from=FindIt&floorId=${
+          item.floorId
+        }&buildingId=${item.buildingId}&spaceId=${item.permanentSpaceId}`
       });
     },
     // 搜索