aa
This commit is contained in:
@@ -52,6 +52,14 @@ $(".content-block .button").on("click", function () {
|
||||
$(this).addClass("active");
|
||||
});
|
||||
|
||||
var t1 = window.setTimeout(loadMap,1000);
|
||||
function loadMap(){
|
||||
if(lng && lat){
|
||||
loadMapPoi();
|
||||
window.clearTimeout(t1);
|
||||
}
|
||||
}
|
||||
|
||||
//小区详情
|
||||
function loadDistrictInfo(){
|
||||
axios.get("/rest/districts/detail", {
|
||||
|
||||
@@ -7,15 +7,22 @@ var searchDistVue = new Vue({
|
||||
openDistrictDetail:function(index) {
|
||||
saveHistory({district:this.searchDistricts[index].region,name:this.searchDistricts[index].name,city:this.searchDistricts[index].city})
|
||||
//clicked(BASE_PATH+'/district/details?city='+this.searchDistricts[index].city+'®ion='+this.searchDistricts[index].region+'&name='+this.searchDistricts[index].name,true);
|
||||
if(cat=="district"){
|
||||
clicked('views/district/detail.html',true,false,{},{city:this.searchDistricts[index].city,region:this.searchDistricts[index].region,name:this.searchDistricts[index].name});
|
||||
}else if(cat == "rent"){
|
||||
if(cat == "rent"){
|
||||
clicked('views/rent/rent.html',true,false,{},{city:this.searchDistricts[index].city,region:this.searchDistricts[index].region,name:this.searchDistricts[index].name})
|
||||
}else{
|
||||
clicked('views/district/detail.html',true,false,{},{city:this.searchDistricts[index].city,region:this.searchDistricts[index].region,name:this.searchDistricts[index].name});
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
var hotDistVue = new Vue({
|
||||
el: '#hotList',
|
||||
data: {
|
||||
hotDists: []
|
||||
}
|
||||
})
|
||||
|
||||
$("#districtName").bind("input propertychange keyup" , function () {
|
||||
var keyword = $(this).val()
|
||||
if(xhr){
|
||||
@@ -96,7 +103,6 @@ function recover() {
|
||||
}
|
||||
/* 弹出搜索小区页面 */
|
||||
$("body").delegate(".open-about02", "click", function () {
|
||||
alert("ssss");
|
||||
$("#districtName").val("");
|
||||
if($("#input_city").text()==""){
|
||||
$.toast("请选择城市")
|
||||
@@ -105,12 +111,11 @@ alert("ssss");
|
||||
|
||||
var text = $(this).text().trim();
|
||||
|
||||
if(text=="房价查询"){
|
||||
cat = "district"
|
||||
}else if(text=="房租查询"){
|
||||
if(text=="房租查询"){
|
||||
cat = "rent"
|
||||
}else{
|
||||
cat = "district"
|
||||
}
|
||||
alert("test:"+text+" cat:"+cat)
|
||||
$('.historyList').show();
|
||||
$("#notFound").hide();
|
||||
$('.hotList').show();
|
||||
@@ -139,12 +144,8 @@ function addHotDistricts(cityParam){
|
||||
dists.push(map);
|
||||
}
|
||||
|
||||
new Vue({
|
||||
el: '#hotList',
|
||||
data: {
|
||||
hotDists: dists
|
||||
}
|
||||
})
|
||||
|
||||
hotDistVue.$data.hotDists=dists
|
||||
|
||||
}
|
||||
|
||||
@@ -160,10 +161,10 @@ var historyVue = new Vue({
|
||||
histories: histories
|
||||
},methods: {
|
||||
openHistoryDetail:function(index) {
|
||||
if(cat=="district"){
|
||||
clicked('views/district/detail.html',true,false,{},{city:this.searchDistricts[index].city,region:this.searchDistricts[index].region,name:this.searchDistricts[index].name});
|
||||
}else if(cat == "rent"){
|
||||
clicked('views/rent/rent.html',true,false,{},{city:this.searchDistricts[index].city,region:this.searchDistricts[index].region,name:this.searchDistricts[index].name})
|
||||
if(cat == "rent"){
|
||||
clicked('views/rent/rent.html',true,false,{},{city:this.histories[index].city,region:this.histories[index].region,name:this.histories[index].name})
|
||||
}else{
|
||||
clicked('views/district/detail.html',true,false,{},{city:this.histories[index].city,region:this.histories[index].region,name:this.histories[index].name});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,48 +32,57 @@ Vue.component('base-info-component', {
|
||||
<div class="col-50">
|
||||
<p>
|
||||
<label>竣工年代:</label>
|
||||
<span>{{finishBuildingDate}}</span>
|
||||
<span v-if="finishBuildingDate">{{finishBuildingDate}}</span>
|
||||
<span v-else>暂无数据</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label>容<small class="spacing01a"> </small>积<small class="spacing01a"> </small>率:</label>
|
||||
<span>{{cubagePercent}}</span>
|
||||
<span v-if="cubagePercent">{{cubagePercent}}</span>
|
||||
<span v-else>暂无数据</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label>绿<small class="spacing01a"> </small>化<small class="spacing01a"> </small>率:</label>
|
||||
<span>{{virescencePercent}}</span>
|
||||
<span v-if="virescencePercent">{{virescencePercent}}</span>
|
||||
<span v-else>暂无数据</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label>主力面积:</label>
|
||||
<span>{{moreArea}}</span>
|
||||
<span v-if="moreArea">{{moreArea}}</span>
|
||||
<span v-else>暂无数据</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label>开<small class="spacing01a"> </small>发<small class="spacing01a"> </small>商:</label>
|
||||
<span class="span01">{{developer}}</span>
|
||||
<span class="span01" v-if="developer">{{developer}}</span>
|
||||
<span v-else>暂无数据</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label>物业公司:</label>
|
||||
<span class="span01">{{estateCompany}}</span>
|
||||
<span class="span01" v-if="estateCompany">{{estateCompany}}</span>
|
||||
<span v-else>暂无数据</span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-50">
|
||||
<p>
|
||||
<label>总<small class="spacing01a"> </small>户<small class="spacing01a"> </small>数:</label>
|
||||
<span>{{householdCount}}</span>
|
||||
<span v-else>暂无数据</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label>停<small class="spacing01a"> </small>车<small class="spacing01a"> </small>位:</label>
|
||||
<span>{{carSiteCount}}</span>
|
||||
<span v-if="carSiteCount">{{carSiteCount}}</span>
|
||||
<span v-else>暂无数据</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label>物<small class="spacing01a"> </small>业<small class="spacing01a"> </small>费:</label>
|
||||
<span>{{estateCharge}}元/㎡/月</span>
|
||||
<span v-if="estateCharge">{{estateCharge}}元/㎡/月</span>
|
||||
<span v-else>暂无数据</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -159,7 +168,7 @@ Vue.component('base-info-component', {
|
||||
// loadNearDistrict(vo.lat2, vo.lng2);
|
||||
}else{
|
||||
$("#noDataDiv").show()
|
||||
//baseInfo.districtName = "小区详情"
|
||||
baseInfo.name = "小区详情"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ Vue.component('room-rent-component', {
|
||||
}
|
||||
rentPricesData.rentPrices = ret;
|
||||
|
||||
$("#roomDiv .cardRentWin").css("width",(6*ret.length)+"rem");
|
||||
$("#roomDiv .cardRentWin").css("width",(6.5*ret.length)+"rem");
|
||||
}else{
|
||||
$("#roomDiv").hide()
|
||||
}
|
||||
|
||||
@@ -311,11 +311,11 @@ $(document).ready(function () {
|
||||
|
||||
|
||||
<script>
|
||||
var t1 = window.setTimeout(loadMap,1000);
|
||||
var t1 = window.setInterval(loadMap,1000);
|
||||
function loadMap(){
|
||||
if(lng && lat){
|
||||
loadMapPoi();
|
||||
window.clearTimeout(t1);
|
||||
window.clearInterval(t1);
|
||||
}
|
||||
}
|
||||
/* 小区均价分析 */
|
||||
|
||||
@@ -208,13 +208,7 @@ function onPlusReady() {
|
||||
// el: '#baseInfo'
|
||||
//})
|
||||
|
||||
var t1 = window.setTimeout(loadMap,1000);
|
||||
function loadMap(){
|
||||
if(lng && lat){
|
||||
loadMapPoi();
|
||||
window.clearTimeout(t1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* 小区租金走势 */
|
||||
loadRentTrends(city, region, name);
|
||||
|
||||
Reference in New Issue
Block a user