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

页面修改

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