update
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
</header>
|
||||
|
||||
<div class="content" id="cityInfo" v-cloak>
|
||||
<div class="card cardPrice cardPrice01 cardCity01" v-bind:hrefid="myCityMap.hrefId">
|
||||
<div class="card cardPrice cardPrice01 cardCity01 dn" id="priceDiv" v-bind:hrefid="myCityMap.hrefId">
|
||||
<div class="card-header">
|
||||
<label>{{myCityMap.city}}</label>
|
||||
<a v-if="collecd" class="button theme collection collection02 " @click="collectCity(myCityMap.city, 1)">取消关注</a>
|
||||
@@ -45,7 +45,7 @@
|
||||
<div class="card-header">
|
||||
<span>当前参考均价</span>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<div class="card-content" >
|
||||
<div class="card-content-inner" v-if="myCityMap.cityTopMonthAvgPrice">{{myCityMap.cityTopMonthAvgPrice}}<span>元/㎡</span></div>
|
||||
<div class="card-content-inner" v-else>暂无</div>
|
||||
</div>
|
||||
@@ -151,8 +151,14 @@ $.config = {router: false}
|
||||
var date = new Date();
|
||||
var year = date.getFullYear()+'年';
|
||||
var month = date.getMonth()+1+'月';
|
||||
var city = "神农架"
|
||||
var cityInfoVue = new Vue({
|
||||
var city = "普洱"
|
||||
var cityInfoVue;
|
||||
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
city = self.city
|
||||
cityInfoVue = new Vue({
|
||||
el: '#cityInfo',
|
||||
data: {
|
||||
city:"",
|
||||
@@ -162,12 +168,7 @@ var cityInfoVue = new Vue({
|
||||
myCityMap : []
|
||||
}
|
||||
});
|
||||
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
var city = self.city
|
||||
cityInfoVue.$data.city = city;
|
||||
cityInfoVue.$data.city = city;
|
||||
loadCurCity(city);
|
||||
loadCityPriceInfo(city)
|
||||
loadUpOrDown(city);
|
||||
@@ -176,11 +177,6 @@ function onPlusReady() {
|
||||
|
||||
}
|
||||
|
||||
//loadCurCity(city);
|
||||
// loadCityPriceInfo(city)
|
||||
// loadUpOrDown(city);
|
||||
// loadHotDistrict(city)
|
||||
// loadCityPricesAndCounts(city)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user