Commit 04818d73 authored by 郭铭瑶's avatar 郭铭瑶 🤘

更新

parent 8f6513a4
<!DOCTYPE html><html id=html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta http-equiv=X-UA-Compatible content="IE=edge, chrome=1"><title>南东城运第一综合网格工作站</title><style>html { <!DOCTYPE html><html id=html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta http-equiv=X-UA-Compatible content="IE=edge, chrome=1"><title>南东城运第一综合网格工作站</title><style>html {
font-size: 16vh; font-size: 16vh;
}</style><link href=./static/css/app.1575e481010133cdd6632463997712b4.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.747905745ec57f386e6f.js></script><script type=text/javascript src=./static/js/vendor.64f49a750b0f66cbba6d.js></script><script type=text/javascript src=./static/js/app.f449ba45e85a92cd7521.js></script></body><script src=./static/SMap.min.js></script><script src=./static/Plugins.min.js></script></html> }</style><link href=./static/css/app.d5328c50544e8808aab500bb4bca3bab.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.f30d6c0e10b4c6dd92d5.js></script><script type=text/javascript src=./static/js/vendor.64f49a750b0f66cbba6d.js></script><script type=text/javascript src=./static/js/app.c6535019521eeb7f3346.js></script></body><script src=./static/SMap.min.js></script><script src=./static/Plugins.min.js></script></html>
\ No newline at end of file \ No newline at end of file
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,f){for(var o,d,b,i=0,u=[];i<r.length;i++)d=r[i],t[d]&&u.push(t[d][0]),t[d]=0;for(o in c)Object.prototype.hasOwnProperty.call(c,o)&&(e[o]=c[o]);for(n&&n(r,c,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)b=a(a.s=f[i]);return b};var r={},t={25:0};function a(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,a){n=t[e]=[r,a]});n[2]=r;var c=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,a.nc&&f.setAttribute("nonce",a.nc),f.src=a.p+"static/js/"+e+"."+{0:"859f1d28d6ebd7ced75f",1:"3dab2f03f71b0f0b1713",2:"b20cda0acbab5efc3a2b",3:"ad4ee5a96965c56d8caf",4:"a46e55b2b83af355e6c8",5:"8d38d044dc9e96d56699",6:"b4bee5960cbbfd744133",7:"d0ea0413c3a04b154142",8:"b6e8b962b26570c80b85",9:"e1c22a74c9a60f150eb1",10:"35123d8ca6f583deb04b",11:"c38471d0942ea9c6ff6e",12:"fb0dfea6afa3b80b43d6",13:"4c6969c394fb9541231d",14:"d4990f4a8237148ef7ef",15:"7655e368d63efa369118",16:"f7a75116f7b71310e271",17:"fff71e6a37ad22903519",18:"c4d6f4db971fd6a53de5",21:"5fe24bc860088be1b528",22:"c26ff53165d90faf9c4f",23:"795fee1c52905a188792",24:"ec1d710a9e7c95e61e7b"}[e]+".js";var o=setTimeout(d,12e4);function d(){f.onerror=f.onload=null,clearTimeout(o);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return f.onerror=f.onload=d,c.appendChild(f),r},a.m=e,a.c=r,a.d=function(e,n,r){a.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.p="./",a.oe=function(e){throw console.error(e),e}}([]); !function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,o){for(var a,d,b,i=0,u=[];i<r.length;i++)d=r[i],t[d]&&u.push(t[d][0]),t[d]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a]);for(n&&n(r,c,o);u.length;)u.shift()();if(o)for(i=0;i<o.length;i++)b=f(f.s=o[i]);return b};var r={},t={25:0};function f(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,f){n=t[e]=[r,f]});n[2]=r;var c=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,f.nc&&o.setAttribute("nonce",f.nc),o.src=f.p+"static/js/"+e+"."+{0:"859f1d28d6ebd7ced75f",1:"3dab2f03f71b0f0b1713",2:"774023302392cb0b90bf",3:"ad4ee5a96965c56d8caf",4:"a46e55b2b83af355e6c8",5:"8d38d044dc9e96d56699",6:"b4bee5960cbbfd744133",7:"d0ea0413c3a04b154142",8:"b6e8b962b26570c80b85",9:"e1c22a74c9a60f150eb1",10:"35123d8ca6f583deb04b",11:"c38471d0942ea9c6ff6e",12:"fb0dfea6afa3b80b43d6",13:"4c6969c394fb9541231d",14:"d4990f4a8237148ef7ef",15:"7655e368d63efa369118",16:"f7a75116f7b71310e271",17:"fff71e6a37ad22903519",18:"c4d6f4db971fd6a53de5",21:"5fe24bc860088be1b528",22:"c26ff53165d90faf9c4f",23:"795fee1c52905a188792",24:"ec1d710a9e7c95e61e7b"}[e]+".js";var a=setTimeout(d,12e4);function d(){o.onerror=o.onload=null,clearTimeout(a);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return o.onerror=o.onload=d,c.appendChild(o),r},f.m=e,f.c=r,f.d=function(e,n,r){f.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},f.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(n,"a",n),n},f.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},f.p="./",f.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.747905745ec57f386e6f.js.map //# sourceMappingURL=manifest.f30d6c0e10b4c6dd92d5.js.map
\ No newline at end of file \ No newline at end of file
...@@ -57,9 +57,56 @@ export default { ...@@ -57,9 +57,56 @@ export default {
result.forEach(item => { result.forEach(item => {
if (item.unitAddr === '大沽路123号') { if (item.unitAddr === '大沽路123号') {
item.icon = 'star-sm.png' item.icon = 'star-sm.png'
item.photo = 'photo5.jpg'
} }
if (item.unitAddr === '人民大道200号') { if (item.unitAddr === '人民大道200号') {
item.icon = 'star.png' item.icon = 'star.png'
item.photo = 'photo3.jpg'
}
if (item.unitAddr === '延安东路523号') {
item.photo = 'photo13.jpg'
}
if (item.unitAddr === '南京西路170号') {
item.photo = 'photo9.jpg'
}
if (item.unitAddr === '南京西路150号') {
item.photo = 'photo11.jpg'
}
if (item.unitAddr === '南京西路104号') {
item.photo = 'photo10.jpg'
}
if (item.unitAddr === '南京西路216号') {
item.photo = 'photo8.jpg'
}
if (item.unitAddr === '南京西路325号') {
item.photo = 'photo14.jpg'
}
if (item.unitAddr === '武胜路429号') {
item.photo = 'photo7.jpg'
}
if (item.unitAddr === '凤阳路450号') {
item.photo = 'photo12.jpg'
}
if (item.unitAddr === '人民大道201号') {
item.photo = 'photo1.jpg'
}
if (item.unitAddr === '南京西路325号') {
item.photo = 'photo2.jpg'
}
if (item.unitAddr === '淮海中路98号金钟广场') {
item.photo = 'photo4.jpg'
}
if (item.unitAddr === '延安东路普安路') {
item.photo = 'toilet1.jpeg'
}
if (item.unitAddr === '九江路951号') {
item.photo = 'toilet3.jpeg'
}
if (item.unitAddr === '重庆北路228号') {
item.photo = 'school4.jpeg'
}
if (item.unitAddr === '重庆北路173号') {
item.photo = 'school5.jpeg'
} }
if (item['479477007408168960'].indexOf('重庆北路小学') >= 0) { if (item['479477007408168960'].indexOf('重庆北路小学') >= 0) {
item.photo = 'school1.jpg' item.photo = 'school1.jpg'
......
...@@ -448,72 +448,37 @@ export default { ...@@ -448,72 +448,37 @@ export default {
} else { } else {
hideCommunity() hideCommunity()
} }
let yiPoints = [] const yiPoints = []
if (keys.some(key => key === 'yi')) { const shiPoints = []
yiPoints = this.nonLivingList.filter(item => item._type === 'yi') const zhuPoints = []
} const xingPoints = []
let shiPoints = [] const otherPoints = []
if (keys.some(key => key === 'shi')) { const oldPoints = []
shiPoints = this.nonLivingList.filter(item => item._type === 'shi') const signPoints = []
} const historyPoints = []
let zhuPoints = [] JSON.parse(JSON.stringify(this.nonLivingList)).forEach(item => {
if (keys.some(key => key === 'zhu')) { if (keys.some(key => key === 'yi') && item._type === 'yi') yiPoints.push(item)
zhuPoints = this.nonLivingList.filter(item => item._type === 'zhu') if (keys.some(key => key === 'shi') && item._type === 'shi') shiPoints.push(item)
} if (keys.some(key => key === 'zhu') && item._type === 'zhu') zhuPoints.push(item)
let xingPoints = [] if (keys.some(key => key === 'xing') && item._type === 'xing') xingPoints.push(item)
if (keys.some(key => key === 'xing')) { if (keys.some(key => key === 'other') && item._type === 'other') otherPoints.push(item)
xingPoints = this.nonLivingList.filter(item => item._type === 'xing') if (keys.some(key => key === 'old') && item.livehoodType && item.livehoodType.indexOf('为老') >= 0) {
}
let otherPoints = []
if (keys.some(key => key === 'other')) {
otherPoints = this.nonLivingList.filter(item => item._type === 'other')
}
let oldPoints = []
if (keys.some(key => key === 'old')) {
oldPoints = this.nonLivingList
.filter(item => item.livehoodType && item.livehoodType.indexOf('为老') >= 0)
.map(item => {
console.log(item)
item.icon = 'p15.png' item.icon = 'p15.png'
return item oldPoints.push(item)
})
} }
let signPoints = [] if (keys.some(key => key === 'sign') && item.isLandmark == 1) {
if (keys.some(key => key === 'sign')) { if (item.unitAddr === '大沽路123号' || item.unitAddr === '人民大道200号') return
signPoints = this.nonLivingList if (keys.some(key => key === 'yi' || key === 'shi' || key === 'zhu' || key === 'xing')) return
.filter(item => item.isLandmark == 1)
.map(item => {
item.icon = 'p2.png' item.icon = 'p2.png'
if (item.unitAddr === '大沽路123号') { signPoints.push(item)
item.icon = 'star-sm.png'
} }
if (item.unitAddr === '人民大道200号') { if (keys.some(key => key === 'history') && item.isHistoric == 1) {
item.icon = 'star.png' if (item.unitAddr === '大沽路123号' || item.unitAddr === '人民大道200号') return
} if (keys.some(key => key === 'yi' || key === 'shi' || key === 'zhu' || key === 'xing')) return
return item
})
if (keys.some(key => key === 'yi' || key === 'shi' || key === 'zhu' || key === 'xing')) {
signPoints = []
}
}
let historyPoints = []
if (keys.some(key => key === 'history')) {
historyPoints = this.nonLivingList
.filter(item => item.isHistoric == 1)
.map(item => {
item.icon = 'p8.png' item.icon = 'p8.png'
if (item.unitAddr === '大沽路123号') { historyPoints.push(item)
item.icon = 'star-sm.png'
}
if (item.unitAddr === '人民大道200号') {
item.icon = 'star.png'
} }
return item
}) })
if (keys.some(key => key === 'yi' || key === 'shi' || key === 'zhu' || key === 'xing')) {
historyPoints = []
}
}
remove(this.nonLivingPoints) remove(this.nonLivingPoints)
this.nonLivingPoints = addPoint({ this.nonLivingPoints = addPoint({
key: 'non-living', key: 'non-living',
...@@ -531,61 +496,11 @@ export default { ...@@ -531,61 +496,11 @@ export default {
{icon: 'star-sm.png', photo: 'photo5.jpg', '479477007408168960': '南京东路街道', unitAddr: '大沽路123号', belong: '第一工作站', x: 17.95, y: -788.21}, {icon: 'star-sm.png', photo: 'photo5.jpg', '479477007408168960': '南京东路街道', unitAddr: '大沽路123号', belong: '第一工作站', x: 17.95, y: -788.21},
] ]
}) })
// let oldPoints = []
// if (keys.some(key => key === 'old')) {
// oldPoints = this.areaAPointList.filter(item => item.icon === 'p15.png' || item.icon === 'p7.png')
// }
// let signPoints = []
// if (keys.some(key => key === 'sign')) {
// signPoints = this.areaAPointList.filter(item => item.icon === 'p2.png' || item.icon === 'p4.png' || item.icon === 'p12.png'|| item.icon === 'star.png'|| item.icon === 'star-sm.png')
// }
// let historyPoints = []
// if (keys.some(key => key === 'history')) {
// historyPoints = this.areaAPointList.filter(item => item.icon === 'p8.png')
// }
// let convenientPoints = []
// if (keys.some(key => key === 'convenient')) {
// convenientPoints = this.areaAPointList.filter(item => item.icon === 'p1.png' || item.icon === 'p6.png'|| item.icon === 'p3.png'|| item.icon === 'p9.png'|| item.icon === 'p11.png')
// }
// let subwaPoints = []
// if (keys.some(key => key === 'subway')) {
// subwaPoints = this.areaAPointList.filter(item => item.icon === 'p5.png')
// }
// let micfirePoints = []
// if (keys.some(key => key === 'micfire')) {
// micfirePoints = this.areaAPointList.filter(item => item.icon === 'p10.png')
// }
// remove(this.areaAPoints)
// this.areaAPoints = addPoint({
// key: 'areaA-points',
// size: 20,
// data: [
// ...oldPoints,
// ...signPoints,
// ...historyPoints,
// // ...convenientPoints,
// // ...subwaPoints,
// // ...micfirePoints,
// ...[
// {icon: 'star.png', photo: 'photo3.jpg', name: '上海市人民政府', address: '人民大道200号', belong: '第一工作站', x: 130.78, y: -433.20},
// {icon: 'star-sm.png', photo: 'photo5.jpg', name: '南京东路街道', address: '大沽路123号', belong: '第一工作站', x: 17.95, y: -788.21},
// ]
// ]
// })
}, },
}, },
watch: { watch: {
nonLivingList() { nonLivingList() {
this.handlePoint(this.curPointKeys) this.handlePoint(this.curPointKeys)
// const {addPoint, remove} = this.$refs.map
// remove(this.nonLivingPoints)
// this.nonLivingPoints = addPoint({
// key: 'non-living',
// size: 20,
// icon: 'red.png',
// data: cur,
// })
}, },
}, },
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment