Commit 550080d8 authored by 黄奎's avatar 黄奎

页面修改

parent 972074f2
...@@ -846,7 +846,6 @@ ...@@ -846,7 +846,6 @@
return false; return false;
}); });
</script> </script>
<!-- <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> -->
<script type="text/javascript" <script type="text/javascript"
src="https://webapi.amap.com/maps?v=1.3&key=86f2f611126f36b93cf2ef280300524f&plugin=AMap.CitySearch"></script> src="https://webapi.amap.com/maps?v=1.3&key=86f2f611126f36b93cf2ef280300524f&plugin=AMap.CitySearch"></script>
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
......
...@@ -564,19 +564,18 @@ export default { ...@@ -564,19 +564,18 @@ export default {
}, },
created() { created() {
let that = this; let that = this;
// http://pv.sohu.com/cityjson?ie=utf-8
that.loadSites(); that.loadSites();
require(["http://pv.sohu.com/cityjson"], () => { // require(["http://pv.sohu.com/cityjson"], () => {
setTimeout(() => { // setTimeout(() => {
console.log("returnCitySN",returnCitySN) // console.log("returnCitySN",returnCitySN)
if (returnCitySN) { // if (returnCitySN) {
that.loadSites(); // that.loadSites();
that.cityText = returnCitySN.cname; // that.cityText = returnCitySN.cname;
} else { // } else {
that.loadSites(); // that.loadSites();
} // }
}, 1500); // }, 1500);
}); // });
if (localStorage.g && localStorage.g != "undefined") { if (localStorage.g && localStorage.g != "undefined") {
this.groupInfo = JSON.parse(localStorage.g); this.groupInfo = JSON.parse(localStorage.g);
} }
......
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