update
This commit is contained in:
@@ -1277,6 +1277,8 @@ $.config = {router: false}
|
||||
positionCity = formatCity
|
||||
city = formatCity;
|
||||
$(".nowCity").html(city);
|
||||
|
||||
loadAllCityData();
|
||||
}
|
||||
|
||||
}, function(e){
|
||||
@@ -1296,27 +1298,7 @@ $.config = {router: false}
|
||||
var cityPotentialRanking = new Vue({
|
||||
el:"#cityPotentialRanking"
|
||||
})
|
||||
// var cityChoose = new Vue({
|
||||
// el:"#cityChoose",
|
||||
// data:{
|
||||
// city:''
|
||||
// }
|
||||
// })
|
||||
// plus.geolocation.getCurrentPosition(function(p){
|
||||
// //province = p.address.province;
|
||||
// var cityStr = p.address.city;
|
||||
// if(cityStr){
|
||||
// $(".nowCity").html(cityStr.endsWith("市")?cityStr.substring(0,cityStr.length-1):cityStr);
|
||||
// }
|
||||
// //region = p.address.district;
|
||||
// }, function(e){
|
||||
// },
|
||||
// {
|
||||
// provider:'baidu',
|
||||
// enableHighAccuracy:true,
|
||||
// coordsType:'bd09ll'
|
||||
// }
|
||||
// );
|
||||
|
||||
|
||||
|
||||
/* button状态切换 */
|
||||
@@ -1411,7 +1393,7 @@ $.config = {router: false}
|
||||
}
|
||||
|
||||
//加载首页全国数据
|
||||
$(function() {
|
||||
function loadAllCityData(){
|
||||
var date=new Date;
|
||||
var year=date.getFullYear();
|
||||
var month=date.getMonth()+1;
|
||||
@@ -1432,6 +1414,7 @@ $.config = {router: false}
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
alert(error);
|
||||
});
|
||||
|
||||
axios.get("/rest/quotations/levelCityInfo", {
|
||||
@@ -1449,7 +1432,7 @@ $.config = {router: false}
|
||||
console.log(error);
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
function addCityFocus(city){
|
||||
//city=city.replace("<i></i>","")
|
||||
|
||||
Reference in New Issue
Block a user