aa
This commit is contained in:
@@ -56,7 +56,7 @@
|
|||||||
<!-- 动态封装部分 end -->
|
<!-- 动态封装部分 end -->
|
||||||
</div>
|
</div>
|
||||||
<div class="content-block" style="display: none;">
|
<div class="content-block" style="display: none;">
|
||||||
<p><a href="#" class="button button-big button-fill theme">立即评估</a></p>
|
<p><a onclick="openaddWindow()" class="button button-big button-fill theme">立即评估</a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -232,6 +232,11 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap
|
|||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
selectEvaluateList();
|
selectEvaluateList();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function openaddWindow(){
|
||||||
|
clicked('/views/house/add.html',true,false,{},{})
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
<div class="page-group">
|
<div class="page-group">
|
||||||
<div class="page page-current">
|
<div class="page page-current">
|
||||||
<header class="bar bar-nav">
|
<header class="bar bar-nav">
|
||||||
<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
|
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||||
<span class="icon icon-left"></span>
|
<span class="icon icon-left"></span>
|
||||||
</button>
|
</button>
|
||||||
<h1 class="title">评估报告</h1>
|
<h1 class="title">评估报告</h1>
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ $.config = {router: false}
|
|||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var lat = 31.2221;
|
/*var lat = 31.2221;
|
||||||
var lng = 121.359204;
|
var lng = 121.359204;
|
||||||
var city = "上海";
|
var city = "上海";
|
||||||
var address="广顺小区";
|
var address="广顺小区";
|
||||||
@@ -153,8 +153,36 @@ var minAvgPrice=50000;
|
|||||||
var maxAvgPrice=80000;
|
var maxAvgPrice=80000;
|
||||||
var areaTag=3;
|
var areaTag=3;
|
||||||
var tag="近地铁_公交多_买菜做饭_商超便利_爱逛街_在外面吃_近医疗_近幼儿园_近小学_近中学";
|
var tag="近地铁_公交多_买菜做饭_商超便利_爱逛街_在外面吃_近医疗_近幼儿园_近小学_近中学";
|
||||||
var orderBy=0;
|
var orderBy=0;*/
|
||||||
|
var lat;
|
||||||
|
var lng;
|
||||||
|
var city;
|
||||||
|
var address;
|
||||||
|
var travelTime;
|
||||||
|
var minAvgPrice;
|
||||||
|
var maxAvgPrice;
|
||||||
|
var areaTag;
|
||||||
|
var tag;
|
||||||
|
var orderBy;
|
||||||
var dataObj = [];
|
var dataObj = [];
|
||||||
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
|
//扩展API加载完毕,现在可以正常调用扩展API
|
||||||
|
|
||||||
|
function onPlusReady(){
|
||||||
|
var self = plus.webview.currentWebview();
|
||||||
|
lat = self.lat;
|
||||||
|
lng = self.lng;
|
||||||
|
city = self.city;
|
||||||
|
address = self.address;
|
||||||
|
travelTime = self.travelTime;
|
||||||
|
minAvgPrice = self.minAvgPrice;
|
||||||
|
maxAvgPrice = self.maxAvgPrice;
|
||||||
|
areaTag = self.areaTag;
|
||||||
|
tag = self.tag;
|
||||||
|
orderBy = self.orderBy;
|
||||||
|
init();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function init(){
|
function init(){
|
||||||
axios.get("/rest/intelligentHouse/aroundDetail", {
|
axios.get("/rest/intelligentHouse/aroundDetail", {
|
||||||
@@ -184,7 +212,6 @@ function init(){
|
|||||||
dataObj = $.parseJSON(response.data.data.houseListJson);
|
dataObj = $.parseJSON(response.data.data.houseListJson);
|
||||||
//加载区域
|
//加载区域
|
||||||
var regionList = response.data.data.regionList;
|
var regionList = response.data.data.regionList;
|
||||||
console.log(regionList);
|
|
||||||
var html = '<p class="buttons-row buttons-row01 buttons-row01a theme"><a class="button active">不限</a>';
|
var html = '<p class="buttons-row buttons-row01 buttons-row01a theme"><a class="button active">不限</a>';
|
||||||
for(var i=0;i<regionList.length;i++){
|
for(var i=0;i<regionList.length;i++){
|
||||||
if((i+1)%4 == 0){
|
if((i+1)%4 == 0){
|
||||||
@@ -206,7 +233,6 @@ function init(){
|
|||||||
console.log(error);
|
console.log(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
init();
|
|
||||||
function turnMap(){
|
function turnMap(){
|
||||||
var city = $("#city").val();
|
var city = $("#city").val();
|
||||||
var address = $("#address").val();
|
var address = $("#address").val();
|
||||||
|
|||||||
@@ -135,22 +135,35 @@ $.config = {router: false}
|
|||||||
<script type='text/javascript' src='../../js/validate.js' charset='utf-8'></script>
|
<script type='text/javascript' src='../../js/validate.js' charset='utf-8'></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
//document.addEventListener('plusready', onPlusReady, false);
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
var lat = 31.2221;
|
var lat = 31.2221;
|
||||||
var lng = 121.359204;
|
var lng = 121.359204;
|
||||||
var city = "上海";
|
var city = "上海";
|
||||||
var address="广顺小区";
|
var address="广顺小区";
|
||||||
var outTime="20分钟";
|
var outTime="20分钟";
|
||||||
var budget=500;
|
var budget=500;
|
||||||
var area="90-110㎡";
|
var area="90-110㎡";
|
||||||
|
//var houseListJson=[]
|
||||||
|
/*var lat;
|
||||||
|
var lng;
|
||||||
|
var city;
|
||||||
|
var address;
|
||||||
|
var outTime;
|
||||||
|
var budget;
|
||||||
|
var area;*/
|
||||||
var houseListJson=[]
|
var houseListJson=[]
|
||||||
|
var mapConfig = {}
|
||||||
//扩展API加载完毕,现在可以正常调用扩展API
|
//扩展API加载完毕,现在可以正常调用扩展API
|
||||||
/*function onPlusReady(){
|
function onPlusReady(){
|
||||||
var self = plus.webview.currentWebview();
|
var self = plus.webview.currentWebview();
|
||||||
houseStatus = self.houseStatus;
|
lat = self.lat;
|
||||||
}*/
|
lng = self.lng;
|
||||||
var mapConfig = {
|
city = self.city;
|
||||||
|
address = self.address;
|
||||||
|
outTime = self.outTime;
|
||||||
|
budget = self.budget;
|
||||||
|
area = self.area;
|
||||||
|
mapConfig = {
|
||||||
isFirstLoad: true,
|
isFirstLoad: true,
|
||||||
datas: {
|
datas: {
|
||||||
// myIcon: "<div class='positionIcon'></div>",
|
// myIcon: "<div class='positionIcon'></div>",
|
||||||
@@ -194,6 +207,7 @@ var mapConfig = {
|
|||||||
this.mapObj = new BMap.Map("map", {minZoom:this.datas.minZoom,maxZoom:this.datas.maxZoom})
|
this.mapObj = new BMap.Map("map", {minZoom:this.datas.minZoom,maxZoom:this.datas.maxZoom})
|
||||||
}
|
}
|
||||||
this.mapObj.enableScrollWheelZoom();
|
this.mapObj.enableScrollWheelZoom();
|
||||||
|
alert(this.datas.center.lat);
|
||||||
this.mapObj.centerAndZoom(this.datas.center, this.datas.zoom);
|
this.mapObj.centerAndZoom(this.datas.center, this.datas.zoom);
|
||||||
var that = this;
|
var that = this;
|
||||||
|
|
||||||
@@ -476,8 +490,17 @@ var mapConfig = {
|
|||||||
localSearch.search(region);
|
localSearch.search(region);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
mapInit();
|
||||||
$(document).ready(function(){
|
//setTimeout("mapInit()","1000");
|
||||||
|
}
|
||||||
|
function mapInit(){
|
||||||
|
/*lat = 31.2221;
|
||||||
|
lng = 121.359204;
|
||||||
|
city = "上海";
|
||||||
|
address="广顺小区";
|
||||||
|
outTime="20分钟";
|
||||||
|
budget=500;
|
||||||
|
area="90-110㎡";*/
|
||||||
axios.get("/rest/intelligentHouse/mapDetail", {
|
axios.get("/rest/intelligentHouse/mapDetail", {
|
||||||
params: {
|
params: {
|
||||||
city: city,
|
city: city,
|
||||||
@@ -490,7 +513,6 @@ $(document).ready(function(){
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
console.log(response)
|
|
||||||
houseListJson = response.data.data.houseListJson;
|
houseListJson = response.data.data.houseListJson;
|
||||||
$("#city").val(response.data.data.city);
|
$("#city").val(response.data.data.city);
|
||||||
$("#address").val(response.data.data.address);
|
$("#address").val(response.data.data.address);
|
||||||
@@ -501,6 +523,7 @@ $(document).ready(function(){
|
|||||||
$("#minAvgPrice").val(response.data.data.minAvgPrice);
|
$("#minAvgPrice").val(response.data.data.minAvgPrice);
|
||||||
$("#maxAvgPrice").val(response.data.data.maxAvgPrice);
|
$("#maxAvgPrice").val(response.data.data.maxAvgPrice);
|
||||||
$("#houseNum").text(response.data.data.houseNum);
|
$("#houseNum").text(response.data.data.houseNum);
|
||||||
|
//mapInit();
|
||||||
mapConfig.init()
|
mapConfig.init()
|
||||||
$('#map').on('click', ".positionBox .close", function (e) {
|
$('#map').on('click', ".positionBox .close", function (e) {
|
||||||
mapConfig.hidePopWin()
|
mapConfig.hidePopWin()
|
||||||
@@ -509,7 +532,25 @@ $(document).ready(function(){
|
|||||||
.catch(function (error) {
|
.catch(function (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
});
|
});
|
||||||
})
|
}
|
||||||
|
//mapInit()
|
||||||
|
$(document).ready(function(){
|
||||||
|
|
||||||
|
});
|
||||||
|
/*var t1;
|
||||||
|
function mapInit(){
|
||||||
|
t1 = window.setTimeout(loadMap,1000);
|
||||||
|
}
|
||||||
|
|
||||||
|
function loadMap(){
|
||||||
|
if(lng && lat){
|
||||||
|
mapConfig.init();
|
||||||
|
window.clearTimeout(t1);
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function getAroundList(){
|
function getAroundList(){
|
||||||
var city = $("#city").val();
|
var city = $("#city").val();
|
||||||
var address = $("#address").val();
|
var address = $("#address").val();
|
||||||
|
|||||||
@@ -101,7 +101,7 @@
|
|||||||
<i class="icon icon-home01"></i>
|
<i class="icon icon-home01"></i>
|
||||||
<span>我的房产</span>
|
<span>我的房产</span>
|
||||||
</div>
|
</div>
|
||||||
<div @click="openIntelligentHouseView()">
|
<div onclick="openIntelligentHouseView()">
|
||||||
<i class="icon icon-home02"></i>
|
<i class="icon icon-home02"></i>
|
||||||
<span>智能选房</span>
|
<span>智能选房</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -120,7 +120,7 @@
|
|||||||
<div class="content-block-title cardNearbyName" id="nearAddress"><i class="icon icon-address02"></i><span id="nearDistrictSpan"></span><i class="icon arrow-up"></i></div>
|
<div class="content-block-title cardNearbyName" id="nearAddress"><i class="icon icon-address02"></i><span id="nearDistrictSpan"></span><i class="icon arrow-up"></i></div>
|
||||||
<div class="cardNearbyBox" id="nearDistricts">
|
<div class="cardNearbyBox" id="nearDistricts">
|
||||||
</div>
|
</div>
|
||||||
<div class="content-block-title recommend">今日推荐</div>
|
<div class="content-block-title recommend" id="todayNews">今日推荐</div>
|
||||||
<div id="newsList">
|
<div id="newsList">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -1212,6 +1212,7 @@ var scoreCount = 0;
|
|||||||
var lat = 0;
|
var lat = 0;
|
||||||
var lng = 0;
|
var lng = 0;
|
||||||
var address = "";
|
var address = "";
|
||||||
|
var cat;
|
||||||
var timestamp1 = new Date().getTime();
|
var timestamp1 = new Date().getTime();
|
||||||
document.addEventListener('plusready', onPlusReady, false);
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
//扩展API加载完毕,现在可以正常调用扩展API
|
//扩展API加载完毕,现在可以正常调用扩展API
|
||||||
@@ -1537,6 +1538,11 @@ function initNews(page){
|
|||||||
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||||
$.detachInfiniteScroll($('.infinite-scroll'));
|
$.detachInfiniteScroll($('.infinite-scroll'));
|
||||||
}
|
}
|
||||||
|
if(page==1 && response.data.data.list.length == 0){
|
||||||
|
$("#todayNews").hide();
|
||||||
|
}else{
|
||||||
|
$("#todayNews").show();
|
||||||
|
}
|
||||||
for(var i in response.data.data.list){
|
for(var i in response.data.data.list){
|
||||||
dataObj.push(response.data.data.list[i])
|
dataObj.push(response.data.data.list[i])
|
||||||
}
|
}
|
||||||
@@ -2604,10 +2610,7 @@ function openNewsView(newId) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function openIntelligentHouseView() {
|
function openIntelligentHouseView() {
|
||||||
mui.openWindow({
|
clicked('views/intelligentHouse/index.html',true,false,{},{})
|
||||||
url: 'views/intelligentHouse/index.html',
|
|
||||||
id:'index.html'
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
function openDistWindow(city, region, name){
|
function openDistWindow(city, region, name){
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user