Explorar o código

Merge branch 'master' of http://www.sysuimars.cn:3000/feiniao/feiniao-pc-vue

刘秀芳 hai 1 semana
pai
achega
6ec933129c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/views/warningHome/map/mockFarmLayer.js

+ 1 - 0
src/views/warningHome/map/mockFarmLayer.js

@@ -112,6 +112,7 @@ class MockFarmLayer {
                 let grow = (f.get("grow") === "花苞" || f.get("grow") === "露白") ? "谢花" : f.get("grow");
                 let grow = (f.get("grow") === "花苞" || f.get("grow") === "露白") ? "谢花" : f.get("grow");
                 let phenology = "褪绿";
                 let phenology = "褪绿";
                 let img = f.get("img");
                 let img = f.get("img");
+                img = img || 'https://birdseye-img.sysuimars.com/birdseye-look-mini/img_crop/xiaoguo/1.png'
                 let name = f.get("name");
                 let name = f.get("name");
                 let id = f.get("mapId");
                 let id = f.get("mapId");
                 let styles = [that.pointStyle, that.cloudStyle(img), that.nameStyle(id, name)];
                 let styles = [that.pointStyle, that.cloudStyle(img), that.nameStyle(id, name)];