Browse Source

没有图片信息的时候弹框隐藏图片框

dev
巴林闲侠 1 year ago
parent
commit
76cbc2b65e
  1. 7
      web/client/src/sections/quanju/containers/footer/conserve/right/right-top.js
  2. 9
      web/client/src/sections/quanju/containers/footer/leadership/centerleft/daolu.js
  3. 1
      web/client/src/sections/quanju/containers/footer/leadership/centerleft/hudong.js
  4. 8
      web/client/src/sections/quanju/containers/public/olMap.js

7
web/client/src/sections/quanju/containers/footer/conserve/right/right-top.js

@ -89,7 +89,12 @@ const RightTop = (props) => {
<img src='/assets/images/leadership/beijinglan.png' style={{ width: "100%", height: "100%" }} /> <img src='/assets/images/leadership/beijinglan.png' style={{ width: "100%", height: "100%" }} />
<div style={{ width: "50%", height: "100%", position: "absolute", top: "0", }}> <div style={{ width: "50%", height: "100%", position: "absolute", top: "0", }}>
{ {
item.conserveAfterPic && item.conserveAfterPic.length ? (item.conserveAfterPic && item.conserveAfterPic.length)
||
(item.conserveBeforePic && item.conserveBeforePic.length)
||
(item.conserveUnderwayPic && item.conserveUnderwayPic.length)
?
<Hua shuzu={[{ <Hua shuzu={[{
"imgs": item.conserveAfterPic ? "imgs": item.conserveAfterPic ?
item.conserveAfterPic[0] : "" item.conserveAfterPic[0] : ""

9
web/client/src/sections/quanju/containers/footer/leadership/centerleft/daolu.js

@ -71,14 +71,13 @@ const Right = (props) => {
<img src='/assets/images/leadership/beijinglan.png' style={{ width: "100%", height: "100%" }} /> <img src='/assets/images/leadership/beijinglan.png' style={{ width: "100%", height: "100%" }} />
<div style={{ width: "50%", height: "100%", position: "absolute", top: "0", }}> <div style={{ width: "50%", height: "100%", position: "absolute", top: "0", }}>
{ {
item.conserveAfterPic && item.conserveAfterPic.length ?
<Hua <Hua
shuzu={[ shuzu={[
{ "imgs": item.conserveAfterPic ? item.conserveAfterPic[0] : "" }, { "imgs": item.conserveAfterPic && item.conserveAfterPic.length ? item.conserveAfterPic[0] : "" },
{ "imgs": item.conserveBeforePic ? item.conserveBeforePic[0] : "" }, { "imgs": item.conserveBeforePic && item.conserveBeforePic.length ? item.conserveBeforePic[0] : "" },
{ "imgs": item.conserveUnderwayPic ? item.conserveUnderwayPic[0] : "" } { "imgs": item.conserveUnderwayPic && item.conserveUnderwayPic.length ? item.conserveUnderwayPic[0] : "" }
]} ]}
/> : '' />
} }
</div> </div>
<div style={{ position: "absolute", top: "0", width: "50%", left: "50%", paddingRight: "10px" }}> <div style={{ position: "absolute", top: "0", width: "50%", left: "50%", paddingRight: "10px" }}>

1
web/client/src/sections/quanju/containers/footer/leadership/centerleft/hudong.js

@ -83,7 +83,6 @@ class ReactCarousel extends Component {
}} /> }} />
</div> </div>
</li> </li>
) )
}) })
} }

8
web/client/src/sections/quanju/containers/public/olMap.js

@ -456,7 +456,7 @@ const OlMap = (props) => {
<div style={{ display: "flex", }}> <div style={{ display: "flex", }}>
<div style={{ width: "50%", height: "100%", }}> <div style={{ width: "50%", height: "100%", }}>
{ {
pointItem.id && ((isRoadProject && pointItem.scene_pic && pointItem.scene_pic.length) || (!isRoadProject && pointItem.conserve_after_pic && pointItem.conserve_after_pic.length)) ? pointItem.id ?
<Hua key={pointItem.id} shuzu={ <Hua key={pointItem.id} shuzu={
isRoadProject ? isRoadProject ?
[{ [{
@ -464,13 +464,13 @@ const OlMap = (props) => {
pointItem.scene_pic[0] : "" pointItem.scene_pic[0] : ""
}] : }] :
[{ [{
"imgs": pointItem.conserve_after_pic ? "imgs": pointItem.conserve_after_pic && pointItem.conserve_after_pic.length ?
pointItem.conserve_after_pic[0] : "" pointItem.conserve_after_pic[0] : ""
}, { }, {
"imgs": pointItem.conserve_before_pic ? "imgs": pointItem.conserve_before_pic && pointItem.conserve_before_pic.length ?
pointItem.conserve_before_pic[0] : "" pointItem.conserve_before_pic[0] : ""
}, { }, {
"imgs": pointItem.conserve_underway_pic ? "imgs": pointItem.conserve_underway_pic && pointItem.conserve_underway_pic.length ?
pointItem.conserve_underway_pic[0] : "" pointItem.conserve_underway_pic[0] : ""
}]} }]}
/> />

Loading…
Cancel
Save