Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1
Conflicts: fangija-zsyf/js/district/districtDetail.js fangija-zsyf/views/house/houseDetail.html
This commit is contained in:
@@ -9,10 +9,6 @@ var mapLoadCount = 0;
|
|||||||
|
|
||||||
|
|
||||||
/* 关注&已关注切换 */
|
/* 关注&已关注切换 */
|
||||||
$(".collection01").on("click", function () {
|
|
||||||
doAddCollect()
|
|
||||||
});
|
|
||||||
|
|
||||||
function doAddCollect(){
|
function doAddCollect(){
|
||||||
if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
|
if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
|
||||||
clicked('../user/codeSms.html',true,false,{},{},function(){
|
clicked('../user/codeSms.html',true,false,{},{},function(){
|
||||||
@@ -34,7 +30,6 @@ function addCollect(){
|
|||||||
$(".collection02").show();
|
$(".collection02").show();
|
||||||
$.toast("随时掌握小区动态");
|
$.toast("随时掌握小区动态");
|
||||||
}
|
}
|
||||||
alert(12)
|
|
||||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||||
plus.webview.getWebviewById('yfindex.html').reload();
|
plus.webview.getWebviewById('yfindex.html').reload();
|
||||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||||
@@ -78,8 +73,23 @@ function removeCollect(){
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 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);
|
/*var t1 = window.setInterval(loadMap,1000);
|
||||||
function loadMap(){
|
function loadMap(){
|
||||||
mapLoadCount++;
|
mapLoadCount++;
|
||||||
if(lng && lat){
|
if(lng && lat){
|
||||||
@@ -94,7 +104,7 @@ function loadMap(){
|
|||||||
$("#mapDiv").hide();
|
$("#mapDiv").hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
//小区详情
|
//小区详情
|
||||||
function loadDistrictInfo(){
|
function loadDistrictInfo(){
|
||||||
@@ -286,12 +296,6 @@ function loadKLineData(city, region, name){
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#trendDiv1 a").click(function(){
|
|
||||||
//showTrends();
|
|
||||||
alert("trend");
|
|
||||||
var v = $(this).attr("t-v");
|
|
||||||
showTrends(v)
|
|
||||||
});
|
|
||||||
|
|
||||||
function showTrends(v){
|
function showTrends(v){
|
||||||
if(v == "36"){
|
if(v == "36"){
|
||||||
@@ -520,8 +524,8 @@ $("#trendDiv2 a").click(function(){
|
|||||||
|
|
||||||
/* 小区租金走势 */
|
/* 小区租金走势 */
|
||||||
|
|
||||||
function loadRentTrends(city, region, name){
|
function loadRentTrends(city, region, name, type){
|
||||||
var type = $("#trendDiv2 a.active").attr("t-v")
|
if(type == undefined) type= 2;
|
||||||
axios.get("/rest/trend/distRentTrends", {
|
axios.get("/rest/trend/distRentTrends", {
|
||||||
params: {
|
params: {
|
||||||
city: city,
|
city: city,
|
||||||
|
|||||||
@@ -49,11 +49,20 @@ Vue.component('city_increase_ranking',{
|
|||||||
},
|
},
|
||||||
follow:function(city,event){
|
follow:function(city,event){
|
||||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||||
alert("请先登录")
|
|
||||||
clicked('/views/user/passLogin.html',true,false,{},{},function(){
|
clicked('/views/user/passLogin.html',true,false,{},{},function(){
|
||||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
||||||
|
$(event.target).parent().children().removeClass("dn");
|
||||||
|
$(event.target).addClass("dn");
|
||||||
|
reloadMyFocus()
|
||||||
|
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||||
|
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||||
|
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||||
|
}).catch(function(error){
|
||||||
|
console.log(error)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
@@ -61,7 +70,6 @@ Vue.component('city_increase_ranking',{
|
|||||||
$(event.target).parent().children().removeClass("dn");
|
$(event.target).parent().children().removeClass("dn");
|
||||||
$(event.target).addClass("dn");
|
$(event.target).addClass("dn");
|
||||||
reloadMyFocus()
|
reloadMyFocus()
|
||||||
//plus.webview.getWebviewById('views/user/userInfo.html').reload()
|
|
||||||
}).catch(function(error){
|
}).catch(function(error){
|
||||||
console.log(error)
|
console.log(error)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -67,11 +67,20 @@ Vue.component('city_potential_ranking',{
|
|||||||
},
|
},
|
||||||
follow:function(city,event){
|
follow:function(city,event){
|
||||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||||
alert("请先登录")
|
|
||||||
clicked('/views/user/passLogin.html',true,false,{},{},function(){
|
clicked('/views/user/passLogin.html',true,false,{},{},function(){
|
||||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
||||||
|
$(event.target).parent().children().removeClass("dn");
|
||||||
|
$(event.target).addClass("dn");
|
||||||
|
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||||
|
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||||
|
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||||
|
reloadMyFocus()
|
||||||
|
}).catch(function(error){
|
||||||
|
console.log(error)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -70,8 +70,8 @@
|
|||||||
<div class="item-title"><i class="icon icon-address02"></i>{{city}}{{region}}{{address}}</div>
|
<div class="item-title"><i class="icon icon-address02"></i>{{city}}{{region}}{{address}}</div>
|
||||||
|
|
||||||
<div class="item-after">
|
<div class="item-after">
|
||||||
<a class="button theme collection collection01">关注</a>
|
<a class="button theme collection collection01" onclick="doAddCollect()">关注</a>
|
||||||
<a class="button collection collection02 dn">取消关注</a>
|
<a class="button collection collection02 dn" onclick="removeCollect()">取消关注</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-subtitle">
|
<div class="item-subtitle">
|
||||||
@@ -114,17 +114,17 @@
|
|||||||
<div class="topicContent" style="padding:0;">
|
<div class="topicContent" style="padding:0;">
|
||||||
<div class="content-block content-block01 content-block01a">
|
<div class="content-block content-block01 content-block01a">
|
||||||
<div class="buttons-row theme" id="trendTabDiv">
|
<div class="buttons-row theme" id="trendTabDiv">
|
||||||
<a href="#tabChart1" class="tab-link button active" id="tabAvgDiv">均价</a>
|
<a href="#tabChart1" class="tab-link button active" id="tabAvgDiv" @click="showChat(1)">均价</a>
|
||||||
<a href="#tabChart2" class="tab-link button" id="tabRentDiv">租金</a>
|
<a href="#tabChart2" class="tab-link button" id="tabRentDiv" @click="showChat(2)">租金</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tabs">
|
<div class="tabs">
|
||||||
<div id="tabChart1" class="tab tabChart1 active">
|
<div id="tabChart1" class="tab tabChart1 active">
|
||||||
<div class="content-block content-block01a" style="margin:0;padding-left:0;padding-right:0;">
|
<div class="content-block content-block01a" style="margin:0;padding-left:0;padding-right:0;">
|
||||||
<div class="buttons-row theme" style="padding:0 0.75rem;" id="trendDiv1">
|
<div class="buttons-row theme" style="padding:0 0.75rem;" id="trendDiv1">
|
||||||
<a t-v="6" class="tab-link button active">半年</a>
|
<a t-v="6" class="tab-link button active" onclick="showTrends(6)">半年</a>
|
||||||
<a t-v="12" class="tab-link button">一年</a>
|
<a t-v="12" class="tab-link button" onclick="showTrends(12)">一年</a>
|
||||||
<a t-v="36" class="tab-link button">三年</a>
|
<a t-v="36" class="tab-link button" onclick="showTrends(36)">三年</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="chart" id="chart01" style="height:360px;"></div>
|
<div class="chart" id="chart01" style="height:360px;"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -132,8 +132,8 @@
|
|||||||
<div id="tabChart2" class="tab tabChart2" style="display: block;">
|
<div id="tabChart2" class="tab tabChart2" style="display: block;">
|
||||||
<div class="content-block content-block01a" style="margin:0;padding-left:0;padding-right:0;">
|
<div class="content-block content-block01a" style="margin:0;padding-left:0;padding-right:0;">
|
||||||
<div class="buttons-row theme" style="padding:0 0.75rem;" id="trendDiv2">
|
<div class="buttons-row theme" style="padding:0 0.75rem;" id="trendDiv2">
|
||||||
<a t-v="2" class="tab-link button active">半年</a>
|
<a t-v="2" id="trendDivTab2" class="tab-link button active" onclick="showLoadRentTrends(2)">半年</a>
|
||||||
<a t-v="3" class="tab-link button">一年</a>
|
<a t-v="3" id="trendDivTab3" class="tab-link button" onclick="showLoadRentTrends(3)">一年</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="chart" id="chart02" style="margin-top:0.75rem;"></div>
|
<div class="chart" id="chart02" style="margin-top:0.75rem;"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -270,40 +270,61 @@ function onPlusReady() {
|
|||||||
name = self.name;
|
name = self.name;
|
||||||
// 创建根实例
|
// 创建根实例
|
||||||
baseInfo = new Vue({
|
baseInfo = new Vue({
|
||||||
el: '#districtBaseInfo',
|
el: '#districtBaseInfo',
|
||||||
data: {
|
data: {
|
||||||
name : "",
|
name : "",
|
||||||
city:"",
|
city:"",
|
||||||
region: "",
|
region: "",
|
||||||
address: "",
|
address: "",
|
||||||
avgPrice:"",
|
avgPrice:"",
|
||||||
oneMonthUpDownRange:"",
|
oneMonthUpDownRange:"",
|
||||||
priceRate:"",
|
priceRate:"",
|
||||||
cityPrice:"",
|
cityPrice:"",
|
||||||
finishBuildingDate:"",
|
finishBuildingDate:"",
|
||||||
householdCount:"",
|
householdCount:"",
|
||||||
cubagePercent:"",
|
cubagePercent:"",
|
||||||
carSiteCount:"",
|
carSiteCount:"",
|
||||||
virescencePercent:"",
|
virescencePercent:"",
|
||||||
estateCharge:"",
|
estateCharge:"",
|
||||||
moreArea:"",
|
moreArea:"",
|
||||||
developer:"",
|
developer:"",
|
||||||
estateCompany:"",
|
estateCompany:"",
|
||||||
tags:[],
|
tags:[],
|
||||||
nearDists:[],
|
nearDists:[],
|
||||||
regionIndex:"",
|
regionIndex:"",
|
||||||
schoolIndex:""
|
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);
|
loadKLineData(city, region, name);
|
||||||
/* 小区租金走势 */
|
/* 小区租金走势 */
|
||||||
loadRentTrends(city, region, name);
|
loadRentTrends(city, region, name,2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showLoadRentTrends(type) {
|
||||||
|
if(type == 3) {
|
||||||
|
document.getElementById("trendDivTab3").setAttribute("class","tab-link button active");
|
||||||
|
document.getElementById("trendDivTab2").setAttribute("class","tab-link button");
|
||||||
|
} else {
|
||||||
|
document.getElementById("trendDivTab3").setAttribute("class","tab-link button");
|
||||||
|
document.getElementById("trendDivTab2").setAttribute("class","tab-link button active");
|
||||||
|
}
|
||||||
|
|
||||||
|
loadRentTrends(city, region, name,type);
|
||||||
|
}
|
||||||
|
|
||||||
/*baseInfo = new Vue({
|
/*baseInfo = new Vue({
|
||||||
el: '#districtBaseInfo',
|
el: '#districtBaseInfo',
|
||||||
@@ -330,9 +351,21 @@ function onPlusReady() {
|
|||||||
regionIndex:"",
|
regionIndex:"",
|
||||||
schoolIndex:""
|
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";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
*/
|
||||||
function openMapWindow(){
|
function openMapWindow(){
|
||||||
clicked('arround.html',true,false,{},{city:city,region:region,name:name,lat:lat,lng:lng});
|
clicked('arround.html',true,false,{},{city:city,region:region,name:name,lat:lat,lng:lng});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -335,7 +335,6 @@ function addManagement(id, houseStatus, liveStatus){
|
|||||||
$.toast(response.data.data);
|
$.toast(response.data.data);
|
||||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||||
plus.webview.getWebviewById('views/house/houseList.html').reload();
|
|
||||||
}else{
|
}else{
|
||||||
$.toast(response.data.message);
|
$.toast(response.data.message);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,7 +94,7 @@
|
|||||||
<i class="icon icon-evaluation01"></i>
|
<i class="icon icon-evaluation01"></i>
|
||||||
<span>出售分析</span>
|
<span>出售分析</span>
|
||||||
</div>-->
|
</div>-->
|
||||||
<div onclick="openNewView('/views/rent/rent.html')">
|
<div onclick="gotoRentManager()">
|
||||||
<i class="icon icon-evaluation02"></i>
|
<i class="icon icon-evaluation02"></i>
|
||||||
<span>出租管理</span>
|
<span>出租管理</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -109,6 +109,39 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="topic rentBox dn">
|
||||||
|
<div class="topicContent" style="padding:0.5rem 0;">
|
||||||
|
<div class="list-block dataList">
|
||||||
|
<ul>
|
||||||
|
<li class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-title" style="color:#666;">目前状态</div>
|
||||||
|
<div class="item-after">出租</div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-title" style="color:#666;">出租日期</div>
|
||||||
|
<div class="item-after">{{rentTime}}</div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-title" style="color:#666;">每期租金</div>
|
||||||
|
<div class="item-after">{{rentPrice}}</div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class="item-content">
|
||||||
|
<div class="item-inner">
|
||||||
|
<div class="item-title" style="color:#666;">下次收租</div>
|
||||||
|
<div class="item-after">{{nextRent}}</div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="topic">
|
<div class="topic">
|
||||||
<div class="topicContent" style="padding:0.5rem 0;">
|
<div class="topicContent" style="padding:0.5rem 0;">
|
||||||
<div class="list-block">
|
<div class="list-block">
|
||||||
@@ -297,7 +330,7 @@ $.config = {router: false}
|
|||||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('plusready', onPlusReady, false);
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
var houseId="190763130039566336"; //= "186182250936643584";
|
var houseId="191190409534242816"; //= "186182250936643584";
|
||||||
var lat;
|
var lat;
|
||||||
var lng;
|
var lng;
|
||||||
var city;
|
var city;
|
||||||
@@ -313,7 +346,6 @@ function onPlusReady(){
|
|||||||
//houseId="106777351102136320";
|
//houseId="106777351102136320";
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
var baseInfo = new Vue({
|
var baseInfo = new Vue({
|
||||||
el: '#baseInfo',
|
el: '#baseInfo',
|
||||||
data: {
|
data: {
|
||||||
@@ -339,7 +371,10 @@ var baseInfo = new Vue({
|
|||||||
rate:"",
|
rate:"",
|
||||||
minSellPrice:"",
|
minSellPrice:"",
|
||||||
maxSellPrice:"",
|
maxSellPrice:"",
|
||||||
rentRooms:""
|
rentRooms:"",
|
||||||
|
rentTime : "-",
|
||||||
|
rentPrice : "-",
|
||||||
|
nextRent : "-"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -388,7 +423,18 @@ function init(){
|
|||||||
}else{
|
}else{
|
||||||
baseInfo.liveStatus='其它';
|
baseInfo.liveStatus='其它';
|
||||||
}
|
}
|
||||||
|
if(houseInfo.liveStatus=="出租"){
|
||||||
|
$('.rentBox').show();
|
||||||
|
if(houseInfo.leaseStartDate){
|
||||||
|
baseInfo.rentTime = formatTime(houseInfo.leaseStartDate)+"-"+formatTime(houseInfo.leaseEndDate);
|
||||||
|
baseInfo.rentPrice = houseInfo.rent+"元("+houseInfo.rentCycle+"/"+houseInfo.rentCycleUnit+")";
|
||||||
|
baseInfo.nextRent = formatTime2(houseInfo.lastRentDate);
|
||||||
|
}else{
|
||||||
|
baseInfo.rentTime = "-";
|
||||||
|
baseInfo.rentPrice = "-";
|
||||||
|
baseInfo.nextRent = "-";
|
||||||
|
}
|
||||||
|
}
|
||||||
baseInfo.estatetype=houseInfo.estatetype;
|
baseInfo.estatetype=houseInfo.estatetype;
|
||||||
baseInfo.totalPrice=houseInfo.totalPrice;
|
baseInfo.totalPrice=houseInfo.totalPrice;
|
||||||
baseInfo.price=houseInfo.price;
|
baseInfo.price=houseInfo.price;
|
||||||
@@ -407,6 +453,23 @@ function init(){
|
|||||||
console.log(error);
|
console.log(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function formatTime(time){
|
||||||
|
var now = new Date(time);
|
||||||
|
var year=now.getFullYear();
|
||||||
|
var month=now.getMonth()+1;
|
||||||
|
var date=now.getDate();
|
||||||
|
return year+"/"+month+"/"+date;
|
||||||
|
|
||||||
|
}
|
||||||
|
function formatTime2(time){
|
||||||
|
var now = new Date(time);
|
||||||
|
var year=now.getFullYear();
|
||||||
|
var month=now.getMonth()+1;
|
||||||
|
var date=now.getDate();
|
||||||
|
return month+"月"+date+"日";
|
||||||
|
|
||||||
|
}
|
||||||
function openMapWindow(){
|
function openMapWindow(){
|
||||||
clicked('/views/district/arround.html',true,false,{},{city:city,region:region,name:name,lat:lat,lng:lng});
|
clicked('/views/district/arround.html',true,false,{},{city:city,region:region,name:name,lat:lat,lng:lng});
|
||||||
}
|
}
|
||||||
@@ -425,6 +488,7 @@ $(document).on('click','.open-vertical-modal', function () {
|
|||||||
onClick: function() {
|
onClick: function() {
|
||||||
$('.open-vertical-modal').text('自住');
|
$('.open-vertical-modal').text('自住');
|
||||||
addManagement(id, houseStatus, "自住");
|
addManagement(id, houseStatus, "自住");
|
||||||
|
$('.rentBox').hide();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -432,6 +496,7 @@ $(document).on('click','.open-vertical-modal', function () {
|
|||||||
onClick: function() {
|
onClick: function() {
|
||||||
$('.open-vertical-modal').text('出租');
|
$('.open-vertical-modal').text('出租');
|
||||||
addManagement(id, houseStatus, "出租");
|
addManagement(id, houseStatus, "出租");
|
||||||
|
$('.rentBox').show();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -439,6 +504,7 @@ $(document).on('click','.open-vertical-modal', function () {
|
|||||||
onClick: function() {
|
onClick: function() {
|
||||||
$('.open-vertical-modal').text('空置');
|
$('.open-vertical-modal').text('空置');
|
||||||
addManagement(id, houseStatus, "空置");
|
addManagement(id, houseStatus, "空置");
|
||||||
|
$('.rentBox').hide();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -457,7 +523,7 @@ function addManagement(id, houseStatus, liveStatus){
|
|||||||
}).then(function (response) {
|
}).then(function (response) {
|
||||||
var status = response.data.status;
|
var status = response.data.status;
|
||||||
if(status){
|
if(status){
|
||||||
$.toast(response.data.data);
|
$.toast("修改状态成功!");
|
||||||
//window.location.reload();
|
//window.location.reload();
|
||||||
}else{
|
}else{
|
||||||
$.toast(response.data.message);
|
$.toast(response.data.message);
|
||||||
@@ -514,6 +580,9 @@ function openNewView(viewHtml) {
|
|||||||
function gotoLoanApply(){
|
function gotoLoanApply(){
|
||||||
clicked('/views/loan/loanInfo.html',true,false,{},{houseId: houseId, city: oriCity, mobile: ""},function(){})
|
clicked('/views/loan/loanInfo.html',true,false,{},{houseId: houseId, city: oriCity, mobile: ""},function(){})
|
||||||
}
|
}
|
||||||
|
function gotoRentManager(){
|
||||||
|
clicked('/views/rent/rentManager.html',true,false,{},{houseId: houseId},function(){})
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -243,7 +243,8 @@
|
|||||||
<div class="card cardNearby" v-for="nearDist in nears" @click="showDistrictDetail(nearDist.city, nearDist.region, nearDist.name)">
|
<div class="card cardNearby" v-for="nearDist in nears" @click="showDistrictDetail(nearDist.city, nearDist.region, nearDist.name)">
|
||||||
<div class="card-header">{{nearDist.sname}}</div>
|
<div class="card-header">{{nearDist.sname}}</div>
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<div class="card-content-inner">{{nearDist.avgPrice}}元/㎡</div>
|
<div class="card-content-inner" v-if="nearDist.avgPrice">{{nearDist.avgPrice}}元/㎡</div>
|
||||||
|
<div class="card-content-inner" v-else>暂无</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1505,12 +1506,19 @@ function markFocus(){
|
|||||||
|
|
||||||
function addFocus(city){
|
function addFocus(city){
|
||||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||||
alert("请先登录")
|
|
||||||
clicked('/views/user/passLogin.html',true,false,{},{},function(){
|
clicked('/views/user/passLogin.html',true,false,{},{},function(){
|
||||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
||||||
|
reloadMyFocus()
|
||||||
|
createData(city, myDatasVue.$data.cityDatas.length);
|
||||||
|
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||||
|
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||||
|
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||||
|
}).catch(function(error){
|
||||||
|
console.log(error)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -325,7 +325,7 @@ function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xq
|
|||||||
}
|
}
|
||||||
html += '<li><a href="#" onclick="gotoHouseDetail(\''+result.id+'\')" class="item-content">';
|
html += '<li><a href="#" onclick="gotoHouseDetail(\''+result.id+'\')" class="item-content">';
|
||||||
html += "<div class='item-inner'><div class='item-title-row'>";
|
html += "<div class='item-inner'><div class='item-title-row'>";
|
||||||
html += "<div class='item-title'>"+result.name+" <em>"+tempTotalPrice+"万</em><span class='tag'>";
|
html += "<div class='item-title'><label>"+result.name+"</label> <em>"+tempTotalPrice+"万</em><span class='tag'>";
|
||||||
if(result.liveStatus!=null && result.liveStatus.length>0){
|
if(result.liveStatus!=null && result.liveStatus.length>0){
|
||||||
html += "<small>"+result.liveStatus+"</small></span></div>";
|
html += "<small>"+result.liveStatus+"</small></span></div>";
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -19,13 +19,13 @@
|
|||||||
|
|
||||||
<div class="page-group">
|
<div class="page-group">
|
||||||
<div class="page page-current" id="regionInfo">
|
<div class="page page-current" id="regionInfo">
|
||||||
<header class="bar bar-nav barBorder">
|
<header class="bar bar-nav barBorder">
|
||||||
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||||
<span class="icon icon-left"></span>
|
<span class="icon icon-left"></span>
|
||||||
</button>
|
</button>
|
||||||
<h1 class="title">{{city}}各区县涨跌排行</h1>
|
<h1 class="title">{{city}}各区县涨跌排行</h1>
|
||||||
</header>
|
</header>
|
||||||
<div class="content infinite-scroll infinite-scroll-bottom pstion" data-distance="50">
|
<div class="content infinite-scroll infinite-scroll-bottom pstion" id="hasDataDiv" data-distance="50">
|
||||||
<div class="cardNearbyBox cardNearbyBox01 cardRankingBox">
|
<div class="cardNearbyBox cardNearbyBox01 cardRankingBox">
|
||||||
<div class="cardNearbyWin">
|
<div class="cardNearbyWin">
|
||||||
<div class="card cardNearby cardRanking" v-for="(info,index) in regionInfos" v-if="index < 3">
|
<div class="card cardNearby cardRanking" v-for="(info,index) in regionInfos" v-if="index < 3">
|
||||||
@@ -69,8 +69,14 @@
|
|||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 暂无数据效果 -->
|
||||||
|
<div class="content contentSuggest dn" id="noDataDiv" style="display: none;">
|
||||||
|
<div class="noData">
|
||||||
|
<img src="../../images/noData.png">
|
||||||
|
<p>{{city}}各区县涨跌排行数据目前仍在更新<br>敬请期待</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -112,7 +118,6 @@ $.config = {router: false}
|
|||||||
var city = self.city
|
var city = self.city
|
||||||
regionsInfoVue.$data.city = city;
|
regionsInfoVue.$data.city = city;
|
||||||
loadRegionInfo(city);
|
loadRegionInfo(city);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//loadRegionInfo("上海");
|
//loadRegionInfo("上海");
|
||||||
@@ -123,14 +128,19 @@ $.config = {router: false}
|
|||||||
}
|
}
|
||||||
}).then(function (response) {
|
}).then(function (response) {
|
||||||
var msg = response.data.data;
|
var msg = response.data.data;
|
||||||
if(msg){
|
if(response.data.status){
|
||||||
for(var i in msg){
|
if(msg!=null && msg.length>0){
|
||||||
var da = msg[i]
|
for(var i in msg){
|
||||||
da.oneMonthUpDownRange = (da.oneMonthUpDownRange*100).toFixed(2)
|
var da = msg[i]
|
||||||
|
da.oneMonthUpDownRange = (da.oneMonthUpDownRange*100).toFixed(2)
|
||||||
|
}
|
||||||
|
regionsInfoVue.$data.regionInfos = msg;
|
||||||
|
}else{
|
||||||
|
//控制显示无数据效果
|
||||||
|
$('#hasDataDiv').hide();
|
||||||
|
$('#noDataDiv').show();
|
||||||
}
|
}
|
||||||
regionsInfoVue.$data.regionInfos = msg;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
.catch(function (error) {
|
.catch(function (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|||||||
@@ -170,15 +170,10 @@ function onPlusReady() {
|
|||||||
id = self.newsId;
|
id = self.newsId;
|
||||||
shareId = id
|
shareId = id
|
||||||
shareUrl = shareUrl+id
|
shareUrl = shareUrl+id
|
||||||
$.ajax({
|
|
||||||
type : 'get',
|
axios.get("/rest/news/detail",{params:{newsId:id}}).then(function(response){
|
||||||
url : BASE_PATH + "/rest/news/detail",
|
if(response.data.code==200){
|
||||||
data:{newsId:id},
|
data = response.data.data
|
||||||
dataType:'json',
|
|
||||||
async:false,
|
|
||||||
success:function(result){
|
|
||||||
if(result.code==200){
|
|
||||||
data = result.data
|
|
||||||
$("#title").text(data.title)
|
$("#title").text(data.title)
|
||||||
$("#title2").text(data.title)
|
$("#title2").text(data.title)
|
||||||
$("#source").text(data.source==null?"":"来源:"+data.source)
|
$("#source").text(data.source==null?"":"来源:"+data.source)
|
||||||
@@ -200,10 +195,10 @@ function onPlusReady() {
|
|||||||
//是否收藏
|
//是否收藏
|
||||||
isCollect();
|
isCollect();
|
||||||
}
|
}
|
||||||
},
|
|
||||||
error:function(){
|
}).catch(function(error){
|
||||||
}
|
console.log(error)
|
||||||
})
|
});
|
||||||
getPosition();
|
getPosition();
|
||||||
updateSerivces();
|
updateSerivces();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
<div class="page-group">
|
<div class="page-group">
|
||||||
<div class="page page-current">
|
<div class="page page-current">
|
||||||
<header class="bar bar-nav">
|
<header class="bar bar-nav">
|
||||||
<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
|
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||||
<span class="icon icon-left"></span>
|
<span class="icon icon-left"></span>
|
||||||
</button>
|
</button>
|
||||||
<h1 class="title">出租管理</h1>
|
<h1 class="title">出租管理</h1>
|
||||||
@@ -126,33 +126,42 @@ $.config = {router: false}
|
|||||||
document.addEventListener('plusready', onPlusReady, false);
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
function onPlusReady() {
|
function onPlusReady() {
|
||||||
var self = plus.webview.currentWebview();
|
var self = plus.webview.currentWebview();
|
||||||
id = self.id
|
id = self.houseId
|
||||||
axios.get('/rest/rent/queryHouseRent',{params:{id:id}}).then(function(response){
|
axios.get('/rest/rent/queryHouseRent',{params:{id:id}}).then(function(response){
|
||||||
var data = response.data.data.houses;
|
// var data = response.data.data.houses;
|
||||||
$.each(data,function(i){
|
// $.each(data,function(i){
|
||||||
var active = "";
|
// var active = "";
|
||||||
var houseRoomNum = "";
|
// var houseRoomNum = "";
|
||||||
if(this.id == id){
|
// if(this.id == id){
|
||||||
active = "active"
|
// active = "active"
|
||||||
}
|
// }
|
||||||
if(this.houseRoomNum){
|
// if(this.houseRoomNum){
|
||||||
houseRoomNum = '<small>'+this.houseRoomNum+'</small>';
|
// houseRoomNum = '<small>'+this.houseRoomNum+'</small>';
|
||||||
}
|
// }
|
||||||
$("#titleList").append('<a v-bind:val="'+this.id+'" class="tab-link button '+active+'">'+
|
// $("#titleList").append('<a v-bind:val="'+this.id+'" class="tab-link button '+active+'">'+
|
||||||
'<label>'+this.name+'</label>'+houseRoomNum+'</a>')
|
// '<label>'+this.name+'</label>'+houseRoomNum+'</a>')
|
||||||
$(".buttons-tab01 a").click(function(){
|
// $(".buttons-tab01 a").click(function(){
|
||||||
var id = $(this).attr("val")
|
// var id = $(this).attr("val")
|
||||||
window.location.href = "index?id="+id;
|
// window.location.href = "index?id="+id;
|
||||||
});
|
// });
|
||||||
})
|
// })
|
||||||
var houseInfo = response.data.data.houseInfo;
|
var houseInfo = response.data.data.houseInfo;
|
||||||
edit.liveStatus=houseInfo.liveStatus;
|
if(houseInfo.liveStatus=="出租"){
|
||||||
edit.leaseStartDate=getNowFormatDate(houseInfo.leaseStartDate);
|
edit.liveStatus=houseInfo.liveStatus;
|
||||||
edit.leaseEndDate = getNowFormatDate(houseInfo.leaseEndDate);
|
edit.leaseStartDate=getNowFormatDate(houseInfo.leaseStartDate);
|
||||||
edit.lastRentDate = getNowFormatDate(houseInfo.lastRentDate);
|
edit.leaseEndDate = getNowFormatDate(houseInfo.leaseEndDate);
|
||||||
edit.nowDay = getNowFormatDate(response.data.data.nowDay);
|
edit.lastRentDate = getNowFormatDate(houseInfo.lastRentDate);
|
||||||
edit.rent = houseInfo.rent;
|
edit.nowDay = getNowFormatDate(response.data.data.nowDay);
|
||||||
edit.cycle = response.data.data.cycle;
|
if(houseInfo.rent==0){
|
||||||
|
edit.rent = "";
|
||||||
|
}else{
|
||||||
|
edit.rent = houseInfo.rent;
|
||||||
|
}
|
||||||
|
edit.cycle = response.data.data.cycle;
|
||||||
|
}else{
|
||||||
|
edit.cycle = "1 月 /次";
|
||||||
|
}
|
||||||
|
|
||||||
/* 选择-起租日期 */
|
/* 选择-起租日期 */
|
||||||
$("#input_time01").datetimePicker({
|
$("#input_time01").datetimePicker({
|
||||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
||||||
@@ -202,7 +211,6 @@ function onPlusReady() {
|
|||||||
console.log(error)
|
console.log(error)
|
||||||
});
|
});
|
||||||
|
|
||||||
//var id="165878889770385408"
|
|
||||||
/* 编辑状态-确定 */
|
/* 编辑状态-确定 */
|
||||||
$(document).on('click','#confirm_btn', function () {
|
$(document).on('click','#confirm_btn', function () {
|
||||||
|
|
||||||
@@ -281,6 +289,7 @@ function onPlusReady() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
axios.post("/rest/rent/changeStatus",d).then(function(response){
|
axios.post("/rest/rent/changeStatus",d).then(function(response){
|
||||||
|
plus.webview.getWebviewById('/views/house/detail.html').reload();
|
||||||
back(),plus.nativeUI.closeWaiting();
|
back(),plus.nativeUI.closeWaiting();
|
||||||
}).catch(function(error){
|
}).catch(function(error){
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|||||||
@@ -119,6 +119,18 @@ $(".check").on("click", function () {
|
|||||||
function openView() {
|
function openView() {
|
||||||
clicked(BASE_PATH + '/user/agreement',true)
|
clicked(BASE_PATH + '/user/agreement',true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var originalHeight=document.documentElement.clientHeight || document.body.clientHeight;
|
||||||
|
window.onresize=function(){
|
||||||
|
//软键盘弹起与隐藏 都会引起窗口的高度发生变化
|
||||||
|
var resizeHeight=document.documentElement.clientHeight || document.body.clientHeight;
|
||||||
|
if(resizeHeight*1<originalHeight*1){ //resizeHeight<originalHeight证明窗口被挤压了
|
||||||
|
plus.webview.currentWebview().setStyle({
|
||||||
|
height:originalHeight
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -167,6 +167,7 @@
|
|||||||
<div id="tabList2" class="tab">
|
<div id="tabList2" class="tab">
|
||||||
<div class="list-block media-list">
|
<div class="list-block media-list">
|
||||||
<ul class="list-container" id="mf_ul">
|
<ul class="list-container" id="mf_ul">
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<!-- 分页加载效果, 默认不显示, 和 加载loading页区分开-->
|
<!-- 分页加载效果, 默认不显示, 和 加载loading页区分开-->
|
||||||
@@ -176,11 +177,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 我的收藏 -->
|
<!-- 我的收藏 -->
|
||||||
<div id="tabList3" class="tab">
|
<div id="tabList3" class="tab">
|
||||||
<div class="list-block" >
|
<div class="list-block media-list" id="myColect">
|
||||||
<ul class="list-container" id="myColect">
|
<!-- <ul class="list-container" >
|
||||||
<!-- 动态拼接内容 -->
|
|
||||||
</ul>
|
</ul>-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 分页加载效果, 默认不显示, 和 加载loading页区分开-->
|
<!-- 分页加载效果, 默认不显示, 和 加载loading页区分开-->
|
||||||
<div id="loadTip3" class="infinite-scroll-preloader">
|
<div id="loadTip3" class="infinite-scroll-preloader">
|
||||||
<div class="preloader"></div>
|
<div class="preloader"></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user