diff --git a/public/tools/map/main.js b/public/tools/map/main.js index d41c7e557..83accb62c 100644 --- a/public/tools/map/main.js +++ b/public/tools/map/main.js @@ -506,7 +506,7 @@ class BaiduMapPicker { */ updatePoiList(pois) { const addressList = document.getElementById('address-list'); - addressList.style.display = 'block'; + addressList.style.display = 'flex'; const poiList = document.getElementById('poi-list'); poiList.innerHTML = ''; diff --git a/public/tools/map/style.css b/public/tools/map/style.css index b4149d435..1887a3597 100644 --- a/public/tools/map/style.css +++ b/public/tools/map/style.css @@ -105,23 +105,24 @@ body { .address-list { display: none; + flex-direction: column; min-height: 300px; - overflow-y: auto; + overflow: hidden; background: #fff; } .address-list h3 { + flex-shrink: 0; font-size: 18px; font-weight: bold; padding: 12px 14px 10px; - position: sticky; - top: 0; - z-index: 1; background-color: #ffffff; word-break: break-all; } #poi-list { + flex: 1; + overflow: auto; list-style: none; padding-bottom: 10px; } diff --git a/resources/assets/js/store/actions.js b/resources/assets/js/store/actions.js index b8325df2e..09f687db1 100644 --- a/resources/assets/js/store/actions.js +++ b/resources/assets/js/store/actions.js @@ -1277,7 +1277,7 @@ export default { channel, } $A.eeuiAppSetVariate(`location::${channel}`, ""); - const url = $A.urlAddParams($A.eeuiAppRewriteUrl('../public/tools/map/index.html'), Object.assign(params, objects || {})) + const url = $A.urlAddParams(window.location.origin + '/tools/map/index.html', Object.assign(params, objects || {})) dispatch('openAppChildPage', { pageType: 'app', pageTitle: title, diff --git a/resources/assets/statics/public/tools/map/main.js b/resources/assets/statics/public/tools/map/main.js index d41c7e557..83accb62c 100644 --- a/resources/assets/statics/public/tools/map/main.js +++ b/resources/assets/statics/public/tools/map/main.js @@ -506,7 +506,7 @@ class BaiduMapPicker { */ updatePoiList(pois) { const addressList = document.getElementById('address-list'); - addressList.style.display = 'block'; + addressList.style.display = 'flex'; const poiList = document.getElementById('poi-list'); poiList.innerHTML = ''; diff --git a/resources/assets/statics/public/tools/map/style.css b/resources/assets/statics/public/tools/map/style.css index b4149d435..1887a3597 100644 --- a/resources/assets/statics/public/tools/map/style.css +++ b/resources/assets/statics/public/tools/map/style.css @@ -105,23 +105,24 @@ body { .address-list { display: none; + flex-direction: column; min-height: 300px; - overflow-y: auto; + overflow: hidden; background: #fff; } .address-list h3 { + flex-shrink: 0; font-size: 18px; font-weight: bold; padding: 12px 14px 10px; - position: sticky; - top: 0; - z-index: 1; background-color: #ffffff; word-break: break-all; } #poi-list { + flex: 1; + overflow: auto; list-style: none; padding-bottom: 10px; }