Merge branch 'YOUFANGAPP1.1.1' of 192.168.0.27:dev0/youfang-app into xh-youfangApp1.0.4
@@ -1,11 +1,11 @@
|
||||
/**服务端地址**/
|
||||
var BASE_PATH = "http://youfang.fangjia.com";
|
||||
//var BASE_PATH = "http://youfang.fangjia.com";
|
||||
//var BASE_PATH = "http://192.168.10.128:8084";
|
||||
//var BASE_PATH = "http://192.168.10.47:8086";
|
||||
//var BASE_PATH = "http://192.168.10.161:8084";
|
||||
//var BASE_PATH = "http://192.168.10.47:8086";
|
||||
var BASE_PATH = "http://192.168.10.53:8084";
|
||||
//var BASE_PATH = "http://192.168.10.161:8084";
|
||||
//var BASE_PATH = "http://192.168.10.53:8084";
|
||||
//var BASE_PATH = "http://192.168.10.170:8084";
|
||||
//var BASE_PATH = "http://192.168.10.171:8084";
|
||||
/**是否显示过启动页面**/
|
||||
var lauchFlag = false;
|
||||
@@ -30,7 +30,7 @@ header {
|
||||
font-size: 17px;
|
||||
text-align: center;
|
||||
line-height: 44px;
|
||||
background: #D74B28;
|
||||
background: #FFF;
|
||||
/*background: -webkit-linear-gradient(top,rgba(215,75,40,1),rgba(215,75,40,0.8));*/
|
||||
z-index: 9999;
|
||||
/*border-bottom: 1px solid rgba(215,75,40,0.8);*/
|
||||
|
||||
@@ -12,6 +12,7 @@ em{font-style:normal;color:#333;}
|
||||
em.up{color:#EB5F34;}
|
||||
em.down{color:#88D053;}
|
||||
*/
|
||||
::../../images{display:none;}
|
||||
.dn{display:none;}
|
||||
.di{display:inline;}
|
||||
|
||||
@@ -450,7 +451,6 @@ input::-webkit-input-placeholder{
|
||||
.cardNearbyName{margin-top:0;margin-bottom:0;padding-bottom:0.3rem;}
|
||||
.cardNearbyName span{font-size:0.75rem;}
|
||||
.cardNearbyBox{width:100%;background:#f3f3f3;overflow-x:auto;}
|
||||
.cardNearbyBox::-webkit-scrollbar{display:none;}
|
||||
.cardNearbyWin{width:22.5rem;margin-left:0.25rem;overflow:hidden;}
|
||||
.cardNearby{width:6.75rem;border-radius:0.16rem;float:left;margin-right:0;color:#333;}
|
||||
.cardNearby div{padding-top:0;padding-bottom:0;}
|
||||
@@ -459,14 +459,13 @@ input::-webkit-input-placeholder{
|
||||
.cardNearby .card-footer{font-size:0.65rem;color:#999;min-height:1.5rem;margin-top:-0.2rem;}
|
||||
|
||||
.cardNearbyBox01{background:none;margin-top:-0.5rem;}
|
||||
.cardNearbyBox01 .cardNearbyWin{margin-bottom:0.25rem;}
|
||||
.cardNearbyBox01 .cardNearby../../images{margin-bottom:0.25rem;}
|
||||
.cardNearbyBox01 .cardNearby{border:solid 1px #e7e7e7;}
|
||||
.cardNearbyBox01 .cardNearby .card-header{padding-top:0.25rem;line-height:1.2rem;}
|
||||
|
||||
.arrow-up{font-size:0;line-height:0;border-width:10px;border-color:#f3f3f3;border-top-width:0;border-style:dashed;border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent;position:absolute;bottom:0;left:16%;}
|
||||
|
||||
.cardRentBox{width:100%;background:#fff;overflow-x:auto;border-bottom:solid 1px #e7e7e7;}
|
||||
.cardRentBox::-webkit-scrollbar{display:none;}
|
||||
.cardRentWin{width:25rem;overflow:hidden;margin-left:0.75rem;border-left:solid 1px #e7e7e7;}
|
||||
.cardRent{border-radius:0;border-right:solid 1px #e7e7e7;box-shadow:none;float:left;margin:0;}
|
||||
.cardRent .card-content-inner{font-size:0.7rem;color:#EB5F34;padding:0.5rem 0.75rem;}
|
||||
@@ -699,6 +698,7 @@ input::-webkit-input-placeholder{
|
||||
.topic .topicTitle > div:nth-child(2){text-align:right;float:right;}
|
||||
.topic .topicTitle > div:nth-child(2) p label{color:#999;}
|
||||
.topic .topicTitle > div:nth-child(2) p em{color:#EB5F34;}
|
||||
|
||||
.topic .topicTitle.topicTitle01{border-bottom:none;}
|
||||
.topic .topicContent .topicTitle01{color:#333;margin-top:0;font-size:0.8rem;}
|
||||
.topic .topicContent .topicTitle01 em{font-size:1.2rem;}
|
||||
@@ -854,6 +854,14 @@ input::-webkit-input-placeholder{
|
||||
/* 图表 */
|
||||
.chart{width:100%;height:250px;}
|
||||
.chart tspan{font-size:0.6rem;text-shadow:none;}
|
||||
.chart01Box{height:270px;position:relative;}
|
||||
#chart01a{height:270px;position:absolute;z-index:1;}
|
||||
#chart01{height:270px;position:absolute;z-index:-1;}
|
||||
.topic .topicTitle > div.icon01Box{overflow:hidden;float:none;display:inline-block;vertical-align:middle;}
|
||||
.icon-chart01a{width:0.9rem;height:0.8rem;background:url(../images/icon-chart01a.png) no-repeat center center;background-size:100%;float:left;}
|
||||
.icon-chart01{width:0.9rem;height:0.8rem;background:url(../images/icon-chart01.png) no-repeat center center;background-size:100%;float:left;}
|
||||
|
||||
|
||||
/*
|
||||
#tabChart{width:100%;height:360px;}
|
||||
#tabChart1{width:100%;position:absolute;z-index:1;}
|
||||
@@ -884,6 +892,7 @@ input::-webkit-input-placeholder{
|
||||
.buttons-row01 .button{border-radius:0.1rem;margin-left:0.5rem;padding:0;font-size:0.65rem;}
|
||||
.buttons-row01 .button:first-child,.buttons-row01 .button:last-child{border-radius:0.1rem;}
|
||||
.buttons-row01a .button{width:22%;}
|
||||
.buttonBox .button{border-radius:0.15rem;border-color:#D7D7D7;font-size:0.65rem;color:#333;margin-bottom:0.5rem;padding:0;}
|
||||
|
||||
.topic .topicTitle > div.content-block.content-block01{position:relative;float:none;}
|
||||
.content-block01 .buttons-row.theme{width:100%;border-bottom:solid 1px #e7e7e7;}
|
||||
@@ -1136,6 +1145,10 @@ input::-webkit-input-placeholder{
|
||||
|
||||
.tabs .noData img{width:30%;margin:0 auto;margin-top:3rem;}
|
||||
|
||||
.topic .topicContent.homeBox{overflow-x:auto;}
|
||||
.topic .topicContent .topicContent_center.homeWin{width:540px;overflow:hidden;}
|
||||
.topic .topicContent .topicContent_center.homeWin div{width:90px;}
|
||||
|
||||
/* 出错页面 */
|
||||
.contentError{padding-top:30%;}
|
||||
.contentError img{width:30%;margin:0 auto;}
|
||||
@@ -1294,9 +1307,7 @@ input[type=range]::-webkit-slider-thumb {
|
||||
.contentStart{background:#F18D00;}
|
||||
.contentStart .time{width:65px;height:30px;line-height:1.6rem;text-align:center;font-size:0.7rem;color:#fff;background:rgba(0,0,0,0.3);border-radius:1.25rem;display:block;position:absolute;top:0.75rem;right:0.75rem;z-index:4;}
|
||||
.contentStart #time{font-size:0.7rem;vertical-align:middle;}
|
||||
.contentStart .startImg01{width:50%;position:absolute;top:30%;left:50%;margin-left:-25%;z-index:3;}
|
||||
.contentStart .startImg02{width:100%;position:absolute;bottom:0;z-index:2;}
|
||||
.contentStart .startImg03{width:100%;position:absolute;top:0;z-index:1;}
|
||||
.contentStart .startImg{width:100%;}
|
||||
|
||||
/* 引导页 */
|
||||
.swiper-container{width:100%;height:100%;background:#fff;z-index:10000;}
|
||||
|
||||
@@ -245,6 +245,8 @@ html:not(.watch-active-state) .theme label.label-radio:active,
|
||||
.buttons-row.theme .button{border-color:#D7D7D7;color:#999;}
|
||||
.buttons-row.theme .button.active{background:none;border-color:#F18D00;color:#F18D00;}
|
||||
.buttons-row01.theme .button{color:#333;}
|
||||
.buttonBox .button.active{background:none;border-color:#F18D00;color:#F18D00;}
|
||||
.buttonBox .button:active{background:none;border-color:#F18D00;color:#F18D00;}
|
||||
|
||||
.selectBox div.theme{background:none;}
|
||||
.selectBox div.theme.active{color:#F18D00;}
|
||||
|
||||
@@ -36,7 +36,10 @@
|
||||
<em>网络加载异常</em>
|
||||
<p>请返回重试或检查网络设置</p>
|
||||
<div class="content-block">
|
||||
<p><a onclick="plus.runtime.restart()" class="button button-big button-round theme">返回重试</a></p>
|
||||
<p>
|
||||
<a onclick="plus.runtime.restart()" class="button button-big button-round theme">重启应用</a>
|
||||
<a onclick="back(),plus.nativeUI.closeWaiting();" class="button button-big button-round theme">返回刷新</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 95 KiB |
|
After Width: | Height: | Size: 110 KiB |
|
After Width: | Height: | Size: 188 KiB |
|
After Width: | Height: | Size: 580 B |
|
After Width: | Height: | Size: 869 B |
|
After Width: | Height: | Size: 420 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.6 KiB |
@@ -0,0 +1,105 @@
|
||||
function loanCalculat(){
|
||||
|
||||
var loanPrice = $("input[name=loanPrice]").val();
|
||||
if(loanPrice=="" || loanPrice=="0"){
|
||||
$("#price_error").show();
|
||||
return false;
|
||||
}else{
|
||||
$("#price_error").hide();
|
||||
}
|
||||
|
||||
var rate = $("input[name=rate]").val();
|
||||
if(rate=="" || rate=="0"){
|
||||
$("#rate_error").show();
|
||||
return false;
|
||||
}else{
|
||||
$("#rate_error").hide();
|
||||
}
|
||||
|
||||
var repaymentWay = $("select[name=repaymentWay]").val();//贷款方式
|
||||
var amount = parseFloat(loanPrice);//贷款金额
|
||||
var month = parseInt($("select[name=loanMonth]").val());//贷款年限
|
||||
rate = parseFloat(rate);//年利率
|
||||
|
||||
|
||||
if(repaymentWay == "1"){
|
||||
var payMonth = getPayMonth1(amount, month, rate);
|
||||
var totalInterest = getTotalInterest1(payMonth, month, amount);
|
||||
$("#payMonth").html(payMonth.toFixed(3)+"<label>元</label>");
|
||||
$("#interest").html(totalInterest.toFixed(2)+"<label>元</label>");
|
||||
$("#payTotalPrice").html((totalInterest+amount*10000).toFixed(2)+"<label>元</label>");
|
||||
}else if(repaymentWay == "2"){
|
||||
var firstMonthPay = getPayMonth2(amount, month, rate);
|
||||
|
||||
var totalInterest = getTotalInterest2(amount, month, rate);
|
||||
var lessPrice = getLessMonth(amount, month, rate);
|
||||
|
||||
$("#interest").html(totalInterest.toFixed(2)+"<label>元</label>");
|
||||
$("#payTotalPrice").html((totalInterest+amount*10000).toFixed(2)+"<label>元</label>");
|
||||
|
||||
var s = "";
|
||||
for(var i=1;i<=month;i++){
|
||||
if(i!=1){
|
||||
firstMonthPay = firstMonthPay - lessPrice;
|
||||
}
|
||||
s = s + "<p>"+i+"期,"+firstMonthPay.toFixed(2)+"元</p>"
|
||||
}
|
||||
$("#payMonth").html(s);
|
||||
}
|
||||
}
|
||||
|
||||
//每月还款额(等额本息还款法)
|
||||
function getPayMonth1(amount, month, rate) {
|
||||
var monthRate = rate / 1200;
|
||||
var b = Math.pow(1 + monthRate, month) - 1;
|
||||
return amount * 10000 * monthRate * Math.pow(1 + monthRate, month) / b;
|
||||
}
|
||||
|
||||
/**
|
||||
* (等额本息还款法)
|
||||
* 总利息=每月还款额*还款月数-贷款额
|
||||
* payMonth:月供(元)
|
||||
* month:贷款月数
|
||||
* amount:贷款金额(万元)
|
||||
*/
|
||||
function getTotalInterest1(payMonth, month, amount) {
|
||||
return payMonth * month - amount * 10000;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* (等额本金还款法)
|
||||
* 首月还款额=贷款额/还款月数+贷款额*月利率
|
||||
* amount:贷款金额(万元)
|
||||
* month:贷款月数
|
||||
* rate:年利率
|
||||
*/
|
||||
function getPayMonth2(amount, month, rate) {
|
||||
var monthRate = rate / 1200;
|
||||
return amount * 10000 / month + amount * 10000 * monthRate;
|
||||
}
|
||||
|
||||
/**
|
||||
* (等额本金还款法)
|
||||
* 总利息=贷款额*月利率*(还款月数+1)/2
|
||||
* amount:贷款金额(万元)
|
||||
* month:贷款月数
|
||||
* rate:年利率
|
||||
*/
|
||||
function getTotalInterest2(amount, month, rate) {
|
||||
var monthRate = rate / 1200;
|
||||
return amount * 10000 * monthRate * (month + 1) / 2;
|
||||
}
|
||||
|
||||
/**
|
||||
* (等额本金还款法)
|
||||
* 还款每月递减额=贷款额/还款月数*月利率
|
||||
* amount:贷款金额(万元)
|
||||
* month:贷款月数
|
||||
* rate:年利率
|
||||
*/
|
||||
function getLessMonth(amount, month, rate) {
|
||||
var monthRate = rate / 1200;
|
||||
return amount * 10000 / month * monthRate;
|
||||
}
|
||||
@@ -12,9 +12,17 @@ var mapLoadCount = 0;
|
||||
function doAddCollect(){
|
||||
if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
|
||||
clicked('../user/codeSms.html',true,false,{},{},function(){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
doAddCollect();
|
||||
})
|
||||
return;
|
||||
@@ -32,7 +40,9 @@ function addCollect(){
|
||||
$(".collection01").hide();
|
||||
$(".collection02").show();
|
||||
$.toast("随时掌握小区动态");
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
@@ -49,7 +59,9 @@ function doRemoveCollect(){
|
||||
if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
|
||||
clicked('../user/codeSms.html',true,false,{},{},function(){
|
||||
doRemoveCollect();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
})
|
||||
return;
|
||||
} else {
|
||||
@@ -67,47 +79,61 @@ function removeCollect(){
|
||||
$(".collection01").show();
|
||||
$.toast("取消关注");
|
||||
}
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
plus.webview.getWebviewById('yfindex.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
/* button状态切换 */
|
||||
/*$("#trendTabDiv .button").on("click", function () {
|
||||
$(this).parent().children().removeClass("active");
|
||||
$(this).addClass("active");
|
||||
});
|
||||
*/
|
||||
/* 图表切换 */
|
||||
/*$("#tabAvgDiv").on("click", function () {
|
||||
$("#tabChart1").css("z-index","1");
|
||||
$("#tabChart2").css("z-index","-1");
|
||||
});
|
||||
$("#tabRentDiv").on("click", function () {
|
||||
$("#tabChart2").css("z-index","1");
|
||||
$("#tabChart1").css("z-index","-1");
|
||||
});*/
|
||||
|
||||
/*var t1 = window.setInterval(loadMap,1000);
|
||||
function loadMap(){
|
||||
mapLoadCount++;
|
||||
if(lng && lat){
|
||||
loadMapPoi();
|
||||
$("#mapDiv").show();
|
||||
window.clearInterval(t1);
|
||||
}else{
|
||||
if(mapLoadCount == 10){
|
||||
$("#mapDiv").hide();
|
||||
window.clearInterval(t1);
|
||||
}else{
|
||||
$("#mapDiv").hide();
|
||||
}
|
||||
//图表 初始化
|
||||
function inintChart(){
|
||||
var type = $("#trendDiv1 a.active").attr("t-v");
|
||||
/* 小区均价分析 */
|
||||
loadLineData(city, region, name, type)
|
||||
/* 小区租金走势 */
|
||||
loadRentTrends(city, region, name,2);
|
||||
}
|
||||
|
||||
function clickLineChart(type){
|
||||
|
||||
if(mode == "kLine"){
|
||||
loadKLineData(city, region, name, type)
|
||||
}else if(mode == "line"){
|
||||
loadLineData(city, region, name, type);
|
||||
}
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
/* 图表切换 */
|
||||
function lineChart() {
|
||||
mode = "kLine"
|
||||
$(".icon-chart01a").hide();
|
||||
$(".icon-chart01").show();
|
||||
$("#chart01a").css("z-index","-1");
|
||||
$("#chart01").css("z-index","1");
|
||||
var type = $("#trendDiv1 a.active").attr("t-v");
|
||||
loadKLineData(city, region, name, type);
|
||||
}
|
||||
function kLineChart() {
|
||||
mode = "line"
|
||||
$(".icon-chart01").hide();
|
||||
$(".icon-chart01a").show();
|
||||
$("#chart01").css("z-index","-1");
|
||||
$("#chart01a").css("z-index","1");
|
||||
var type = $("#trendDiv1 a.active").attr("t-v");
|
||||
loadLineData(city, region, name, type);
|
||||
};
|
||||
|
||||
|
||||
function showLoadRentTrends(type) {
|
||||
if(type == 3) {
|
||||
document.getElementById("trendDivTab3").setAttribute("class","tab-link button active");
|
||||
@@ -120,151 +146,42 @@ function showLoadRentTrends(type) {
|
||||
loadRentTrends(city, region, name,type);
|
||||
}
|
||||
|
||||
//小区详情
|
||||
function loadDistrictInfo(){
|
||||
axios.get("/rest/districts/detail", {
|
||||
params: {
|
||||
city: city,
|
||||
region:region,
|
||||
name: name
|
||||
}
|
||||
}).then(function (response) {
|
||||
var vo = response.data.data.detail
|
||||
var cityPrice = response.data.data.cityPrice
|
||||
var collected = response.data.data.collected
|
||||
if(cityPrice){
|
||||
baseInfo.cityPrice = cityPrice
|
||||
}
|
||||
if(collected){
|
||||
$(".collection02").show();
|
||||
$(".collection01").hide();
|
||||
}else{
|
||||
$(".collection02").hide();
|
||||
$(".collection01").show();
|
||||
}
|
||||
if(vo){
|
||||
if(vo.avgPrice){
|
||||
lat = vo.lat2;
|
||||
lng = vo.lng2;
|
||||
|
||||
//loadMapPoi();
|
||||
|
||||
baseInfo.city = vo.city
|
||||
baseInfo.region = vo.region
|
||||
baseInfo.address = vo.address;
|
||||
baseInfo.name = vo.name
|
||||
baseInfo.avgPrice = vo.avgPrice;
|
||||
baseInfo.oneMonthUpDownRange = vo.oneMonthUpDownRange;
|
||||
|
||||
if(vo.rank){
|
||||
baseInfo.priceRate = vo.rank.substring(0, vo.rank.indexOf("/"));
|
||||
}
|
||||
|
||||
//baseInfo.cityPrice = vo.cityPrice;
|
||||
|
||||
var finishDate = ""
|
||||
if(vo.finishBuildingDate){
|
||||
if(vo.finishBuildingDate.indexOf("~")!=-1){
|
||||
finishDate = vo.finishBuildingDate.replace("年","");
|
||||
}else{
|
||||
finishDate = vo.finishBuildingDate.substring(0,4)+"年"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
baseInfo.finishBuildingDate = finishDate;
|
||||
baseInfo.householdCount = vo.householdCount;
|
||||
baseInfo.cubagePercent = vo.cubagePercent;
|
||||
baseInfo.carSiteCount = vo.carSiteCount;
|
||||
baseInfo.virescencePercent = vo.virescencePercent;
|
||||
baseInfo.estateCharge = vo.estateCharge;
|
||||
baseInfo.moreArea = vo.moreArea;
|
||||
baseInfo.developer = vo.developer;
|
||||
baseInfo.estateCompany = vo.estateCompany;
|
||||
|
||||
address = vo.address;
|
||||
tags = vo.poiTags;
|
||||
|
||||
if(vo.poiTags){
|
||||
if(vo.poiTags.length>=3){
|
||||
baseInfo.tags = vo.poiTags.slice(0,3);
|
||||
}else{
|
||||
baseInfo.tags = vo.poiTags;
|
||||
}
|
||||
}
|
||||
|
||||
var starScore = response.data.data.starScore
|
||||
if(starScore && starScore > 0){
|
||||
var regionIndex = response.data.data.regionIndex
|
||||
var districtPoiCount = response.data.data.districtPoiCount
|
||||
|
||||
var schoolIndex = response.data.data.schoolIndex
|
||||
var arroundIndex = response.data.data.arroundIndex
|
||||
|
||||
var indexs = []
|
||||
indexs.push(vo.index);
|
||||
indexs.push(regionIndex);
|
||||
indexs.push(schoolIndex);
|
||||
indexs.push(arroundIndex);
|
||||
|
||||
/* 小区评级 */
|
||||
loadDistrictLevel(indexs);
|
||||
}else{
|
||||
$("#distLevelDiv").hide()
|
||||
}
|
||||
|
||||
|
||||
|
||||
}else{
|
||||
$("#noDataDiv").show()
|
||||
baseInfo.name = "小区详情"
|
||||
}
|
||||
function loadKLineData(city, region, name, type){
|
||||
if(type == "36"){
|
||||
if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
|
||||
clicked('../user/codeSms.html',true,false,{},{},function(){
|
||||
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
|
||||
}else{
|
||||
$("#trendDiv1 a").removeClass("active")
|
||||
$("a[t-v='36']").addClass("active")
|
||||
doLoadKLineData(city, region, name, type)
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
})
|
||||
return;
|
||||
} else {
|
||||
$("#trendDiv1 a").removeClass("active")
|
||||
$("a[t-v='36']").addClass("active")
|
||||
doLoadKLineData(city, region, name, type)
|
||||
}
|
||||
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}else{
|
||||
$("#trendDiv1 a").removeClass("active")
|
||||
if(type == 12){
|
||||
$("a[t-v='12']").addClass("active")
|
||||
}else{
|
||||
$("a[t-v='6']").addClass("active")
|
||||
}
|
||||
doLoadKLineData(city, region, name, type)
|
||||
}
|
||||
}
|
||||
|
||||
//附近小区
|
||||
/*function loadNearDistrict(lat, lng){
|
||||
axios.get("/rest/districts/nearDistrict", {
|
||||
params: {
|
||||
lat: lat,
|
||||
lng:lng
|
||||
}
|
||||
}).then(function (response) {
|
||||
var datas = response.data.data
|
||||
if(datas){
|
||||
var ret = []
|
||||
for(var v in datas){
|
||||
var o = datas[v]
|
||||
if(o.city == city && o.district == region && o.name == name){
|
||||
continue;
|
||||
}else{
|
||||
if(ret.length <= 5){
|
||||
ret.push(o);
|
||||
}
|
||||
}
|
||||
}
|
||||
baseInfo.nearDists = ret;
|
||||
|
||||
$("#nearDistDiv .cardNearbyWin").css("width",(7.5*ret.length)+"rem");
|
||||
}else{
|
||||
$("#nearDistDiv").hide()
|
||||
}
|
||||
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
|
||||
function loadKLineData(city, region, name){
|
||||
var type = $("#trendDiv1 a.active").attr("t-v");
|
||||
axios.get("/rest/trend/kData", {
|
||||
function doLoadKLineData(city, region, name, type){
|
||||
axios.get("/rest/trend/kData", {
|
||||
params: {
|
||||
city: city,
|
||||
region:region,
|
||||
@@ -313,9 +230,17 @@ function showTrends(v){
|
||||
if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
|
||||
clicked('../user/codeSms.html',true,false,{},{},function(){
|
||||
showTrends(v);
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
})
|
||||
return;
|
||||
} else {
|
||||
@@ -364,10 +289,10 @@ var option01 = {
|
||||
},
|
||||
formatter: function (params) {
|
||||
var res = params[0].seriesName + ' ' + params[0].name;
|
||||
res += '<br/> 月初 : ' + params[0].value[1];
|
||||
res += '<br/> 月末 : ' + params[0].value[2];
|
||||
res += '<br/> 最低 : ' + params[0].value[3];
|
||||
res += '<br/> 最高 : ' + params[0].value[4];
|
||||
res += '<br/> 月初 : ' + params[0].value[1]+ '元/㎡';
|
||||
res += '<br/> 月末 : ' + params[0].value[2]+ '元/㎡';
|
||||
res += '<br/> 最低 : ' + params[0].value[3]+ '元/㎡';
|
||||
res += '<br/> 最高 : ' + params[0].value[4]+ '元/㎡';
|
||||
return res;
|
||||
},
|
||||
position: function (pos, params, el, elRect, size) {
|
||||
@@ -408,7 +333,7 @@ var option01 = {
|
||||
axisLine: { lineStyle: { color: '#666' } },
|
||||
axisLabel: {
|
||||
formatter: function (value) {
|
||||
return echarts.format.formatTime('MM-dd', value);
|
||||
return echarts.format.formatTime('yyyy-MM', value);
|
||||
}
|
||||
},
|
||||
min: 'dataMin',
|
||||
@@ -534,13 +459,6 @@ var option01 = {
|
||||
};
|
||||
|
||||
|
||||
/*$("#trendDiv2 a").click(function(){
|
||||
$("#trendDiv2 a").removeClass("active")
|
||||
$(this).addClass("active")
|
||||
//var v = $(this).attr("t-v");
|
||||
loadRentTrends(city, region, name);
|
||||
});*/
|
||||
|
||||
/* 小区租金走势 */
|
||||
|
||||
function loadRentTrends(city, region, name, type){
|
||||
@@ -560,6 +478,9 @@ function loadRentTrends(city, region, name, type){
|
||||
var m = re.times;
|
||||
var pm = re.distMap
|
||||
var rooms = re.rooms;
|
||||
var estateType = re.estateType
|
||||
|
||||
var roomKeys = []
|
||||
|
||||
if(m && rooms.length>0){
|
||||
|
||||
@@ -568,6 +489,17 @@ function loadRentTrends(city, region, name, type){
|
||||
}
|
||||
for(var k in rooms){
|
||||
var room = rooms[k]
|
||||
roomKeys.push(room + "室");
|
||||
if(estateType && estateType.indexOf("别墅")>-1){
|
||||
if(room > 8){
|
||||
continue;
|
||||
}
|
||||
}else{
|
||||
if(room > 5){
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
var distM = pm[room];
|
||||
var distObj = new Object();
|
||||
var distDatas = new Array();
|
||||
@@ -582,14 +514,12 @@ function loadRentTrends(city, region, name, type){
|
||||
distObj.name = room+"室"
|
||||
distObj.data = distDatas;
|
||||
distObj.type = 'line';
|
||||
distObj.symbolSize = 0;
|
||||
distObj.symbolSize = 6;
|
||||
distObj.symbol = 'circle';
|
||||
series.push(distObj);
|
||||
//alert(distDatas);
|
||||
}
|
||||
//alert(categories);
|
||||
|
||||
//showRentChart(categories, series);
|
||||
showRentChart2(categories, series);
|
||||
showRentChart2(categories, series, roomKeys);
|
||||
}else{
|
||||
//没数据
|
||||
//$("#tabChart2").hide();
|
||||
@@ -603,13 +533,17 @@ function loadRentTrends(city, region, name, type){
|
||||
}
|
||||
|
||||
|
||||
function showRentChart2(categories, series){
|
||||
function showRentChart2(categories, series, roomDatas){
|
||||
var option03 = {
|
||||
tooltip: {
|
||||
trigger: 'axis',
|
||||
textStyle: {
|
||||
fontFamily: 'arial,华文细黑',
|
||||
fontSize: 12
|
||||
},
|
||||
formatter: function (params) {
|
||||
var res = params[0].name + ' <br/>' + "租金:"+params[0].value + '元/月';
|
||||
return res;
|
||||
}
|
||||
},
|
||||
grid:{
|
||||
@@ -621,6 +555,7 @@ function showRentChart2(categories, series){
|
||||
},
|
||||
color: ['#F88C9F', '#FFBF5C', '#AAD672', '#78CDE6', '#AE94E9'],
|
||||
legend: {
|
||||
data: roomDatas,
|
||||
y: 'bottom',
|
||||
textStyle: {
|
||||
fontFamily: '华文细黑',
|
||||
@@ -647,6 +582,7 @@ function showRentChart2(categories, series){
|
||||
},
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
scale: true,
|
||||
axisLine: {
|
||||
lineStyle: {
|
||||
color: '#ccc'
|
||||
@@ -733,3 +669,191 @@ function loadDistrictLevel(datas){
|
||||
var myChart03 = echarts.init(document.getElementById('chart03'));
|
||||
myChart03.setOption(option03,true);
|
||||
}
|
||||
|
||||
|
||||
//曲线图
|
||||
function loadLineData(city, region, name, type){
|
||||
//var type = $("#trendDiv1 a.active").attr("t-v");
|
||||
if(type == "36"){
|
||||
if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
|
||||
clicked('../user/codeSms.html',true,false,{},{},function(){
|
||||
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
|
||||
}else{
|
||||
$("#trendDiv1 a").removeClass("active")
|
||||
$("a[t-v='36']").addClass("active")
|
||||
doLoadLineData(city, region, name, type)
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
})
|
||||
return;
|
||||
} else {
|
||||
$("#trendDiv1 a").removeClass("active")
|
||||
$("a[t-v='36']").addClass("active")
|
||||
doLoadLineData(city, region, name, type)
|
||||
}
|
||||
}else{
|
||||
$("#trendDiv1 a").removeClass("active")
|
||||
if(type == 12){
|
||||
$("a[t-v='12']").addClass("active")
|
||||
}else{
|
||||
$("a[t-v='6']").addClass("active")
|
||||
}
|
||||
doLoadLineData(city, region, name, type)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function doLoadLineData(city, region, name, type){
|
||||
axios.get("/rest/trend/distTrends", {
|
||||
params: {
|
||||
city: city,
|
||||
region:region,
|
||||
name:name,
|
||||
type: type
|
||||
}
|
||||
}).then(function (response) {
|
||||
var distDatas = response.data.data.districtAvgZouShi
|
||||
var times = response.data.data.timeKeys
|
||||
if(times){
|
||||
var districtTrends = [];
|
||||
|
||||
for(var d in times){
|
||||
var t = times[d]
|
||||
|
||||
var distPrice = distDatas[t]
|
||||
if(distPrice){
|
||||
districtTrends.push(distPrice);
|
||||
}else{
|
||||
districtTrends.push(null);
|
||||
}
|
||||
}
|
||||
|
||||
//option01b.xAxis.data = times
|
||||
//option01b.series.data = districtTrends
|
||||
showLineChart(times, districtTrends);
|
||||
}
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function showLineChart(times, datas){
|
||||
var option01b = {
|
||||
tooltip: {
|
||||
triggerOn: 'none',
|
||||
transitionDuration: 0,
|
||||
confine: true,
|
||||
bordeRadius: 4,
|
||||
borderWidth: 1,
|
||||
borderColor: '#666',
|
||||
backgroundColor: 'rgba(255,255,255,0.9)',
|
||||
textStyle: {
|
||||
fontSize: 12,
|
||||
color: '#666'
|
||||
},
|
||||
formatter: function (params) {
|
||||
var res = params[0].name + ' <br/>' + "均价:"+params[0].value + '元/㎡';
|
||||
return res;
|
||||
},
|
||||
position: function (pos, params, el, elRect, size) {
|
||||
var obj = {
|
||||
top: 60
|
||||
};
|
||||
obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 5;
|
||||
return obj;
|
||||
}
|
||||
},
|
||||
grid:{
|
||||
x: 20,
|
||||
y: 10,
|
||||
x2: 20,
|
||||
y2: 60,
|
||||
top: 60,
|
||||
height: 120
|
||||
},
|
||||
color: ['#78CDE6'],
|
||||
dataZoom: [{
|
||||
realtime: false,
|
||||
start: 1,
|
||||
end: 99,
|
||||
top: 5,
|
||||
height: 20,
|
||||
handleIcon: 'M10.7,11.9H9.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z',
|
||||
handleSize: '120%'
|
||||
}],
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
boundaryGap: false,
|
||||
axisLine: {
|
||||
lineStyle: {
|
||||
color: '#ccc'
|
||||
}
|
||||
},
|
||||
axisLabel: {
|
||||
textStyle: {
|
||||
fontFamily: 'Arial, Verdana, sans-serif',
|
||||
color: '#666'
|
||||
}
|
||||
},
|
||||
axisPointer: {
|
||||
type: 'line',
|
||||
label: {show: false},
|
||||
triggerTooltip: true,
|
||||
handle: {
|
||||
show: true,
|
||||
margin: 50,
|
||||
color: '#F18D00'
|
||||
}
|
||||
},
|
||||
data: times,
|
||||
},
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
scale: true,
|
||||
position: 'right',
|
||||
axisLine: {
|
||||
lineStyle: {
|
||||
color: '#ccc'
|
||||
}
|
||||
},
|
||||
axisLabel: {
|
||||
inside: true,
|
||||
textStyle: {
|
||||
fontFamily: 'Arial, Verdana, sans-serif',
|
||||
color: '#666'
|
||||
}
|
||||
}
|
||||
},
|
||||
series: [
|
||||
{
|
||||
name: '',
|
||||
type: 'line',
|
||||
smooth: true,
|
||||
symbol: 'none',
|
||||
sampling: 'average',
|
||||
areaStyle: {
|
||||
normal: {
|
||||
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
||||
offset: 0,
|
||||
color: '#78CDE6'
|
||||
}, {
|
||||
offset: 1,
|
||||
color: '#fff'
|
||||
}])
|
||||
}
|
||||
},
|
||||
data: datas
|
||||
}
|
||||
]
|
||||
};
|
||||
var myChart01b = echarts.init(document.getElementById('chart01a'));
|
||||
myChart01b.setOption(option01b,true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -198,9 +198,17 @@ function clickTrend(city, type){
|
||||
if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
|
||||
clicked('../user/codeSms.html',true,false,{},{},function(){
|
||||
clickTrend(city, type);
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
})
|
||||
return;
|
||||
} else {
|
||||
@@ -543,9 +551,13 @@ function collectCity(city, type){
|
||||
if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
|
||||
clicked('../user/codeSms.html',true,false,{},{},function(){
|
||||
collectCity(city, type)
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
//plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
})
|
||||
return;
|
||||
} else {
|
||||
@@ -562,7 +574,9 @@ function collectCity(city, type){
|
||||
// plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
|
||||
},function(){
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
//loadMyCollectCity();
|
||||
});
|
||||
|
||||
@@ -602,13 +616,17 @@ function docollectCity(city, type){
|
||||
|
||||
//loadMyCollectCity();
|
||||
$("a[href='#tabQuotation1']").click();
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
//reloadMyFocus();
|
||||
//reloadCityPotentialRanking()
|
||||
//reloadCityIncreaseRanking()
|
||||
}else if(msg == "关注成功"){
|
||||
cityInfoVue.$data.collecd = true;
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
//reloadMyFocus();
|
||||
//reloadCityPotentialRanking()
|
||||
//reloadCityIncreaseRanking()
|
||||
|
||||
@@ -528,10 +528,18 @@ function showRegionInfo(city){
|
||||
function collectCity(city, index){
|
||||
if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
|
||||
clicked('../user/codeSms.html',true,false,{},{},function(){
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
collectCity(city)
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
|
||||
})
|
||||
return;
|
||||
|
||||
@@ -12,6 +12,12 @@ var searchDistVue = new Vue({
|
||||
}else{
|
||||
clicked('views/district/detail.html',true,false,{},{city:this.searchDistricts[index].city,region:this.searchDistricts[index].region,name:this.searchDistricts[index].name});
|
||||
}
|
||||
},
|
||||
clickDistrict:function(index){
|
||||
saveHistory({district:this.searchDistricts[index].region,name:this.searchDistricts[index].name,city:this.searchDistricts[index].city})
|
||||
$("#input_district").val(this.searchDistricts[index].name);
|
||||
$("input[name=region]").val(this.searchDistricts[index].region);
|
||||
$("input[name=city]").val(this.searchDistricts[index].city);
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -122,9 +128,30 @@ $("body").delegate(".open-about02", "click", function () {
|
||||
addHotDistricts($("#input_city").text());
|
||||
addHistory();
|
||||
$.popup(".popup-about02")
|
||||
$.popup(".popup-about02")
|
||||
$("input").blur()
|
||||
});
|
||||
|
||||
|
||||
/* 弹出置换小区搜索页面 */
|
||||
$("body").delegate(".open-about02b", "click", function () {
|
||||
$("#districtName").val("");
|
||||
if($("#input_city").text()==""){
|
||||
$.toast("请选择城市")
|
||||
return false;
|
||||
}
|
||||
|
||||
$('.historyList').show();
|
||||
$("#notFound").hide();
|
||||
$('.hotList').show();
|
||||
$('.searchList').hide();
|
||||
addHotDistricts($("#input_city").text());
|
||||
addHistoryFilter($("#input_city").text());
|
||||
$.popup(".popup-about02b")
|
||||
$("input").blur()
|
||||
});
|
||||
|
||||
|
||||
//添加热门小区
|
||||
function addHotDistricts(cityParam){
|
||||
axios.get(BASE_PATH+"/rest/districts/hotDistricts", {
|
||||
@@ -164,6 +191,11 @@ var historyVue = new Vue({
|
||||
}else{
|
||||
clicked('views/district/detail.html',true,false,{},{city:this.histories[index].city,region:this.histories[index].region,name:this.histories[index].name});
|
||||
}
|
||||
},
|
||||
clickDistrict:function(index){
|
||||
$("#input_district").val(this.histories[index].name);
|
||||
$("input[name=region]").val(this.histories[index].region);
|
||||
$("input[name=city]").val(this.histories[index].city);
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -183,6 +215,22 @@ function addHistory(){
|
||||
}*/
|
||||
}
|
||||
|
||||
function addHistoryFilter(curCity){
|
||||
var history = recover()
|
||||
if(history.length>0){
|
||||
histories = []
|
||||
$(history).each(function(){
|
||||
if(this.city==curCity){
|
||||
var map={city:this.city, region:this.district, name:this.name};
|
||||
histories.push(map)
|
||||
}
|
||||
})
|
||||
historyVue.histories=histories;
|
||||
|
||||
}/*else{
|
||||
$(".historyList #districtList").empty();
|
||||
}*/
|
||||
}
|
||||
//点击清空
|
||||
$("#clearSearchHistory").click(function(){
|
||||
//$.cookie('history',JSON.stringify([]) ,{ expires: 7});
|
||||
|
||||
@@ -78,10 +78,10 @@ function shareMessage(msg,s){
|
||||
var ss=shares['weixin'];
|
||||
ss&&ss.nativeClient&&(shareBts.push({title:'微信朋友圈',s:ss,x:'WXSceneTimeline'}),
|
||||
shareBts.push({title:'微信好友',s:ss,x:'WXSceneSession'}));
|
||||
ss=shares['qq'];
|
||||
/* ss=shares['qq'];
|
||||
ss&&ss.nativeClient&&shareBts.push({title:'QQ',s:ss});
|
||||
ss=shares['sinaweibo'];
|
||||
ss&&shareBts.push({title:'新浪微博',s:ss});
|
||||
ss&&shareBts.push({title:'新浪微博',s:ss});*/
|
||||
// 弹出分享列表
|
||||
shareBts.length>0?plus.nativeUI.actionSheet({title:'分享链接',cancel:'取消',buttons:shareBts},function(e){
|
||||
(e.index>0)&&shareAction(shareBts[e.index-1],true);
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
var versionUpdate = function(){
|
||||
var isAndroid = isAndroidUser();
|
||||
plus.runtime.getProperty(plus.runtime.appid, function(inf) {
|
||||
var localVersion =inf.version;
|
||||
var curVersion = versionInfo();
|
||||
if(parseFloat(localVersion)<curVersion.version){
|
||||
plus.nativeUI.alert( curVersion.updateDesc,
|
||||
var isAndroid = isAndroidUser();
|
||||
plus.runtime.getProperty(plus.runtime.appid, function(inf) {
|
||||
var localVersion = inf.version;
|
||||
var curVersion = versionInfo();
|
||||
if(compareVersion(localVersion, curVersion.version)){
|
||||
//判断升级方式(0:提示 1:静默)
|
||||
if(curVersion.upgradeType == 0){
|
||||
plus.nativeUI.alert(curVersion.updateDesc,
|
||||
function(){
|
||||
if(isAndroid){
|
||||
downApp()
|
||||
downApp();
|
||||
}else{
|
||||
plus.nativeUI.showWaiting("版本更新中...");
|
||||
var url='https://itunes.apple.com/cn/app/id1341557643?mt=8';
|
||||
@@ -15,12 +17,13 @@ var versionUpdate = function(){
|
||||
}
|
||||
}, "发现新版本", "立即升级"
|
||||
);
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
};
|
||||
}else if(curVersion.upgradeType == 1){
|
||||
//不区分Android 和 ios直接增量包更新(Android已测试,ios待测试)
|
||||
downAppWgt(curVersion.fileUrl);
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//判断是不是安卓系统
|
||||
var isAndroidUser = function(){
|
||||
@@ -33,8 +36,9 @@ var isAndroidUser = function(){
|
||||
}
|
||||
return isAndroid;
|
||||
}
|
||||
|
||||
//判断是否需要安装
|
||||
var versionInfo = function(){
|
||||
var versionInfo = function(){
|
||||
var flag = null;
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
@@ -46,28 +50,29 @@ var versionInfo = function(){
|
||||
flag = data.data;
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
return flag;
|
||||
}
|
||||
|
||||
//下载后安装
|
||||
var downApp =function(){
|
||||
var url="http://app.fangjia.com/download/youfang.apk"; // 下载文件地址
|
||||
plus.nativeUI.showWaiting("下载wgt文件...");
|
||||
var downApp = function(){
|
||||
var url="http://app.fangjia.com/download/youfang.apk"; //下载文件地址
|
||||
plus.nativeUI.showWaiting("下载apk文件...");
|
||||
var dtask = plus.downloader.createDownload( url, {}, function ( d, status ) {
|
||||
if ( status == 200 ) { // 下载成功
|
||||
installWgt(d.filename)
|
||||
if (status == 200) {
|
||||
//下载成功
|
||||
install(d.filename);
|
||||
} else {//下载失败
|
||||
alert( "Download failed: " + status );
|
||||
plus.nativeUI.alert("Download failed: " + status);
|
||||
}
|
||||
plus.nativeUI.closeWaiting()
|
||||
plus.nativeUI.closeWaiting();
|
||||
});
|
||||
dtask.start();
|
||||
}
|
||||
|
||||
//安装
|
||||
function installWgt(path){
|
||||
plus.nativeUI.showWaiting("安装wgt文件...");
|
||||
function install(path){
|
||||
plus.nativeUI.showWaiting("安装apk文件...");
|
||||
plus.runtime.install(path,{},function(){
|
||||
plus.nativeUI.closeWaiting();
|
||||
plus.nativeUI.alert("应用资源更新完成!",function(){
|
||||
@@ -75,6 +80,82 @@ function installWgt(path){
|
||||
});
|
||||
},function(e){
|
||||
plus.nativeUI.closeWaiting();
|
||||
plus.nativeUI.alert("安装wgt文件失败["+e.code+"]:"+e.message);
|
||||
plus.nativeUI.alert("安装apk文件失败["+e.code+"]:"+e.message);
|
||||
});
|
||||
}
|
||||
|
||||
//静默安装下载
|
||||
var downAppWgt = function(url){
|
||||
var dtask = plus.downloader.createDownload( url, {}, function ( d, status ) {
|
||||
if (status == 200) {
|
||||
//下载成功
|
||||
installWgt(d.filename)
|
||||
} else {
|
||||
//下载失败
|
||||
}
|
||||
});
|
||||
dtask.start();
|
||||
}
|
||||
|
||||
/**
|
||||
* 静默安装
|
||||
* force: (Boolean 类型 )是否强制安装
|
||||
* true表示强制安装,不进行版本号的校验;false则需要版本号校验
|
||||
* @param {Object} path
|
||||
*/
|
||||
function installWgt(path){
|
||||
plus.runtime.install(path, {force:true}, function(){
|
||||
plus.runtime.restart();
|
||||
},function(e){
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 版本比较(添加时候已经控制版本格式xx.xx ~ xx.xx.xx)
|
||||
* @param {Object} _currentVersion 当前版本
|
||||
* @param {Object} _onLineVersion 系统最新上架版本
|
||||
*/
|
||||
function compareVersion(_currentVersion, _onLineVersion){
|
||||
try{
|
||||
var onLineVersion = _onLineVersion.split('.');
|
||||
var currentVersion = _currentVersion.split('.');
|
||||
//先比较第一位
|
||||
if(parseFloat(onLineVersion[0]) > parseFloat(currentVersion[0])){
|
||||
return true;
|
||||
}else if(parseFloat(onLineVersion[0]) == parseFloat(currentVersion[0])){
|
||||
//在比较第二位
|
||||
if(parseFloat(onLineVersion[1]) > parseFloat(currentVersion[1])){
|
||||
return true;
|
||||
}else if(parseFloat(onLineVersion[1]) == parseFloat(currentVersion[1])){
|
||||
//判断第三位是否存在,存在才可以进行比较
|
||||
if(onLineVersion.length > currentVersion.length){
|
||||
//如果当前输入的version大于maxVersion的length
|
||||
return true;
|
||||
}else if(onLineVersion.length == currentVersion.length){
|
||||
if(onLineVersion.length == 2){
|
||||
return false;
|
||||
}else{
|
||||
//当length相等,且存在第三位
|
||||
if(parseFloat(onLineVersion[2]) > parseFloat(currentVersion[2])){
|
||||
return true;
|
||||
}else if(parseFloat(onLineVersion[2]) == parseFloat(currentVersion[2])){
|
||||
return false;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}else{
|
||||
//如果当前输入的version小于maxVersion的length
|
||||
return false;
|
||||
}
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}catch(e){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -6,9 +6,10 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<link rel="stylesheet" href="css/sm.css">
|
||||
<link rel="stylesheet" href="css/mui.min.css">
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
|
||||
<style>
|
||||
.mui-bar-tab{background:#fff;box-shadow:none;}
|
||||
.mui-bar-tab .mui-tab-item{border-top:solid 1px #e7e7e7;}
|
||||
@@ -16,10 +17,18 @@
|
||||
.mui-bar-tab .mui-tab-item.mui-active .mui-icon{color:#F18D00;}
|
||||
.mui-bar-tab .mui-tab-item .mui-icon~.mui-tab-label{color:#C3C0BC;}
|
||||
.mui-bar-tab .mui-tab-item.mui-active .mui-icon~.mui-tab-label{color:#F18D00;}
|
||||
|
||||
.loadingBg{width:100%;height:100%;background:#fff;overflow:hidden;position:absolute;top:11px;left:0;z-index:100;}
|
||||
.loadingBg .infinite-scroll-preloader{margin-top:30%;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="loadingBg">
|
||||
<div class="infinite-scroll-preloader">
|
||||
<div class="preloader"></div>
|
||||
</div>
|
||||
</div>
|
||||
<nav class="mui-bar mui-bar-tab">
|
||||
<a class="mui-tab-item mui-active" id="defaultTab" href="yfindex.html">
|
||||
<span class="mui-icon iconfont icon-tab01"></span>
|
||||
@@ -88,6 +97,8 @@
|
||||
plus.navigator.setFullscreen(false);
|
||||
|
||||
} else {
|
||||
loadStartPage();
|
||||
|
||||
//显示启动导航
|
||||
mui.openWindow({
|
||||
id: 'guide',
|
||||
@@ -102,42 +113,16 @@
|
||||
autoShow: false
|
||||
}
|
||||
});
|
||||
setTimeout(function(){$(".loadingBg").hide();},1000)
|
||||
}
|
||||
// 加载菜单信息,控制是否显示贷款菜单
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url:BASE_PATH+"/rest/version/info",
|
||||
dataType:'json',
|
||||
async : false,
|
||||
success: function(data) {
|
||||
if(data.status){
|
||||
//存入localStorage Boolean类型变成String
|
||||
localStorage.setItem("showLoanMenu", data.data.showLoanMenu);
|
||||
}else{
|
||||
localStorage.setItem("showLoanMenu", false);
|
||||
}
|
||||
},
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||
localStorage.setItem("showLoanMenu", false);
|
||||
if(plus.webview.getWebviewById('error.html')==null){
|
||||
clicked('error.html',true,false,{},{},function(){
|
||||
window.location.reload();
|
||||
})
|
||||
}else{
|
||||
$(".loadingBg").hide();
|
||||
plus.nativeUI.closeWaiting();
|
||||
plus.webview.getWebviewById("error.html").show();
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
var self = plus.webview.currentWebview();
|
||||
for (var i = 0; i < 4; i++) {
|
||||
var temp = {};
|
||||
var sub = plus.webview.create(subpages[i], subpages[i], subpage_style);
|
||||
if (i > 0) {
|
||||
sub.hide();
|
||||
/*var sub = plus.webview.create(subpages[i], subpages[i], subpage_style);
|
||||
sub.hide();*/
|
||||
}else{
|
||||
var sub = plus.webview.create(subpages[i], subpages[i], subpage_style);
|
||||
temp[subpages[i]] = "true";
|
||||
mui.extend(aniShow,temp);
|
||||
}
|
||||
@@ -158,6 +143,9 @@
|
||||
//显示目标选项卡
|
||||
//若为iOS平台或非首次显示,则直接显示
|
||||
if(mui.os.ios||aniShow[targetTab]){
|
||||
if(plus.webview.getWebviewById(targetTab)==null){
|
||||
plus.webview.create(targetTab, targetTab, subpage_style)
|
||||
}
|
||||
plus.webview.show(targetTab);
|
||||
}else{
|
||||
//否则,使用fade-in动画,且保存变量
|
||||
@@ -184,6 +172,47 @@
|
||||
}
|
||||
});
|
||||
|
||||
// 加载启动页信息
|
||||
function loadStartPage() {
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url:BASE_PATH+"/rest/page/startPage",
|
||||
dataType:'json',
|
||||
async : false,
|
||||
success: function(resData) {
|
||||
if (resData.status) {
|
||||
var data = resData.data;
|
||||
if (data.imgUrl != null) {
|
||||
localStorage.setItem("startPageImgUrl", data.imgUrl);
|
||||
}
|
||||
if (data.startPageId != null) {
|
||||
localStorage.setItem("startPageId", data.startPageId);
|
||||
}
|
||||
if (data.url != null) {
|
||||
localStorage.setItem("startPageClickUrl", data.url);
|
||||
}
|
||||
localStorage.setItem("guidePageUrls",JSON.stringify(data.guideImgs));
|
||||
//存入localStorage Boolean类型变成String
|
||||
//加载菜单信息,控制是否显示贷款菜单
|
||||
localStorage.setItem("showLoanMenu", data.showLoanMenu);
|
||||
} else {
|
||||
localStorage.setItem("showLoanMenu", false);
|
||||
}
|
||||
},
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||
localStorage.setItem("showLoanMenu", false);
|
||||
if(plus.webview.getWebviewById('error.html')==null){
|
||||
clicked('error.html',true,false,{},{},function(){
|
||||
window.location.reload();
|
||||
})
|
||||
}else{
|
||||
$(".loadingBg").hide();
|
||||
plus.nativeUI.closeWaiting();
|
||||
plus.webview.getWebviewById("error.html").show();
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"id": "H5693FF3D",/*应用的标识,创建应用时自动生成,勿手动修改*/
|
||||
"name": "有房",/*应用名称,程序桌面图标名称*/
|
||||
"version": {
|
||||
"name": "1.1.1",/*应用版本名称*/
|
||||
"name": "1.1.6",/*应用版本名称*/
|
||||
"code": "20109"
|
||||
},
|
||||
"description": "有房,围绕房产提供全方位数据分析的房产及金融服务平台,通过个性化的智能推荐,定制专属的个人投资或购房计划,多维度管理自有房产并提供房产融资通道。",/*应用描述信息*/
|
||||
@@ -154,8 +154,8 @@
|
||||
],
|
||||
"frameworks": [], /*调用Native.js调用原生Objective-c API需要引用的FrameWork,如需调用GameCenter,则添加"GameKit.framework"*/
|
||||
"plistcmds": [
|
||||
"Set :NSLocationWhenInUseUsageDescription 根据您的位置信息,您可随时掌握所在位置周边房产的行情。",
|
||||
"Set :NSLocationAlwaysUsageDescription 根据您的位置信息,您可随时掌握所在位置周边房产的行情。"
|
||||
"Set :NSLocationAlwaysUsageDescription 根据您的位置信息,您可随时掌握所在位置周边房产的行情。",
|
||||
"Set :NSLocationWhenInUseUsageDescription 根据您的位置信息,您可随时掌握所在位置周边房产的行情。"
|
||||
]
|
||||
},
|
||||
"google": {
|
||||
|
||||
@@ -3,28 +3,37 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>掌上有房</title>
|
||||
<title>有房</title>
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||
<link rel="shortcut icon" href="/favicon.ico">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<link rel="stylesheet" href="css/sm.css">
|
||||
<link rel="stylesheet" href="css/light7-swiper.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/mui.min.css"/>
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
<link rel="stylesheet" href="css/theme-blue.css">
|
||||
<script src="config.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page-group" id="app">
|
||||
<div class="swiper-container guideSwiper dn" data-space-between="10">
|
||||
<div class="swiper-wrapper">
|
||||
<div class="swiper-slide" v-for="(img,index) in guideImgs">
|
||||
<img v-bind:src="img" class="guideImg01">
|
||||
<div class="content-block" v-if="index==guideImgs.length-1">
|
||||
<p><a class="button button-big theme">开启有房之旅</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="swiper-pagination"></div>
|
||||
</div>
|
||||
<div class="page page-current">
|
||||
<div class="content contentStart">
|
||||
<a class="time" onclick="skip()">跳过 <span id="time">5</span></a>
|
||||
<img src="images/startImg01.png" class="startImg01">
|
||||
<img src="images/startImg02.png" class="startImg02">
|
||||
<img src="images/startImg03.png" class="startImg03">
|
||||
<a class="time" @click="skip()">跳过 <span id="time">5</span></a>
|
||||
<img :src="imgUrl" class="startImg" @click="openView">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -40,30 +49,101 @@
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="js/common.js" charset="utf-8"></script>
|
||||
<script src="js/mui.min.js"></script>
|
||||
<script type="text/javascript" src="config.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="js/axios.min.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="js/axiosPlugin.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="js/vue.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="js/light7-swiper.min.js" ></script>
|
||||
|
||||
<script>
|
||||
mui.plusReady(function() {
|
||||
localStorage.removeItem("yf_guide_page_status")
|
||||
/* 引导页隐藏并进入首页 */
|
||||
$(document).on("click",".swiper-container .button", function () {
|
||||
$(".swiper-container").hide();
|
||||
lauchFlag = true;
|
||||
plus.navigator.setFullscreen(false);
|
||||
plus.webview.currentWebview().close();
|
||||
});
|
||||
|
||||
|
||||
new Vue({
|
||||
el: '#app',
|
||||
data: {
|
||||
imgUrl:"images/startImg.png",
|
||||
url:"",
|
||||
starImgId:"",
|
||||
guideImgs:[]
|
||||
},
|
||||
methods: {
|
||||
skip: function() {
|
||||
isRun = true;
|
||||
if (localStorage.getItem("yf_guide_page_status") == null && JSON.parse(localStorage.getItem("guidePageUrls")).length > 0) {
|
||||
$(".swiper-container").removeClass("dn");
|
||||
$(".swiper-container").swiper();
|
||||
localStorage.setItem("yf_guide_page_status", 1)
|
||||
} else {
|
||||
lauchFlag = true;
|
||||
plus.navigator.setFullscreen(false);
|
||||
plus.webview.currentWebview().close();
|
||||
}
|
||||
|
||||
});
|
||||
/* 5s倒计时后跳转页面 */
|
||||
function run(){
|
||||
var time = document.getElementById("time");
|
||||
if(time.innerHTML == 0){
|
||||
lauchFlag = true;
|
||||
},
|
||||
openView: function() {
|
||||
if (this.url != null && this.url != "") {
|
||||
// 记录点击次数
|
||||
if (this.starImgId != "") {
|
||||
axios.get("/rest/page/startPage/click", {params:{id:this.starImgId}})
|
||||
.then(function (response) {
|
||||
|
||||
})
|
||||
.catch(function (error) {
|
||||
|
||||
});
|
||||
}
|
||||
clicked('views/webview_embed.html', true,false,{},{url:this.url})
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted(){
|
||||
var startPageImgUrl = localStorage.getItem("startPageImgUrl")
|
||||
if (startPageImgUrl != null) {
|
||||
this.imgUrl = startPageImgUrl;
|
||||
}
|
||||
var startPageId = localStorage.getItem("startPageId")
|
||||
if (startPageId != null) {
|
||||
this.starImgId = startPageId;
|
||||
}
|
||||
var startPageClickUrl = localStorage.getItem("startPageClickUrl")
|
||||
if (startPageClickUrl != null) {
|
||||
this.url = startPageClickUrl;
|
||||
}
|
||||
this.guideImgs = JSON.parse(localStorage.getItem("guidePageUrls"))
|
||||
}
|
||||
});
|
||||
/* 5s倒计时后跳转页面 */
|
||||
var isShow = false;
|
||||
var isRun = false;
|
||||
function run(){
|
||||
if(isRun) {
|
||||
return false;
|
||||
}
|
||||
var time = document.getElementById("time");
|
||||
if(time.innerHTML == 0 && isShow == false) {
|
||||
isShow = true;
|
||||
if (localStorage.getItem("yf_guide_page_status") == null && JSON.parse(localStorage.getItem("guidePageUrls")).length > 0) {
|
||||
$(".swiper-container").removeClass("dn");
|
||||
$(".swiper-container").swiper();
|
||||
localStorage.setItem("yf_guide_page_status", 1)
|
||||
} else {
|
||||
lauchFlag = true;
|
||||
plus.navigator.setFullscreen(false);
|
||||
plus.webview.currentWebview().close();
|
||||
return false;
|
||||
}
|
||||
time.innerHTML = time.innerHTML * 1 - 1;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
window.setInterval("run();", 1000);
|
||||
|
||||
function skip() {
|
||||
lauchFlag = true;
|
||||
plus.navigator.setFullscreen(false);
|
||||
plus.webview.currentWebview().close();
|
||||
}
|
||||
time.innerHTML = time.innerHTML * 1 - 1;
|
||||
}
|
||||
window.setInterval("run();", 1000);
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -0,0 +1,407 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>置换方案建议</title>
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||
<link rel="shortcut icon" href="/favicon.ico">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
<link rel="stylesheet" href="../../css/city.css">
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
<style>
|
||||
.pstion{position:fixed;}
|
||||
@media(max-width:414px){
|
||||
.pstion{top:145px;}
|
||||
}
|
||||
@media(max-width:375px){
|
||||
.pstion{top:136px;}
|
||||
}
|
||||
@media(max-width:320px){
|
||||
.pstion{top:155px;}
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current">
|
||||
<header class="bar bar-nav barBorder">
|
||||
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
<h1 class="title">置换方案建议</h1>
|
||||
</header>
|
||||
<div class="content contentSuggest" id="resultDiv" v-cloak>
|
||||
<p>匹配出满足需求的<em>{{matchCount}}</em>个小区,智能推荐以下最合适的:</p>
|
||||
<div class="selectContainer">
|
||||
<div class="selectBox row">
|
||||
<div class="region col-33 theme" id="regionText"><a>区域</a><i class="icon icon-down"></i></div>
|
||||
<div class="filter col-33 theme" id="tagText"><a>小区标签</a><i class="icon icon-down"></i></div>
|
||||
<div class="order col-33 theme" id="priceText"><a>智能排序</a><i class="icon icon-down"></i></div>
|
||||
</div>
|
||||
<div class="selectContent">
|
||||
<div class="topic dn" id="select_region">
|
||||
<div class="topicContent" style="padding-bottom:0.25rem;">
|
||||
<div class="buttonBox row">
|
||||
<a class="button col-25 active" @click="clickRegion('',$event)">不限</a>
|
||||
<a class="button col-25" v-for="region in regions" @click="clickRegion(region,$event)">{{region}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="topic dn" id="select_filter">
|
||||
<div class="topicContent" style="padding-bottom:0.25rem;">
|
||||
<div class="buttonBox row">
|
||||
<a class="button col-25" @click="clickTag('',$event)">不限</a>
|
||||
<a class="button col-25" @click="clickTag('近地铁',$event)">近地铁</a>
|
||||
<a class="button col-25" @click="clickTag('公交多',$event)">公交多</a>
|
||||
<a class="button col-25" @click="clickTag('买菜做饭',$event)">买菜做饭</a>
|
||||
<a class="button col-25" @click="clickTag('商超便利',$event)">商超便利</a>
|
||||
<a class="button col-25" @click="clickTag('爱逛街',$event)">爱逛街</a>
|
||||
<a class="button col-25" @click="clickTag('在外面吃',$event)">在外面吃</a>
|
||||
<a class="button col-25" @click="clickTag('近医疗',$event)">近医疗</a>
|
||||
<a class="button col-25" @click="clickTag('近幼儿园',$event)">近幼儿园</a>
|
||||
<a class="button col-25" @click="clickTag('近小学',$event)">近小学</a>
|
||||
<a class="button col-25" @click="clickTag('近中学',$event)">近中学</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-block dn" id="select_order">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner" @click="clickPrice('', $event)">
|
||||
<div class="item-title theme active"><i class="icon icon-check"></i>智能排序</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item-content">
|
||||
<div class="item-inner" @click="clickPrice('asc', '均价低到高', $event)">
|
||||
<div class="item-title theme" ><i class="icon" ></i>均价低到高</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item-content">
|
||||
<div class="item-inner" @click="clickPrice('desc', '均价高到低', $event)">
|
||||
<div class="item-title theme" ><i class="icon" ></i>均价高到低</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content infinite-scroll infinite-scroll-bottom pstion" data-distance="50">
|
||||
<div class="list-block media-list">
|
||||
<ul class="list-container">
|
||||
|
||||
<li v-for="ob in results">
|
||||
<a class="item-content">
|
||||
<div class="item-inner" @click="clickDistrict(ob.city, ob.region, ob.name, ob.id)">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">{{ob.name}}</div>
|
||||
<div class="item-after"><em>¥{{ob.price}}元/㎡</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><i class="icon icon-address03"></i><small>{{ob.city}}{{ob.region}}{{ob.address}}</small></div>
|
||||
</div>
|
||||
<div class="item-subtitle">
|
||||
<span class="tag" >
|
||||
<small v-for="tagName in ob.tag">{{tagName}}</small>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<!-- 加载提示符 -->
|
||||
<div class="infinite-scroll-preloader">
|
||||
<div class="preloader"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content contentSuggest dn" id="noResultDiv">
|
||||
<div class="noData">
|
||||
<img src="../../images/noData.png">
|
||||
<p>抱歉,没有找到适合您的小区</p>
|
||||
<a click="updateChangeHouse()">修改置换需求</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||
Zepto = $
|
||||
$.config = {router: false}
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="../../js/vue.js"></script>
|
||||
<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../config.js"></script>
|
||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
|
||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||
|
||||
<script>
|
||||
var hsId = ""
|
||||
var hsId = "196310294262185984"
|
||||
var region = ""
|
||||
var tag = ""
|
||||
var sort = ""
|
||||
var baseInfo ;
|
||||
// 加载flag
|
||||
var loading = false;
|
||||
// 最多可加载的条目
|
||||
var maxItems = 100;
|
||||
// 每次加载添加多少条目
|
||||
var itemsPerLoad = 8;
|
||||
|
||||
initHouseSubtitution();
|
||||
|
||||
function initHouseSubtitution(){
|
||||
baseInfo = new Vue({
|
||||
el: '#resultDiv',
|
||||
data:{
|
||||
matchCount:0,
|
||||
regions:[],
|
||||
results:[]
|
||||
},
|
||||
methods:{
|
||||
loadHsInfo:function(){
|
||||
axios.get(BASE_PATH + "/rest/changeHouse/loadHouseSubtitution",{
|
||||
params:{
|
||||
hsId:hsId
|
||||
}
|
||||
}).then(function (response) {
|
||||
var hs = response.data.data;
|
||||
if(hs){
|
||||
var s = hs.intentionRegion
|
||||
if(s){
|
||||
var arrs = s.split("_")
|
||||
baseInfo.regions = arrs
|
||||
|
||||
}
|
||||
baseInfo.matchCount = hs.matchCount
|
||||
|
||||
if(hs.matchCount == 0){
|
||||
$("#noResultDiv").show()
|
||||
$("#resultDiv").hide()
|
||||
}
|
||||
}else{
|
||||
$("#noResultDiv").show()
|
||||
$("#resultDiv").hide()
|
||||
}
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
},
|
||||
clickRegion:function (tRegion, e){
|
||||
$("#select_region a").removeClass("active");
|
||||
$(event.target).addClass("active");
|
||||
$("#select_region").hide();
|
||||
$("#regionText i").removeClass("icon-up");
|
||||
region = tRegion
|
||||
if(tRegion!=""){
|
||||
$("#regionText a").text(tRegion);
|
||||
}
|
||||
$(".region").removeClass("active");
|
||||
$('.infinite-scroll-preloader').show();
|
||||
loading = false;
|
||||
$.attachInfiniteScroll($('.infinite-scroll'))
|
||||
addItems(itemsPerLoad, 0);
|
||||
},
|
||||
clickTag:function(tTag, e){
|
||||
$("#select_filter a").removeClass("active");
|
||||
$(event.target).addClass("active");
|
||||
$("#select_filter").hide();
|
||||
|
||||
$("#tagText i").removeClass("icon-up");
|
||||
tag = tTag
|
||||
if(tTag!=""){
|
||||
$("#tagText a").text(tTag);
|
||||
}
|
||||
$(".filter").removeClass("active");
|
||||
$('.infinite-scroll-preloader').show();
|
||||
loading = false;
|
||||
$.attachInfiniteScroll($('.infinite-scroll'))
|
||||
addItems(itemsPerLoad, 0);
|
||||
},
|
||||
clickPrice: function(sortWay, remark, e){
|
||||
|
||||
$("#select_order .item-title i").removeClass("icon-check");
|
||||
$("#select_order .item-title").removeClass("active");
|
||||
$(event.target).find(".item-title i").addClass("icon-check");
|
||||
$(event.target).find(".item-title i").parent().addClass("active");
|
||||
$(".order").removeClass("active");
|
||||
$("#priceText i").removeClass("icon-up");
|
||||
$("#select_order").hide();
|
||||
sort = sortWay
|
||||
if(sortWay!=""){
|
||||
$("#priceText a").text(remark);
|
||||
}
|
||||
$('.infinite-scroll-preloader').show();
|
||||
loading = false;
|
||||
$.attachInfiniteScroll($('.infinite-scroll'))
|
||||
addItems(itemsPerLoad, 0);
|
||||
},
|
||||
clickDistrict: function(city, region, name, rid){
|
||||
clicked('/views/district/detail.html',true,false,{},{city:city,region:region,name:name,rid:rid});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
hsId = self.hsId
|
||||
baseInfo.loadHsInfo();
|
||||
addItems(0, 0)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* 全部区域&小区标签&智能排序切换 */
|
||||
$(".region").on("click", function () {
|
||||
$(".mask").show();
|
||||
$("#select_region").show();
|
||||
$("#select_filter").hide();
|
||||
$("#select_order").hide();
|
||||
$(".region").addClass("active");
|
||||
$(".region i").addClass("icon-up");
|
||||
$(".filter").removeClass("active");
|
||||
$(".filter i").removeClass("icon-up");
|
||||
$(".order").removeClass("active");
|
||||
$(".order i").removeClass("icon-up");
|
||||
});
|
||||
|
||||
$(".filter").on("click", function () {
|
||||
$(".mask").show();
|
||||
$("#select_region").hide();
|
||||
$("#select_filter").show();
|
||||
$("#select_order").hide();
|
||||
$(".region").removeClass("active");
|
||||
$(".region i").removeClass("icon-up");
|
||||
$(".filter").addClass("active");
|
||||
$(".filter i").addClass("icon-up");
|
||||
$(".order").removeClass("active");
|
||||
$(".order i").removeClass("icon-up");
|
||||
});
|
||||
|
||||
$(".order").on("click", function () {
|
||||
$(".mask").show();
|
||||
$("#select_region").hide();
|
||||
$("#select_filter").hide();
|
||||
$("#select_order").show();
|
||||
$(".region").removeClass("active");
|
||||
$(".region i").removeClass("icon-up");
|
||||
$(".filter").removeClass("active");
|
||||
$(".filter i").removeClass("icon-up");
|
||||
$(".order").addClass("active");
|
||||
$(".order i").addClass("icon-up");
|
||||
});
|
||||
|
||||
/* 页面底部无限加载事件 */
|
||||
$.init()
|
||||
|
||||
|
||||
|
||||
function addItems(number, lastIndex) {
|
||||
|
||||
var url = BASE_PATH + "/rest/changeHouse/loadResults";
|
||||
var page = lastIndex/itemsPerLoad + 1;
|
||||
if(lastIndex == 0){
|
||||
baseInfo.results = [];
|
||||
}
|
||||
|
||||
axios.get(url , {
|
||||
params: {
|
||||
hsId:hsId,
|
||||
region:region,
|
||||
tag:tag,
|
||||
sort:sort,
|
||||
page:page,
|
||||
pageSize:itemsPerLoad
|
||||
}
|
||||
}).then(function (response) {
|
||||
var totalCount = response.data.data.totalCount
|
||||
baseInfo.matchCount = totalCount
|
||||
|
||||
var datas = response.data.data.ret
|
||||
if(datas){
|
||||
for(var i=0;i<datas.length;i++){
|
||||
var ob = datas[i]
|
||||
var tags = ob.tag
|
||||
if(tags.length>3){
|
||||
ob.tag = tags.slice(0,3)
|
||||
}
|
||||
baseInfo.results.push(ob)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(!datas || (datas && datas.length!=itemsPerLoad)){
|
||||
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||
$.detachInfiniteScroll($('.infinite-scroll'));
|
||||
// 删除加载提示符
|
||||
$('.infinite-scroll-preloader').hide();
|
||||
}
|
||||
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// 注册'infinite'事件处理函数
|
||||
$(document).on('infinite', '.infinite-scroll-bottom', function() {
|
||||
// 如果正在加载,则退出
|
||||
if (loading)
|
||||
return;
|
||||
// 设置flag
|
||||
loading = true;
|
||||
// 模拟1s的加载过程
|
||||
setTimeout(function() {
|
||||
// 重置加载flag
|
||||
loading = false;
|
||||
|
||||
lastIndex = $('.list-container li').length
|
||||
if (lastIndex >= maxItems) {
|
||||
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||
$.detachInfiniteScroll($('.infinite-scroll'));
|
||||
// 删除加载提示符
|
||||
$('.infinite-scroll-preloader').hide();
|
||||
return;
|
||||
}
|
||||
// 添加新条目
|
||||
addItems(itemsPerLoad, lastIndex);
|
||||
// 更新最后加载的序号
|
||||
lastIndex = $('.list-container li').length;
|
||||
|
||||
//容器发生改变,如果是js滚动,需要刷新滚动
|
||||
//$.refreshScroller();
|
||||
}, 500);
|
||||
});
|
||||
|
||||
function updateChangeHouse(){
|
||||
clicked('views/changeHouse/index.html',true,false,{},{hsId:hsId});
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -99,6 +99,7 @@ Vue.component('base-info-component', {
|
||||
loadDistrictInfo:function(){
|
||||
axios.get("/rest/districts/detail", {
|
||||
params: {
|
||||
rid:rid,
|
||||
city: city,
|
||||
region:region,
|
||||
name: name
|
||||
@@ -107,6 +108,12 @@ Vue.component('base-info-component', {
|
||||
var vo = response.data.data.detail
|
||||
var cityPrice = response.data.data.cityPrice
|
||||
var collected = response.data.data.collected
|
||||
var sr = response.data.data.substitutionResult
|
||||
var hs = response.data.data.houseSubstitution;
|
||||
var house = response.data.data.houseInfo;
|
||||
if(hs && sr){
|
||||
addSubstitution(sr, hs, house);
|
||||
}
|
||||
if(cityPrice){
|
||||
baseInfo.cityPrice = cityPrice
|
||||
}
|
||||
@@ -246,3 +253,55 @@ function getStarContent(starScore){
|
||||
return html;
|
||||
}
|
||||
|
||||
function addSubstitution(sr, hs, house){
|
||||
var s = "购买 "+sr.name;
|
||||
if(sr.intentionArea==0){
|
||||
s += "50平米以下"
|
||||
}else if(sr.intentionArea==1){
|
||||
s += "50-70平米"
|
||||
}else if(sr.intentionArea==2){
|
||||
s += "70-90平米"
|
||||
}else if(sr.intentionArea==3){
|
||||
s += "90-110平米"
|
||||
}else if(sr.intentionArea==4){
|
||||
s += "110-150平米"
|
||||
}else if(sr.intentionArea==5){
|
||||
s += "150-200平米"
|
||||
}else if(sr.intentionArea==6){
|
||||
s += "200-300平米"
|
||||
}else if(sr.intentionArea==7){
|
||||
s += "300平米以上"
|
||||
}
|
||||
s += "的房子,总价预计约为"
|
||||
if(sr.intentionArea==0){
|
||||
s += parseInt(sr.maxTotalPrice/10000)+"万以内"
|
||||
}else if(sr.intentionArea==7){
|
||||
s += parseInt(sr.minTotalPrice/10000)+"万以上"
|
||||
}else{
|
||||
s += parseInt(sr.minTotalPrice/10000)+"-"+parseInt(sr.maxTotalPrice/10000)+"万"
|
||||
}
|
||||
|
||||
|
||||
var soufu_min=((sr.minTotalPrice * hs.shoufu/100)/10000)
|
||||
var soufu_max=((sr.maxTotalPrice * hs.shoufu/100)/10000)
|
||||
var initPrice = 0;
|
||||
if(hs.substitutionType==1){
|
||||
initPrice = hs.curMoney + house.totalPrice/10000;
|
||||
}else if(hs.substitutionType==0){
|
||||
initPrice = hs.curMoney
|
||||
}
|
||||
|
||||
if(initPrice < soufu_min){
|
||||
s +=",资金缺口约为"+((soufu_min-initPrice)-(soufu_max-initPrice))+"万";
|
||||
}else if(initPrice > soufu_min && initPrice < soufu_max){
|
||||
s += ",资金缺口约为"+(soufu_max-initPrice)+"万";
|
||||
}else if(initPrice > soufu_max){
|
||||
s += "。";
|
||||
}
|
||||
|
||||
// <#if advertisement?? && advertisement.content?? && advertisement.content?length gt 0>
|
||||
// <a <#if advertisement.link?? && advertisement.link?length gt 0>onclick="openUrl('${basePath}/message/openView?url=${basePath}/mad/adUrlLoad?adid=${advertisement.id!?c}')"</#if> ><#if advertisement.content??>${advertisement.content!}</#if><i class="icon icon-right icon-right01"></i></a></p>
|
||||
// </#if>
|
||||
$("#suggestDiv").text(s);
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,9 @@ Vue.component('city_increase_ranking',{
|
||||
var msg = response.data.message;
|
||||
if(msg != "取消关注成功" && msg != "关注成功"){
|
||||
$.toast(msg);
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if (plus.webview.getWebviewById('views/house/houseDetail.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
}else{
|
||||
//$(event.target).parent().children().removeClass("dn");
|
||||
//$(event.target).addClass("dn");
|
||||
@@ -80,7 +82,9 @@ Vue.component('city_increase_ranking',{
|
||||
}
|
||||
|
||||
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
|
||||
// loadMyCollectCity()
|
||||
if(type == 0){
|
||||
@@ -97,11 +101,17 @@ Vue.component('city_increase_ranking',{
|
||||
console.log(error)
|
||||
})
|
||||
},function(){
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if (plus.webview.getWebviewById('views/house/houseDetail.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
});
|
||||
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html') != null) {
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
}else{
|
||||
|
||||
@@ -77,7 +77,10 @@ Vue.component('city_potential_ranking',{
|
||||
var msg = response.data.message;
|
||||
if(msg != "取消关注成功" && msg != "关注成功"){
|
||||
$.toast(msg);
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
|
||||
}else{
|
||||
//$(event.target).parent().children().removeClass("dn");
|
||||
//$(event.target).addClass("dn");
|
||||
@@ -96,7 +99,10 @@ Vue.component('city_potential_ranking',{
|
||||
}
|
||||
}
|
||||
}
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
|
||||
|
||||
reloadMyFocus()
|
||||
reloadCityIncreaseRanking()
|
||||
@@ -106,11 +112,16 @@ Vue.component('city_potential_ranking',{
|
||||
console.log(error)
|
||||
})
|
||||
},function(){
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
});
|
||||
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
}
|
||||
})
|
||||
}else{
|
||||
|
||||
@@ -36,6 +36,8 @@
|
||||
|
||||
.loadingBg{width:100%;height:100%;background:#fff;overflow:hidden;position:absolute;top:11px;left:0;z-index:100;}
|
||||
.loadingBg .infinite-scroll-preloader{margin-top:30%;}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
@@ -58,6 +60,10 @@
|
||||
<h1 class="title">{{name}}</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
<div class="topBg topBg02" id="suggestDiv">
|
||||
<p>购买 龙盛佳苑 90-110㎡ 的房子,总价预计约为<em>587-717万</em>。<br><a href="">查看详情<i class="icon icon-right icon-right01"></i></a></p>
|
||||
</div>
|
||||
|
||||
<div class="list-block media-list topList">
|
||||
<ul>
|
||||
<li>
|
||||
@@ -106,7 +112,40 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="topic">
|
||||
|
||||
<div class="topic">
|
||||
<div class="topicTitle">小区走势分析</div>
|
||||
<div class="topicContent" style="padding:0;padding-bottom:0.75rem;">
|
||||
<div class="topicTitle topicTitle01" style="position:relative;">均价
|
||||
<div class="icon01Box">
|
||||
<i class="icon icon-chart01a" onclick="lineChart()"></i>
|
||||
<i class="icon icon-chart01 dn" onclick="kLineChart()"></i>
|
||||
</div>
|
||||
<div class="content-block" id="trendDiv1">
|
||||
<div class="buttons-row theme">
|
||||
<a class="tab-link button active" onclick="clickLineChart(6)" t-v="6">半年</a>
|
||||
<a class="tab-link button" onclick="clickLineChart(12)" t-v="12">一年</a>
|
||||
<a class="tab-link button" onclick="clickLineChart(36)" t-v="36">三年</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="chart01Box">
|
||||
<div class="chart" id="chart01a"></div>
|
||||
<div class="chart" id="chart01"></div>
|
||||
</div>
|
||||
<div class="topicTitle topicTitle01" style="position:relative;border-top:solid 1px #e7e7e7;">租金
|
||||
<div class="content-block">
|
||||
<div class="buttons-row theme" id="trendDiv2">
|
||||
<a t-v="2" id="trendDivTab2" class="tab-link button active" onclick="showLoadRentTrends(2)">半年</a>
|
||||
<a t-v="3" id="trendDivTab3" class="tab-link button" onclick="showLoadRentTrends(3)">一年</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="chart" id="chart02"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--<div class="topic">
|
||||
<div class="topicTitle">小区走势分析</div>
|
||||
<div class="topicContent" style="padding:0;padding-bottom:0.75rem;">
|
||||
<div class="topicTitle topicTitle01" style="position:relative;">均价
|
||||
@@ -130,7 +169,7 @@
|
||||
</div>
|
||||
<div class="chart" id="chart02"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
<!--<div class="card cardPrice cardPrice02" style="border-bottom:solid 0.5rem #f3f3f3;">
|
||||
<div class="card-footer">
|
||||
<span>
|
||||
@@ -224,18 +263,14 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/echarts.js"></script>
|
||||
<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
|
||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||
|
||||
<script type='text/javascript' src='../component/baseInfoComponent.js' charset='utf-8'></script>
|
||||
<script type='text/javascript' src='../component/nearDist.js' charset='utf-8'></script>
|
||||
|
||||
<script>
|
||||
var city = "北京"
|
||||
var region = "朝阳"
|
||||
var name = "姜庄湖园林一期"
|
||||
//var lat = 31.292437
|
||||
//var lng = 121.48703
|
||||
|
||||
// var city="安阳"
|
||||
// var region="安阳"
|
||||
// var name="宜和苑"
|
||||
var city = "上海"
|
||||
var region = "青浦"
|
||||
var name = "南山雨果"
|
||||
var mode = "line"
|
||||
|
||||
var lat;
|
||||
var lng;
|
||||
@@ -243,21 +278,43 @@ $.config = {router: false}
|
||||
var tags;
|
||||
|
||||
var baseInfo;
|
||||
|
||||
// baseInfo = new Vue({
|
||||
// el: '#districtBaseInfo',
|
||||
// data: {
|
||||
// name : "",
|
||||
// city:"",
|
||||
// region: "",
|
||||
// address: "",
|
||||
// avgPrice:"",
|
||||
// oneMonthUpDownRange:"",
|
||||
// priceRate:"",
|
||||
// cityPrice:"",
|
||||
// finishBuildingDate:"",
|
||||
// householdCount:"",
|
||||
// cubagePercent:"",
|
||||
// carSiteCount:"",
|
||||
// virescencePercent:"",
|
||||
// estateCharge:"",
|
||||
// moreArea:"",
|
||||
// developer:"",
|
||||
// estateCompany:"",
|
||||
// tags:[],
|
||||
// nearDists:[],
|
||||
// regionIndex:"",
|
||||
// schoolIndex:""
|
||||
// }
|
||||
// })
|
||||
|
||||
</script>
|
||||
<script type="text/javascript" src="../../js/district/districtDetail.js"></script>
|
||||
<script type='text/javascript' src='../../js/district/district-map.js' charset='utf-8'></script>
|
||||
<script type='text/javascript' src='../component/baseInfoComponent.js' charset='utf-8'></script>
|
||||
<script type='text/javascript' src='../component/nearDist.js' charset='utf-8'></script>
|
||||
<script>
|
||||
//loadDistrictInfo();
|
||||
|
||||
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
city = self.city
|
||||
region = self.region
|
||||
name = self.name;
|
||||
rid = self.rid;
|
||||
// 创建根实例
|
||||
baseInfo = new Vue({
|
||||
el: '#districtBaseInfo',
|
||||
@@ -283,74 +340,20 @@ function onPlusReady() {
|
||||
nearDists:[],
|
||||
regionIndex:"",
|
||||
schoolIndex:""
|
||||
},
|
||||
methods:{
|
||||
showChat: function(type){
|
||||
if(type == 2) {
|
||||
document.getElementById("tabChart2").style = "z-index:1";
|
||||
document.getElementById("tabChart1").style = "z-index:-1";
|
||||
} else {
|
||||
document.getElementById("tabChart2").style = "z-index:-1";
|
||||
document.getElementById("tabChart1").style = "z-index:1";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
/* 小区均价分析 */
|
||||
loadKLineData(city, region, name);
|
||||
/* 小区租金走势 */
|
||||
loadRentTrends(city, region, name,2);
|
||||
inintChart(city, region, name);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//baseInfo = new Vue({
|
||||
// el: '#districtBaseInfo',
|
||||
// data: {
|
||||
// name : "",
|
||||
// city:"",
|
||||
// region: "",
|
||||
// address: "",
|
||||
// avgPrice:"",
|
||||
// oneMonthUpDownRange:"",
|
||||
// priceRate:"",
|
||||
// cityPrice:"",
|
||||
// finishBuildingDate:"",
|
||||
// householdCount:"",
|
||||
// cubagePercent:"",
|
||||
// carSiteCount:"",
|
||||
// virescencePercent:"",
|
||||
// estateCharge:"",
|
||||
// moreArea:"",
|
||||
// developer:"",
|
||||
// estateCompany:"",
|
||||
// tags:[],
|
||||
// nearDists:[],
|
||||
// regionIndex:"",
|
||||
// schoolIndex:""
|
||||
//
|
||||
// },
|
||||
// methods:{
|
||||
// showChat: function(type){
|
||||
// if(type == 2) {
|
||||
// document.getElementById("tabChart2").style = "z-index:1";
|
||||
// document.getElementById("tabChart1").style = "z-index:-1";
|
||||
// } else {
|
||||
// document.getElementById("tabChart2").style = "z-index:-1";
|
||||
// document.getElementById("tabChart1").style = "z-index:1";
|
||||
// }
|
||||
//
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
//
|
||||
// /* 小区均价分析 */
|
||||
// loadKLineData(city, region, name);
|
||||
// /* 小区租金走势 */
|
||||
// loadRentTrends(city, region, name,2);
|
||||
|
||||
</script>
|
||||
<script type="text/javascript" src="../../js/district/districtDetail.js"></script>
|
||||
<script type='text/javascript' src='../../js/district/district-map.js' charset='utf-8'></script>
|
||||
|
||||
<script>
|
||||
//inintChart(city, region, name);
|
||||
|
||||
function openMapWindow(){
|
||||
clicked('arround.html',true,false,{},{city:city,region:region,name:name,lat:lat,lng:lng});
|
||||
}
|
||||
@@ -367,11 +370,6 @@ $(document).ready(function () {
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
var t1 = window.setInterval(loadMap,1000);
|
||||
function loadMap(){
|
||||
if(lng && lat){
|
||||
|
||||
@@ -344,8 +344,13 @@ function addManagement(id, houseStatus, liveStatus){
|
||||
var status = response.data.status;
|
||||
if(status){
|
||||
$.toast(response.data.data);
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
}else{
|
||||
$.toast(response.data.message);
|
||||
}
|
||||
|
||||
@@ -1845,9 +1845,17 @@ function checkIsLogin(){
|
||||
|
||||
}else{
|
||||
addEvaluation();
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
}
|
||||
})
|
||||
}else{
|
||||
@@ -1891,15 +1899,23 @@ function addEvaluation(){
|
||||
if(response.data.data!=null && response.data.data.success){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
var id = response.data.data.id;
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
clicked('/views/evaluate/evaluateReport.html',true,false,{},{hid:id},function(){
|
||||
getRequestId();
|
||||
})
|
||||
}else{
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast(response.data.message);
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
|
||||
@@ -90,18 +90,18 @@
|
||||
<div class="topic">
|
||||
<div class="topicContent" style="padding-left:0;padding-right:0;">
|
||||
<div class="topicContent_center home">
|
||||
<!--<div onclick="window.location.href='+BASE_PATH+'/saleAnalysis/index'">
|
||||
<div onclick="gotoSaleAnalysis()">
|
||||
<i class="icon icon-evaluation01"></i>
|
||||
<span>出售分析</span>
|
||||
</div>-->
|
||||
</div>
|
||||
<div onclick="gotoRentManager()">
|
||||
<i class="icon icon-evaluation02"></i>
|
||||
<span>出租管理</span>
|
||||
</div>
|
||||
<!--<div onclick="window.location.href='01_index01_myHouse04_evaluationResult03_exchange01_index.html'">
|
||||
<div onclick="gotoChangeHouse()">
|
||||
<i class="icon icon-evaluation03"></i>
|
||||
<span>我要置换</span>
|
||||
</div>-->
|
||||
</div>
|
||||
<div onclick="gotoLoanApply()" id="gotoLoanApply" style="display: none;">
|
||||
<i class="icon icon-personal03"></i>
|
||||
<span>我要贷款</span>
|
||||
@@ -226,7 +226,40 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="topic">
|
||||
|
||||
<div class="topic">
|
||||
<div class="topicTitle">小区走势分析</div>
|
||||
<div class="topicContent" style="padding:0;padding-bottom:0.75rem;">
|
||||
<div class="topicTitle topicTitle01" style="position:relative;">均价
|
||||
<div class="icon01Box">
|
||||
<i class="icon icon-chart01a" onclick="lineChart()"></i>
|
||||
<i class="icon icon-chart01 dn" onclick="kLineChart()"></i>
|
||||
</div>
|
||||
<div class="content-block" id="trendDiv1">
|
||||
<div class="buttons-row theme">
|
||||
<a class="tab-link button active" onclick="clickLineChart(6)" t-v="6">半年</a>
|
||||
<a class="tab-link button" onclick="clickLineChart(12)" t-v="12">一年</a>
|
||||
<a class="tab-link button" onclick="clickLineChart(36)" t-v="36">三年</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="chart01Box">
|
||||
<div class="chart" id="chart01a"></div>
|
||||
<div class="chart" id="chart01"></div>
|
||||
</div>
|
||||
<div class="topicTitle topicTitle01" style="position:relative;border-top:solid 1px #e7e7e7;">租金
|
||||
<div class="content-block">
|
||||
<div class="buttons-row theme" id="trendDiv2">
|
||||
<a t-v="2" id="trendDivTab2" class="tab-link button active" onclick="showLoadRentTrends(2)">半年</a>
|
||||
<a t-v="3" id="trendDivTab3" class="tab-link button" onclick="showLoadRentTrends(3)">一年</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="chart" id="chart02"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--<div class="topic">
|
||||
<div class="topicTitle">小区走势分析</div>
|
||||
<div class="topicContent" style="padding:0;padding-bottom:0.75rem;">
|
||||
<div class="topicTitle topicTitle01" style="position:relative;">均价
|
||||
@@ -249,7 +282,8 @@
|
||||
</div>
|
||||
<div class="chart" id="chart02"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
<div class="topic" v-show="rentRooms.length>0">
|
||||
<div class="topicTitle" style="border-bottom:solid 1px #e7e7e7;">小区本月租金</div>
|
||||
<div class="topicContent" style="padding:0.5rem 0;">
|
||||
@@ -329,6 +363,7 @@ var name;
|
||||
var oriCity;
|
||||
var oriRegion;
|
||||
var oriName;
|
||||
var mode = "line"
|
||||
//扩展API加载完毕,现在可以正常调用扩展API
|
||||
function onPlusReady(){
|
||||
var self = plus.webview.currentWebview();
|
||||
@@ -529,10 +564,14 @@ function addManagement(id, houseStatus, liveStatus){
|
||||
}).then(function (response) {
|
||||
var status = response.data.status;
|
||||
if(status){
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
$.toast("修改状态成功!");
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}else{
|
||||
$.toast(response.data.message);
|
||||
}
|
||||
@@ -561,10 +600,7 @@ function loadMap(){
|
||||
}
|
||||
function loadChart(){
|
||||
if(city && region && name){
|
||||
/* 小区均价分析 */
|
||||
loadKLineData(city, region, name);
|
||||
/* 小区租金走势 */
|
||||
loadRentTrends(city, region, name);
|
||||
inintChart(city, region, name);
|
||||
window.clearInterval(t2);
|
||||
}
|
||||
}
|
||||
@@ -592,6 +628,15 @@ function gotoLoanApply(){
|
||||
function gotoRentManager(){
|
||||
clicked('/views/rent/rentManager.html',true,false,{},{houseId: houseId},function(){})
|
||||
}
|
||||
|
||||
//出售分析
|
||||
function gotoSaleAnalysis(){
|
||||
clicked('/views/saleAnalysis/saleAnalysis.html',true,false,{},{houseId: houseId},function(){})
|
||||
}
|
||||
|
||||
function gotoChangeHouse(){
|
||||
clicked('/views/changeHouse/index.html',true,false,{},{houseId: houseId},function(){})
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -1571,10 +1571,17 @@ function addFocus(city){
|
||||
reloadMyFocus()
|
||||
reloadCityIncreaseRanking()
|
||||
reloadCityPotentialRanking()
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
var curDatas = response.data.data
|
||||
if(curDatas && curDatas.length>=0){
|
||||
if(!IsInArray(curDatas, city)){
|
||||
|
||||
@@ -155,7 +155,9 @@ function addManagement(id, houseStatus, liveStatus){
|
||||
$.toast(response.data.data);
|
||||
$('.loadingBgDiv').show();
|
||||
checkIsLogin();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
//plus.webview.getWebviewById('yfindex.html').reload();
|
||||
}else{
|
||||
$.toast(response.data.message);
|
||||
|
||||
@@ -137,7 +137,7 @@ var city;
|
||||
var region;
|
||||
|
||||
//var picUrl = '_www/logo.png';
|
||||
var picUrl = '../../img/default_share.png';
|
||||
var picUrl = '_www/img/default_share.png';
|
||||
|
||||
|
||||
//新闻评论列表
|
||||
@@ -504,9 +504,17 @@ $(".collection").on("click", function () {
|
||||
function doCollect() {
|
||||
if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
|
||||
clicked('../user/codeSms.html',true,false,{},{},function(){
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload()
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
doCollect();
|
||||
})
|
||||
return;
|
||||
|
||||
@@ -0,0 +1,739 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>出售分析</title>
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||
<link rel="shortcut icon" href="/favicon.ico">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<link rel="stylesheet" href="../../css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
|
||||
<style>
|
||||
.list-block ul:before{height:0;}
|
||||
.list-block ul:after{height:0;}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current">
|
||||
<header class="bar bar-nav barBorder">
|
||||
<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
<h1 class="title">出售分析测试</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
<div class="list-block media-list mb05 topList">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner item-inner01">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><label><b>龙盛佳苑</b></label><span class="tag"><small>出租</small></span></div>
|
||||
<div class="item-after"><em>391.45万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>2室1厅 60m 1/6层</span></div>
|
||||
<div class="item-after"><span>2018/02/08估值</span></div>
|
||||
</div>
|
||||
<div class="item-subtitle">
|
||||
<span class="tag"><small>近地铁</small><small>公交多</small><small>买菜做饭</small></span>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="topic">
|
||||
<div class="topicContent">
|
||||
<div class="topicTitle01 alert-text-title02">交易活跃度:<em class="riskScore03">良好</em><i class="icon icon-note"></i></div>
|
||||
<div class="assetRisk">
|
||||
<!--<div class="rankingBox dn">
|
||||
<div class="ranking">
|
||||
<font style="padding-left:0;margin-left:-1px;"><i class="riskScore03" style="width:72%;"></i></font>
|
||||
</div>
|
||||
</div>-->
|
||||
<p class="p01"><span style="margin-left:-3px;margin-right:60px;">0</span><span style="margin-right:57px;">26</span><span style="margin-right:56px;">38</span><span style="margin-right:47px;">70</span><span style="margin-right:0;">100</span></p>
|
||||
<font><i class="riskScore01"></i><i class="riskScore02"></i><i class="riskScore03"></i><i class="riskScore04"></i></font>
|
||||
<p><span>很差</span><span>较差</span><span>良好</span><span>很好</span></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="topic">
|
||||
<div class="topicTitle">增长率及收益</div>
|
||||
<div class="topicContent">
|
||||
<div class="rateBox01">
|
||||
<div class="topicContent_bottom01">
|
||||
<span class="open-modal01">看看这套房子为我赚了多少<i class="icon icon-right icon-right01"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="rateBox02 dn">
|
||||
<div class="topicContent_top topicContent_top01">
|
||||
<div class="left">
|
||||
<p class="up">
|
||||
<i></i>
|
||||
<em>11.84<font>%</font></em>
|
||||
</p>
|
||||
<p><span>年增长率</span></p>
|
||||
</div>
|
||||
<div class="right">
|
||||
<p class="up">
|
||||
<i></i>
|
||||
<em>41.45<font>万</font></em>
|
||||
</p>
|
||||
<p><span>房屋已升值</span></p>
|
||||
</div>
|
||||
</div>
|
||||
<a class="adBox" href=""><p>房子能卖400万!XX银行月月高理财年化5.6%起(每年收益15.68万起),查看详情<i class="icon icon-right icon-right01"></i></p></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="topic">
|
||||
<div class="topicContent">
|
||||
<div class="topicTitle01">龙盛佳苑在上海市:</div>
|
||||
<div class="topicContent_bottom" style="border-bottom:solid 1px #e7e7e7;padding-bottom:0.5rem;">
|
||||
<p style="margin-bottom:20px;">涨幅(近12个月)超过了<em>69.7%</em>的住宅</p>
|
||||
<font><i style="width:69.7%;"></i></font>
|
||||
<small class="rankingNote"><span class="rankingNoteLeft" style="line-height:17px;margin-top:7px;">0%</span><span class="rankingNoteRight" style="line-height:17px;margin-top:7px;text-align:right;">100%</span></small>
|
||||
</div>
|
||||
<div class="topicContent_bottom">
|
||||
<p>均价超过了<em>64.14%</em>的住宅</p>
|
||||
<div class="slider_note" style="left:50.14%;">
|
||||
<img src="../../images/arrow_note_down.png">
|
||||
<span>65,241元/㎡</span>
|
||||
</div>
|
||||
<font><i style="width:64.14%;"></i></font>
|
||||
<small class="rankingNote" style="height:45px;"><span class="rankingNoteLeft" style="line-height:17px;margin-top:7px;">相对最低<br>9,290元/㎡</span><span class="rankingNoteRight" style="line-height:17px;margin-top:7px;text-align:right;">相对最高<br>194,953元/㎡</span></small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="topic">
|
||||
<div class="topicTitle" style="position:relative;">均价走势
|
||||
<div class="content-block">
|
||||
<div class="buttons-row theme">
|
||||
<a href="#tabChartAvg1" class="tab-link button active">半年</a>
|
||||
<a href="#tabChartAvg2" class="tab-link button">一年</a>
|
||||
<a href="#tabChartAvg3" class="tab-link button">三年</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="topicContent" style="padding:0;">
|
||||
<div class="chart" id="chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="topic">
|
||||
<div class="topicTitle">挂牌建议</div>
|
||||
<div class="topicContent" style="padding-top:0;">
|
||||
<div class="topicContent_center02">
|
||||
<p><label>总价:</label><em>352.3万 - 391.45万</em></p>
|
||||
<p><span>单价:5.87万/㎡ - 6.52万/㎡</span></p>
|
||||
</div>
|
||||
<a class="adBox" href=""><p>房子能卖400万!XX银行月月高理财年化5.6%起(每年收益15.68万起),查看详情<i class="icon icon-right icon-right01"></i></p></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="topic">
|
||||
<div class="topicTitle" style="position:relative;">挂牌参考
|
||||
<div class="content-block">
|
||||
<div class="buttons-row theme">
|
||||
<a href="#tabListing1" class="tab-link button active">周边</a>
|
||||
<a href="#tabListing2" class="tab-link button">本小区</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tabs">
|
||||
<div id="tabListing1" class="tab active">
|
||||
<div class="list-block media-list">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">大华爱宅</span><span class="c6 c6a">45㎡</span></div>
|
||||
<div class="item-after"><em>60万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>1室1厅/南北/中等装修</span></div>
|
||||
<div class="item-after"><span>13,333元/㎡</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">大华路869弄小区</span><span class="c6 c6a">61.71㎡</span></div>
|
||||
<div class="item-after"><em>370万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>2室1厅/南北/中装</span></div>
|
||||
<div class="item-after"><span>59,957元/㎡</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">大华二村三街坊</span><span class="c6 c6a">66㎡</span></div>
|
||||
<div class="item-after"><em>330万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>2室1厅/南北/精装修</span></div>
|
||||
<div class="item-after"><span>50,000元/㎡</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">文华苑</span><span class="c6 c6a">53.13㎡</span></div>
|
||||
<div class="item-after"><em>310万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>1室1厅/南北/精装</span></div>
|
||||
<div class="item-after"><span>58,347元/㎡</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="tabListing2" class="tab">
|
||||
<div class="list-block media-list">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">龙盛佳苑</span><span class="c6 c6a">62.35㎡</span></div>
|
||||
<div class="item-after"><em>452万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>2室1厅/南/精装</span></div>
|
||||
<div class="item-after"><span>72,493元/㎡</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">龙盛佳苑</span><span class="c6 c6a">81㎡</span></div>
|
||||
<div class="item-after"><em>386万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>2室2厅/南北/精装修</span></div>
|
||||
<div class="item-after"><span>47,654元/㎡</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">龙盛佳苑</span><span class="c6 c6a">72㎡</span></div>
|
||||
<div class="item-after"><em>360万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>2室2厅/南北/豪华装修</span></div>
|
||||
<div class="item-after"><span>50,000元/㎡</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">龙盛佳苑</span><span class="c6 c6a">82㎡</span></div>
|
||||
<div class="item-after"><em>400万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>2室1厅/北向/豪华装修</span></div>
|
||||
<div class="item-after"><span>48,780元/㎡</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="list-block">
|
||||
<ul>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title">周边房产中介</div>
|
||||
<div class="item-after"><em style="color:#F18D00;">50</em>家</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title">知名中介:</div>
|
||||
<div class="item-after"><em style="color:#F18D00;">21</em>家</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title">其他中介:</div>
|
||||
<div class="item-after"><em style="color:#F18D00;">29</em>家</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="topic" style="border-top:none;">
|
||||
<div class="topicContent">
|
||||
<div class="topicContent_bottom">
|
||||
<p style="margin-bottom:20px;margin-top:0;color:#333;">周边中介量在上海排名:<em style="float:right;">35%</em></p>
|
||||
<font><i style="width:35%;"></i></font>
|
||||
<small class="rankingNote"><span class="rankingNoteLeft" style="line-height:17px;margin-top:7px;">最低:0</span><span class="rankingNoteRight" style="line-height:17px;margin-top:7px;text-align:right;">最高:150</span></small>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="topic">
|
||||
<div class="topicTitle" style="position:relative;">成交情况
|
||||
<div class="content-block">
|
||||
<div class="buttons-row theme">
|
||||
<a href="#tabDeal1" class="tab-link button active">周边</a>
|
||||
<a href="#tabDeal2" class="tab-link button">本小区</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tabs">
|
||||
<div id="tabDeal1" class="tab active">
|
||||
<div class="list-block media-list">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">馨华苑</span></div>
|
||||
<div class="item-after"><em>540万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>南北</span></div>
|
||||
<div class="item-after"><span>60,006元/㎡</span></div>
|
||||
</div>
|
||||
<div class="item-subtitle"><span class="tag"><small>2017/06/17签约</small></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">大华二村</span></div>
|
||||
<div class="item-after"><em>280万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>朝南</span></div>
|
||||
<div class="item-after"><span>59,867元/㎡</span></div>
|
||||
</div>
|
||||
<div class="item-subtitle"><span class="tag"><small>2017/06/17签约</small></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">文华苑五期</span></div>
|
||||
<div class="item-after"><em>588万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>朝南</span></div>
|
||||
<div class="item-after"><span>52,136元/㎡</span></div>
|
||||
</div>
|
||||
<div class="item-subtitle"><span class="tag"><small>2017/06/25签约</small></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">大华一村</span></div>
|
||||
<div class="item-after"><em>290万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>朝南</span></div>
|
||||
<div class="item-after"><span>60,732元/㎡</span></div>
|
||||
</div>
|
||||
<div class="item-subtitle"><span class="tag"><small>2017/05/31签约</small></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="tabDeal2" class="tab">
|
||||
<div class="list-block media-list">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">龙盛佳苑</span></div>
|
||||
<div class="item-after"><em>249万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>朝北</span></div>
|
||||
<div class="item-after"><span>51,875元/㎡</span></div>
|
||||
</div>
|
||||
<div class="item-subtitle"><span class="tag"><small>2017/09/20签约</small></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">龙盛佳苑</span></div>
|
||||
<div class="item-after"><em>250万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>朝南</span></div>
|
||||
<div class="item-after"><span>53,191元/㎡</span></div>
|
||||
</div>
|
||||
<div class="item-subtitle"><span class="tag"><small>2017/07/29签约</small></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">龙盛佳苑</span></div>
|
||||
<div class="item-after"><em>260万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>朝南</span></div>
|
||||
<div class="item-after"><span>54,166元/㎡</span></div>
|
||||
</div>
|
||||
<div class="item-subtitle"><span class="tag"><small>2017/07/28签约</small></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">龙盛佳苑</span></div>
|
||||
<div class="item-after"><em>250万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>南北</span></div>
|
||||
<div class="item-after"><span>56,818元/㎡</span></div>
|
||||
</div>
|
||||
<div class="item-subtitle"><span class="tag"><small>2017/07/11签约</small></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal01 dn" style="margin-top:-97px;">
|
||||
<i class="close"></i>
|
||||
<div class="modal-inner">
|
||||
<div class="modal-title">增长率及收益</div>
|
||||
<div class="modal-text">
|
||||
<div class="list-block media-list">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="item-link item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">购入时间</div>
|
||||
<div class="item-after">
|
||||
<input type="text" id="input_time" class="textAlignLeft" placeholder="请选择">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-link item-content">
|
||||
<div class="item-inner item-inner01">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">购入价格</div>
|
||||
<div class="item-after">
|
||||
<input type="text" id="input_price" class="textAlignLeft" placeholder="请输入">
|
||||
<label>万元</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-buttons">
|
||||
<span class="modal-button cancel_btn">取消</span>
|
||||
<span class="modal-button confirm_btn confirm-ok-cancel">确定</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal01-overlay dn"></div>
|
||||
|
||||
<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||
Zepto = $
|
||||
$.config = {router: false}
|
||||
|
||||
</script>
|
||||
<script type="text/javascript" src="../../js/beacon_release.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/vue.js"></script>
|
||||
<script type="text/javascript" src="../../js/light7-2.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/sm.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../config.js"></script>
|
||||
<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
|
||||
<script type="text/javascript" src="../../js/highcharts-4.2.3.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||
<script>
|
||||
/* 增长率及收益 */
|
||||
$(document).on('click','.open-modal01', function () {
|
||||
$.closeModal('.my-popover01');
|
||||
$('.modal01').show();
|
||||
$('.modal01-overlay').show();
|
||||
});
|
||||
|
||||
/* 增长率及收益-取消 */
|
||||
$(document).on('click','.modal01 .cancel_btn', function () {
|
||||
$('.modal01').hide();
|
||||
$('.modal01-overlay').hide();
|
||||
window.location.reload();
|
||||
});
|
||||
|
||||
/* 增长率及收益-关闭 */
|
||||
$(document).on('click','.modal01 .close', function () {
|
||||
$('.modal01').hide();
|
||||
$('.modal01-overlay').hide();
|
||||
window.location.reload();
|
||||
});
|
||||
|
||||
/* 增长率及收益-确定 */
|
||||
$(document).on('click','.modal01 .confirm_btn', function () {
|
||||
var a = $("#input_time").val();
|
||||
var b = $("#input_price").val();
|
||||
if(a == ""){
|
||||
$.toast("请选择购入时间");
|
||||
return false;
|
||||
}else if(b == ""){
|
||||
$.toast("请输入购入价格");
|
||||
return false;
|
||||
}else{
|
||||
$(".rateBox01").hide();
|
||||
$(".rateBox02").show();
|
||||
$('.modal').hide();
|
||||
$('.modal01').hide();
|
||||
$('.modal01-overlay').hide();
|
||||
}
|
||||
});
|
||||
|
||||
/* 点击遮罩弹窗隐藏 */
|
||||
$(document).on('click','.modal01-overlay', function () {
|
||||
$('.modal01').hide();
|
||||
$('.modal01-overlay').hide();
|
||||
});
|
||||
|
||||
/* 选择-购入时间 */
|
||||
$("#input_time").datetimePicker({
|
||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
||||
<button class="button button-link pull-right close-picker">确定</button>\
|
||||
<h1 class="title">购入时间</h1>\
|
||||
</header>'
|
||||
});
|
||||
|
||||
/* 说明-交易活跃度 */
|
||||
$(document).on('click','.alert-text-title02', function () {
|
||||
$.alert('交易活跃度是根据房产的价值、周边配套、供需关系等情况来衡量,能否在市场中快速交易变现的评级。', '交易活跃度');
|
||||
});
|
||||
|
||||
/* button状态切换 */
|
||||
$(".content-block .button").on("click", function () {
|
||||
$(this).parent().children().removeClass("active");
|
||||
$(this).addClass("active");
|
||||
});
|
||||
|
||||
/* 均价走势 */
|
||||
function yearAvgPrice(){
|
||||
var categories = new Array();
|
||||
var series = new Array();
|
||||
var o = new Object();
|
||||
o.name = '龙盛佳苑';
|
||||
|
||||
var odata = new Array();
|
||||
o.data = odata
|
||||
series.push(o);
|
||||
|
||||
var o2 = new Object();
|
||||
o2.name = '上海';
|
||||
var o2data = new Array();
|
||||
|
||||
var o3 = new Object();
|
||||
o3.name = '静安';
|
||||
var o3data = new Array();
|
||||
odata.push(46000)
|
||||
o2data.push(50400)
|
||||
o3data.push(52800)
|
||||
categories.push('2017-02')
|
||||
odata.push(47000)
|
||||
o2data.push(50600)
|
||||
o3data.push(52900)
|
||||
categories.push('2017-03')
|
||||
odata.push(47400)
|
||||
o2data.push(50300)
|
||||
o3data.push(52700)
|
||||
categories.push('2017-04')
|
||||
odata.push(49000)
|
||||
o2data.push(50200)
|
||||
o3data.push(55200)
|
||||
categories.push('2017-05')
|
||||
odata.push(49400)
|
||||
o2data.push(50800)
|
||||
o3data.push(56100)
|
||||
categories.push('2017-06')
|
||||
odata.push(49600)
|
||||
o2data.push(51900)
|
||||
o3data.push(56900)
|
||||
categories.push('2017-07')
|
||||
odata.push(48400)
|
||||
o2data.push(53100)
|
||||
o3data.push(59400)
|
||||
categories.push('2017-08')
|
||||
odata.push(52200)
|
||||
o2data.push(51200)
|
||||
o3data.push(62400)
|
||||
categories.push('2017-09')
|
||||
odata.push(54900)
|
||||
o2data.push(56200)
|
||||
o3data.push(65600)
|
||||
categories.push('2017-10')
|
||||
odata.push(57400)
|
||||
o2data.push(57000)
|
||||
o3data.push(66800)
|
||||
categories.push('2017-11')
|
||||
odata.push(54800)
|
||||
o2data.push(56700)
|
||||
o3data.push(66200)
|
||||
categories.push('2017-12')
|
||||
odata.push(55000)
|
||||
o2data.push(58300)
|
||||
o3data.push(66000)
|
||||
categories.push('2018-01')
|
||||
|
||||
o3.data = o3data
|
||||
series.push(o3);
|
||||
|
||||
o2.data = o2data
|
||||
series.push(o2);
|
||||
|
||||
charts = Highcharts.chart('chart', {
|
||||
title: {
|
||||
text: ''
|
||||
},
|
||||
subtitle: {
|
||||
text: '',
|
||||
x: -20
|
||||
},
|
||||
colors: ['#F88C9F', '#AAD672', '#AE94E9'],
|
||||
xAxis: {
|
||||
categories: categories,
|
||||
boundaryGap: false,
|
||||
tickInterval: 2,
|
||||
tickLength: 6,
|
||||
labels: {
|
||||
style: {
|
||||
fontSize: 12
|
||||
}
|
||||
}
|
||||
},
|
||||
yAxis: {
|
||||
allowDecimals: false,
|
||||
title: {
|
||||
text: ''
|
||||
},
|
||||
plotLines: [{
|
||||
value: 0,
|
||||
width: 1,
|
||||
color: '#666'
|
||||
}]
|
||||
},
|
||||
tooltip: {
|
||||
shared: true,
|
||||
valueSuffix: '元/㎡'
|
||||
},
|
||||
legend: {
|
||||
layout: 'horizontal',
|
||||
align: 'center',
|
||||
verticalAlign: 'bottom',
|
||||
y: 0,
|
||||
borderWidth: 0
|
||||
},
|
||||
plotOptions: {
|
||||
line: {
|
||||
connectNulls: true //该设置会连接空值点
|
||||
},
|
||||
series: {
|
||||
events: {
|
||||
legendItemClick: function(e) {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
marker: {
|
||||
radius: 3, //曲线点半径,默认是4
|
||||
symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
|
||||
}
|
||||
}
|
||||
},
|
||||
series: series,
|
||||
credits: {
|
||||
enabled: false
|
||||
}
|
||||
})
|
||||
}
|
||||
yearAvgPrice();
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -38,6 +38,15 @@
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li v-show="feedBack">
|
||||
<a onclick="clicked('/views/user/feedBack.html',true);" class="item-link item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">意见反馈</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a onclick="clicked('about.html',true);" class="item-link item-content">
|
||||
<div class="item-inner">
|
||||
@@ -88,13 +97,15 @@ new Vue({
|
||||
data: {
|
||||
showLogin:false,
|
||||
showLogout:false,
|
||||
showPass:false
|
||||
showPass:false,
|
||||
feedBack:false
|
||||
},
|
||||
mounted() {
|
||||
if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
|
||||
this.showLogin = true;
|
||||
} else {
|
||||
this.showPass = true;
|
||||
this.feedBack = true;
|
||||
this.showLogout = true;
|
||||
}
|
||||
}
|
||||
@@ -110,9 +121,17 @@ function logout() {
|
||||
localStorage.removeItem("user_token");
|
||||
localStorage.removeItem("user_token_add_time");
|
||||
//退出登录之前loading下个人中心
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
timer.start();
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,352 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>税费计算</title>
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||
<link rel="shortcut icon" href="/favicon.ico">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
<link rel="stylesheet" href="../../css/city.css">
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
|
||||
<style>
|
||||
.buttons-tab:after{height:0;}
|
||||
.textAlignLeft{left:116px;}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="page-group">
|
||||
<div class="page page-current">
|
||||
<header class="bar bar-nav barBorder">
|
||||
<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
<h1 class="title">税费计算</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
<div class="content-block">
|
||||
<div class="buttons-tab theme">
|
||||
<a href="#tabTax1" class="tab-link button active">新房</a>
|
||||
<a href="#tabTax2" class="tab-link button">二手房</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tabs">
|
||||
<div id="tabTax1" class="tab active">
|
||||
<div class="list-block media-list">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">建筑面积</div>
|
||||
<div class="item-after">
|
||||
<input type="number" id="input_area01" class="textAlignLeft" placeholder="请输入建筑面积">
|
||||
<label>平米</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">单<small class="spacing"> </small>价</div>
|
||||
<div class="item-after">
|
||||
<input type="number" id="input_unitPrice" class="textAlignLeft" placeholder="请输入单价">
|
||||
<label>元/平米</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">是否首次购房</div>
|
||||
<div class="item-after">
|
||||
<div class="textAlignLeft" style="overflow:hidden;">
|
||||
<label class="label-checkbox item-content checkbox">
|
||||
<div class="item-media">
|
||||
<i class="icon icon-form-checkbox current"></i>
|
||||
<label>是</label>
|
||||
</div>
|
||||
</label>
|
||||
<label class="label-checkbox item-content checkbox">
|
||||
<div class="item-media">
|
||||
<i class="icon icon-form-checkbox"></i>
|
||||
<label>否</label>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">是否有电梯</div>
|
||||
<div class="item-after">
|
||||
<div class="textAlignLeft" style="overflow:hidden;">
|
||||
<label class="label-checkbox item-content checkbox">
|
||||
<div class="item-media">
|
||||
<i class="icon icon-form-checkbox current"></i>
|
||||
<label>是</label>
|
||||
</div>
|
||||
</label>
|
||||
<label class="label-checkbox item-content checkbox">
|
||||
<div class="item-media">
|
||||
<i class="icon icon-form-checkbox"></i>
|
||||
<label>否</label>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block">
|
||||
<p><a href="04_mine03_taxation02_reference.html" class="button button-big button-fill theme" id="calculation01_btn">开始计算</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="tabTax2" class="tab">
|
||||
<div class="list-block media-list">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="item-link item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">物业类型</div>
|
||||
<div class="item-after">
|
||||
<input type="text" id="input_houseType" class="textAlignLeft" value="普通住宅">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-link item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">计算方式</div>
|
||||
<div class="item-after">
|
||||
<input type="text" id="input_method" class="textAlignLeft" value="按总价计算">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-link item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">房产购置年限</div>
|
||||
<div class="item-after">
|
||||
<input type="text" id="input_years" class="textAlignLeft" value="不满2年">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">是否首次购房</div>
|
||||
<div class="item-after">
|
||||
<div class="textAlignLeft" style="overflow:hidden;">
|
||||
<label class="label-checkbox item-content checkbox">
|
||||
<div class="item-media">
|
||||
<i class="icon icon-form-checkbox current"></i>
|
||||
<label>是</label>
|
||||
</div>
|
||||
</label>
|
||||
<label class="label-checkbox item-content checkbox">
|
||||
<div class="item-media">
|
||||
<i class="icon icon-form-checkbox"></i>
|
||||
<label>否</label>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">是否唯一住房</div>
|
||||
<div class="item-after">
|
||||
<div class="textAlignLeft" style="overflow:hidden;">
|
||||
<label class="label-checkbox item-content checkbox">
|
||||
<div class="item-media">
|
||||
<i class="icon icon-form-checkbox current"></i>
|
||||
<label>是</label>
|
||||
</div>
|
||||
</label>
|
||||
<label class="label-checkbox item-content checkbox">
|
||||
<div class="item-media">
|
||||
<i class="icon icon-form-checkbox"></i>
|
||||
<label>否</label>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">建筑面积</div>
|
||||
<div class="item-after">
|
||||
<input type="number" id="input_area02" class="textAlignLeft" placeholder="请输入建筑面积">
|
||||
<label>平米</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">总<small class="spacing"> </small>价</div>
|
||||
<div class="item-after">
|
||||
<input type="number" id="input_totalPrice" class="textAlignLeft" placeholder="请输入总价">
|
||||
<label>万元</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block">
|
||||
<p><a href="04_mine03_taxation02_reference.html" class="button button-big button-fill theme" id="calculation02_btn">开始计算</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||
Zepto = $
|
||||
$.config = {router: false}
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="../../js/vue.js"></script>
|
||||
<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../config.js"></script>
|
||||
<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
|
||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* 勾选 */
|
||||
$(".checkbox").on("click", function () {
|
||||
$(this).parent().find("i").removeClass("current");
|
||||
$(this).find("i").addClass("current");
|
||||
});
|
||||
|
||||
/* 选择-物业类型 */
|
||||
$("#input_houseType").picker({
|
||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01c">\
|
||||
<button class="button button-link pull-right close-picker">确定</button>\
|
||||
<h1 class="title">物业类型</h1>\
|
||||
</header>',
|
||||
cols: [
|
||||
{
|
||||
textAlign: "center",
|
||||
values: ["普通住宅", "非普通住宅", "经济适用房"]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
/* 选择-计算方式 */
|
||||
$("#input_method").picker({
|
||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01c">\
|
||||
<button class="button button-link pull-right close-picker">确定</button>\
|
||||
<h1 class="title">计算方式</h1>\
|
||||
</header>',
|
||||
cols: [
|
||||
{
|
||||
textAlign: "center",
|
||||
values: ["按总价计算", "按差价计算"]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
/* 选择-房产购置年限 */
|
||||
$("#input_years").picker({
|
||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01c">\
|
||||
<button class="button button-link pull-right close-picker">确定</button>\
|
||||
<h1 class="title">房产购置年限</h1>\
|
||||
</header>',
|
||||
cols: [
|
||||
{
|
||||
textAlign: "center",
|
||||
values: ["不满2年", "2-5年", "5年以上"]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
/* 错误提示 */
|
||||
$("#calculation01_btn").on("click", function () {
|
||||
var a = $("#input_area01").val();
|
||||
var b = $("#input_unitPrice").val();
|
||||
if(a == ""){
|
||||
$.toast("请输入建筑面积");
|
||||
return false;
|
||||
}
|
||||
else if(b == ""){
|
||||
$.toast("请输入单价");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
$("#calculation02_btn").on("click", function () {
|
||||
var a = $("#input_area02").val();
|
||||
var b = $("#input_totalPrice").val();
|
||||
if(a == ""){
|
||||
$.toast("请输入建筑面积");
|
||||
return false;
|
||||
}
|
||||
else if(b == ""){
|
||||
$.toast("请输入总价");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,151 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>意见反馈</title>
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||
<link rel="shortcut icon" href="/favicon.ico">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<link rel="stylesheet" href="../../css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
|
||||
<style>
|
||||
.list-block ul:before{height:0;}
|
||||
.list-block ul:after{height:0;}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="page-group" id="app">
|
||||
<div class="page page-current">
|
||||
<header class="bar bar-nav barBorder">
|
||||
<button class="button button-link button-nav pull-left" onclick="back()">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
<h1 class="title">意见反馈</h1>
|
||||
</header>
|
||||
<div class="content f3">
|
||||
<div class="content-block-title">您的意见建议是我们的动力</div>
|
||||
<div class="list-block media-list mb05">
|
||||
<ul>
|
||||
<li style="width:100%;height:150px;">
|
||||
<a class="item-content" style="width:100%;height:100%;">
|
||||
<div class="item-inner" style="width:100%;height:100%;">
|
||||
<textarea v-model="content" placeholder="请输入您的意见或建议" style="width:100%;height:100%;"></textarea>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="list-block media-list">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-after">
|
||||
<span>联系方式</span>
|
||||
<input type="text" v-model="contact" id="input_contact" class="textAlignLeft" placeholder="手机/邮箱,以便及时接收反馈">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content-block loginBox">
|
||||
<p><a class="button button-big button-fill theme" id="bundling_btn" @click="binding">提交意见</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||
Zepto = $
|
||||
$.config = {router: false}
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="../../js/light7.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/vue.js" ></script>
|
||||
<script type="text/javascript" src="../../js/zepto.md5.js" ></script>
|
||||
<script type="text/javascript" src="../../config.js"></script>
|
||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<script type="text/javascript" src="../../js/plus.info.js" ></script>
|
||||
<script type="text/javascript" src="../../js/common.js" ></script>
|
||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||
<script>
|
||||
window.viewsPage="feedBack";
|
||||
|
||||
var vue = new Vue({
|
||||
el: '#app',
|
||||
data: {
|
||||
content:'', // 意见反馈
|
||||
contact:'' // 手机或邮箱
|
||||
},
|
||||
methods: {
|
||||
// 反馈意见检查
|
||||
checkContent: function() {
|
||||
if(this.content == ""){
|
||||
$.toast("请输入意见或建议");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
// 联系方式检查
|
||||
checkContact: function() {
|
||||
var mobile_reg = /^1\d{10}$/;
|
||||
var email_reg = /^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/;
|
||||
if (this.contact&&(!mobile_reg.test(this.contact)&&!email_reg.test(this.contact))) {
|
||||
$.toast("手机或邮箱格式错误");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
// 发送意见反馈
|
||||
binding: function() {
|
||||
if (this.checkContent() && this.checkContact()) {
|
||||
plus.nativeUI.showWaiting();
|
||||
axios.post("/rest/feedback/add", {
|
||||
content:this.content,
|
||||
contact:this.contact
|
||||
})
|
||||
.then(function (response) {
|
||||
var resData = response.data;
|
||||
if (resData.status) {
|
||||
$.toast(resData.message);
|
||||
back();
|
||||
} else {
|
||||
$.toast(resData.message);
|
||||
}
|
||||
plus.nativeUI.closeWaiting();
|
||||
})
|
||||
.catch(function (error) {
|
||||
$.toast(error);
|
||||
plus.nativeUI.closeWaiting();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -50,9 +50,9 @@
|
||||
<img src="../../images/headPortrait.png">
|
||||
<p><a class="button theme" href="#" onclick="gotoLogin()" >立即登录</a></p>
|
||||
</div>
|
||||
<div class="topic" style="display: none;">
|
||||
<div class="topicContent" style="padding-left:0;padding-right:0;">
|
||||
<div class="topicContent_center home">
|
||||
<div class="topic">
|
||||
<div class="topicContent homeBox" style="padding-left:0;padding-right:0;">
|
||||
<div class="topicContent_center home homeWin">
|
||||
<div>
|
||||
<i class="icon icon-personal01"></i>
|
||||
<span>公积金查询</span>
|
||||
@@ -120,9 +120,9 @@
|
||||
<img src="../../images/headPortrait.png" id="user_headImg" onclick="gotoUpdatePass()">
|
||||
<p id="user_mobile"><br><span class="tag"><!--<small>土豪</small>--></span></p>
|
||||
</div>
|
||||
<div class="topic" style="display: none;">
|
||||
<div class="topicContent" style="padding-left:0;padding-right:0;">
|
||||
<div class="topicContent_center home">
|
||||
<div class="topic">
|
||||
<div class="topicContent homeBox" style="padding-left:0;padding-right:0;">
|
||||
<div class="topicContent_center home homeWin" id="toolList">
|
||||
<div>
|
||||
<i class="icon icon-personal01"></i>
|
||||
<span>公积金查询</span>
|
||||
@@ -139,6 +139,10 @@
|
||||
<i class="icon icon-personal04"></i>
|
||||
<span>算房贷</span>
|
||||
</div>
|
||||
<div v-for="(t,index) in merchantTools">
|
||||
<img v-bind:src="t.iconUrl" style="width:45px;height:45px;margin:0 auto;" v-on:click="goto(t.url)">
|
||||
<span>{{t.toolName}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -245,7 +249,9 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/user/myFocus.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/user/myCollect.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/user/myHouse.js" charset="utf-8"></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* 说明-房产等级 */
|
||||
$(document).on('click','.alert-text-title', function () {
|
||||
$.alert('房产等级是房屋在城市中的综合评级,由高至低分别为 豪宅、公寓、平房、草屋、山洞共5个级别。', '房产等级');
|
||||
@@ -265,7 +271,20 @@ var tab = new Vue({
|
||||
mc_num:"0"
|
||||
}
|
||||
})
|
||||
|
||||
var toolList = new Vue({
|
||||
el:"#toolList",
|
||||
data:{
|
||||
merchantTools:[]
|
||||
},
|
||||
methods:{
|
||||
goto:function(url){
|
||||
alert(url)
|
||||
if (url != null && url != "") {
|
||||
clicked('../webview_embed.html', true,false,{},{url:url})
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
//判断是否登录
|
||||
function checkIsLogin(){
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
@@ -289,9 +308,14 @@ function checkIsLogin(){
|
||||
//跳转登录方法, 考虑回调
|
||||
function gotoLogin(){
|
||||
clicked('/views/user/codeSms.html',true,false,{},{},function(){
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
//plus.webview.getWebviewById('yfindex.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
}
|
||||
|
||||
checkIsLogin();
|
||||
})
|
||||
}
|
||||
@@ -419,6 +443,28 @@ function openSettingPage() {
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
|
||||
function onPlusReady(){
|
||||
axios.get(BASE_PATH + "/rest/usertool/merchantToolList",{params:{position:0}}).then(function(response){
|
||||
toolList.merchantTools = response.data.data;
|
||||
/* 获取homeWin div个数并计算homeWin宽度 */
|
||||
$(".homeWin").css("width",(90*(4+response.data.data.length))+"px");
|
||||
// var html = "";
|
||||
// for(var i=0;i<toolList.length;i++){
|
||||
// html += (i%4==0?'':'<div class="swiper-slide">')+
|
||||
// (i%4==0?'':'<div class="topicContent_center home">')+
|
||||
// '<div>'+
|
||||
// '<img src="'+toolList[i].iconUrl+'" style="width:45px;height:45px;margin:0 auto;" onclick="goto(\''+toolList[i].url+'\')">'+
|
||||
// '<span>'+toolList[i].toolName+'</span>'+
|
||||
// '</div>'+
|
||||
// (i%4==3?'':'</div>')+
|
||||
// (i%4==3?'':'</div>');
|
||||
// }
|
||||
// if(toolList.length%4!=3){
|
||||
// html += '</div>'+'</div>';
|
||||
// }
|
||||
// $("#toolList").append(html);
|
||||
}).catch(function(error){
|
||||
console.log(error);
|
||||
});
|
||||
checkIsLogin();
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
|
||||
<meta name="HandheldFriendly" content="true"/>
|
||||
<meta name="MobileOptimized" content="320"/>
|
||||
<title></title>
|
||||
<script type="text/javascript" src="../js/common.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
var ws=null,embed=null;
|
||||
// 扩展API加载完毕,现在可以正常调用扩展API
|
||||
function plusReady(){
|
||||
ws=plus.webview.currentWebview();
|
||||
ws.addEventListener('show',createEmbed,false);
|
||||
}
|
||||
// 判断扩展API是否准备,否则监听"plusready"事件
|
||||
if(window.plus){
|
||||
plusReady();
|
||||
}else{
|
||||
document.addEventListener("plusready",plusReady,false);
|
||||
}
|
||||
// 创建子Webview
|
||||
function createEmbed(){
|
||||
var topoffset='45px';
|
||||
if(plus.navigator.isImmersedStatusbar()){// 兼容immersed状态栏模式
|
||||
topoffset=(Math.round(plus.navigator.getStatusbarHeight())+45)+'px';
|
||||
}
|
||||
plus.nativeUI.showWaiting('',{style:'black',modal:false,background:'rgba(0,0,0,0)'});
|
||||
var self = plus.webview.currentWebview();
|
||||
var url = self.url;
|
||||
embed=plus.webview.create(url,
|
||||
'embed', {
|
||||
top : topoffset,
|
||||
bottom : '0px',
|
||||
position : 'dock',
|
||||
dock : 'bottom',
|
||||
bounce : 'vertical'
|
||||
});
|
||||
ws.append(embed);
|
||||
embed.addEventListener('loaded', function() {
|
||||
plus.nativeUI.closeWaiting();
|
||||
}, false);
|
||||
embed.addEventListener('loading', function() {
|
||||
plus.nativeUI.showWaiting('', {
|
||||
style : 'black',
|
||||
modal : false,
|
||||
background : 'rgba(0,0,0,0)'
|
||||
});
|
||||
}, false);
|
||||
}
|
||||
// 打开网址
|
||||
function openUrl() {
|
||||
var url = document.getElementById("url");
|
||||
embed.loadURL(url.value);
|
||||
url.blur();
|
||||
}
|
||||
// 页面加载后自动打开
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
if (embed) {
|
||||
openUrl();
|
||||
} else {
|
||||
auto = true;
|
||||
}
|
||||
}, false);
|
||||
// 页面跳转完成事件
|
||||
function onBrowserLoading() {
|
||||
document.getElementById("url").value = embed.getURL();
|
||||
}
|
||||
</script>
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8"/>
|
||||
<style type="text/css">
|
||||
#url{
|
||||
width:98%;
|
||||
-webkit-user-select:auto;
|
||||
padding-left:0;
|
||||
padding-right:0;
|
||||
background: rgba(0,0,0,0);
|
||||
border: 0px;
|
||||
border-bottom:1px solid #ECB100;
|
||||
border-radius: 0;
|
||||
outline:none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header id="header">
|
||||
<div class="nvbt iback" onclick="back(),plus.nativeUI.closeWaiting();"></div>
|
||||
<!-- <div class="nvtt">
|
||||
<form action="?" method="get" onsubmit="openUrl();return false;">
|
||||
<input id="url" type="url" value="${url}"/>
|
||||
</form>
|
||||
</div>
|
||||
<div class="nvbt" onclick="openUrl();">Go</div> -->
|
||||
</header>
|
||||
</body>
|
||||
<script type="text/javascript" src="../js/immersed.js" ></script>
|
||||
</html>
|
||||
@@ -1783,6 +1783,9 @@ function addItems(number, lastIndex) {
|
||||
return;
|
||||
}
|
||||
var html = '';
|
||||
if(lastIndex == 0){
|
||||
yesterDayDeployFlag = true;
|
||||
}
|
||||
for(var i in dataObj){
|
||||
if(i>=lastIndex){
|
||||
if((dataObj.length<lastIndex + number) || (i < lastIndex + number)){
|
||||
@@ -2041,7 +2044,6 @@ function addItems(number, lastIndex) {
|
||||
function loadImg(url, obj){
|
||||
if($(obj).attr("src") == 'cardInfoPlaceholderImg.png'){
|
||||
$(obj).attr("src", url)
|
||||
console.log("+=============="+url);
|
||||
}
|
||||
}
|
||||
//数量进行转换
|
||||
@@ -2093,6 +2095,8 @@ $(document).on('refresh', '.pull-to-refresh-content',function(e) {
|
||||
page = 1;
|
||||
dataObj = [];
|
||||
$("#newsList").html("");
|
||||
$(".infinite-scroll-preloader").show();
|
||||
$.attachInfiniteScroll($('.infinite-scroll'));
|
||||
initNews(page);
|
||||
}
|
||||
// 加载完毕需要重置
|
||||
|
||||