This commit is contained in:
2018-04-14 20:19:40 +08:00
parent 46990fcfb2
commit 000ff0a8b4
5 changed files with 31 additions and 3567 deletions
+12 -3
View File
@@ -27,7 +27,6 @@ function loadMyCollectCity(){
function loadCurCity(city){
plus.nativeUI.showWaiting();
axios.get("/rest/quotations/userCollectCitys",{}).then(function (response) {
var curDatas = response.data.data
if(curDatas && curDatas.length>0){
@@ -237,10 +236,20 @@ function loadTrends(times, cityPriceMap, countMap){
var pm = cityPriceMap;
var cm = countMap;
if(pm){
prices.push(pm[time])
if(pm[time]){
prices.push(pm[time])
}else{
prices.push(null)
}
}
if(cm){
counts.push(cm[time]);
if(cm[time]){
counts.push(cm[time]);
}else{
counts.push(null);
}
}
}
showChart("price_chart", times, prices, counts)
+17 -10
View File
@@ -46,7 +46,8 @@
<span>当前参考均价</span>
</div>
<div class="card-content">
<div class="card-content-inner">{{myCityMap.cityTopMonthAvgPrice}}<span>元/㎡</span></div>
<div class="card-content-inner" v-if="myCityMap.cityTopMonthAvgPrice">{{myCityMap.cityTopMonthAvgPrice}}<span>元/㎡</span></div>
<div class="card-content-inner" v-else>暂无</div>
</div>
<div class="card-footer">
<span v-if="myCityMap.oneMonthUpDownRange >= 0">
@@ -149,7 +150,7 @@ $.config = {router: false}
var date = new Date();
var year = date.getFullYear()+'年';
var month = date.getMonth()+1+'月';
var city = ""
var city = "神农架"
var cityInfoVue = new Vue({
el: '#cityInfo',
data: {
@@ -161,18 +162,24 @@ var cityInfoVue = new Vue({
}
});
document.addEventListener('plusready', onPlusReady, false);
function onPlusReady() {
var self = plus.webview.currentWebview();
var city = self.city
cityInfoVue.$data.city = city;
loadCurCity(city);
//document.addEventListener('plusready', onPlusReady, false);
//function onPlusReady() {
// var self = plus.webview.currentWebview();
// var city = self.city
// cityInfoVue.$data.city = city;
// loadCurCity(city);
// loadCityPriceInfo(city)
// loadUpOrDown(city);
// loadHotDistrict(city)
// loadCityPricesAndCounts(city)
//
//}
loadCurCity(city);
loadCityPriceInfo(city)
loadUpOrDown(city);
loadHotDistrict(city)
loadCityPricesAndCounts(city)
}
+2 -2
View File
@@ -1440,7 +1440,7 @@ function clickCity(val){
city = val;
plus.nativeUI.showWaiting();
$("#cityInfo").show()
$("#tabCityDiv a").removeClass("active");
// $("a[href="+val+"]").addClass("active");
@@ -1464,7 +1464,7 @@ function clickCity(val){
$("#tabQuotation1").removeClass("active");
$("#tabQuotation0").removeClass("active");
plus.nativeUI.closeWaiting();
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff