Merge branch 'YOUFANGAPP1.1.1' of http://192.168.0.27/dev0/youfang-app into YOUFANGAPP1.1.1
This commit is contained in:
+10
-16
@@ -1315,19 +1315,13 @@ input[type=range]::-webkit-slider-thumb {
|
|||||||
.contentStart .startImg{width:100%;}
|
.contentStart .startImg{width:100%;}
|
||||||
|
|
||||||
/* 引导页 */
|
/* 引导页 */
|
||||||
.swiper-container{width:100%;height:100%;background:#fff;z-index:10000;}
|
.guideSwiper.swiper-container{width:100%;height:100%;background:#fff;z-index:10000;}
|
||||||
.swiper-slide img{margin:0 auto;margin-top:7rem;}
|
.guideSwiper .swiper-slide img{width:100%;}
|
||||||
.swiper-slide img.guideImg01{width:90%;}
|
.guideSwiper .swiper-slide div{position:absolute;bottom:5rem;width:100%;}
|
||||||
.swiper-slide img.guideImg02{width:85%;}
|
.guideSwiper .swiper-slide div.content-block{bottom:0.5rem;}
|
||||||
.swiper-slide img.guideImg03{width:55%;}
|
.guideSwiper .swiper-slide div.content-block .button{width:50%;margin:0 auto;height:2.1rem;line-height:2rem;}
|
||||||
.swiper-slide div{position:absolute;bottom:5rem;width:100%;}
|
.guideSwiper .swiper-pagination-bullet{width:10px;height:10px;background:#D7D7D7;opacity:1;}
|
||||||
.swiper-slide p{text-align:center;padding:0 1rem;}
|
.guideSwiper .swiper-pagination-bullet-active{width:22px;height:10px;background:#F18D00;border-radius:0.3rem;}
|
||||||
.swiper-slide p label{font-size:1rem;}
|
|
||||||
.swiper-slide p small{font-size:0.7rem;color:#999;}
|
|
||||||
.swiper-slide div.content-block{bottom:0.5rem;}
|
|
||||||
.swiper-slide div.content-block .button{width:50%;margin:0 auto;height:2.1rem;line-height:2rem;}
|
|
||||||
.swiper-pagination-bullet{width:10px;height:10px;background:#D7D7D7;opacity:1;}
|
|
||||||
.swiper-pagination-bullet-active{width:22px;height:10px;background:#F18D00;border-radius:0.3rem;}
|
|
||||||
|
|
||||||
/* 字体图标 */
|
/* 字体图标 */
|
||||||
@font-face {font-family: "iconfont";
|
@font-face {font-family: "iconfont";
|
||||||
@@ -1423,9 +1417,9 @@ input[type=range]::-webkit-slider-thumb {
|
|||||||
@media(min-height:750px){
|
@media(min-height:750px){
|
||||||
.bar-tab{bottom:1.7rem;}
|
.bar-tab{bottom:1.7rem;}
|
||||||
.bar-tab ~ .content{bottom:4.2rem;}
|
.bar-tab ~ .content{bottom:4.2rem;}
|
||||||
.swiper-slide div{bottom:12rem;}
|
.guideSwiper .swiper-slide div{bottom:12rem;}
|
||||||
.swiper-slide div.content-block{bottom:5rem;}
|
.guideSwiper .swiper-slide div.content-block{bottom:5rem;}
|
||||||
.swiper-container-horizontal>.swiper-pagination{bottom:4rem;}
|
.guideSwiper.swiper-container-horizontal >.swiper-pagination{bottom:4rem;}
|
||||||
}
|
}
|
||||||
@media only screen and (-webkit-min-device-pixel-ratio:2){
|
@media only screen and (-webkit-min-device-pixel-ratio:2){
|
||||||
.list-block .item-inner:after{-webkit-transform:scaleY(1);transform:scaleY(1);}
|
.list-block .item-inner:after{-webkit-transform:scaleY(1);transform:scaleY(1);}
|
||||||
|
|||||||
@@ -27,60 +27,52 @@ document.addEventListener("plusready", function() {
|
|||||||
if (payload.type == "0") {
|
if (payload.type == "0") {
|
||||||
plus.ui.alert(title+"\n"+content);
|
plus.ui.alert(title+"\n"+content);
|
||||||
} else if (payload.type == "1") {
|
} else if (payload.type == "1") {
|
||||||
plus.ui.alert(title+"\n"+content,function(){
|
plus.ui.alert(title+"\n"+content,function(){
|
||||||
if (payload.url == '/house/index') {
|
if(plus.webview.getWebviewById('H5693FF3D')==null){
|
||||||
plus.webview.show('yfindex.html');
|
plus.webview.show(plus.webview.getWebviewById("HBuilder"));
|
||||||
} else {
|
}else{
|
||||||
plus.webview.show(BASE_PATH + payload.url);
|
plus.webview.show(plus.webview.getWebviewById("H5693FF3D"));
|
||||||
}
|
}
|
||||||
//切换选项卡高亮
|
var targetTab = payload.url+".html";
|
||||||
var defaultTab = document.getElementById("defaultTab");
|
var defaultTab = document.getElementById(targetTab);
|
||||||
var quotations = document.getElementById("quotations");
|
//模拟首页点击
|
||||||
var selfInfo = document.getElementById("selfInfo");
|
mui.trigger(defaultTab, 'tap');
|
||||||
defaultTab.classList.remove("mui-active");
|
//切换选项卡高亮
|
||||||
quotations.classList.remove("mui-active");
|
var current = document.querySelector(".mui-bar-tab>.mui-tab-item.mui-active");
|
||||||
selfInfo.classList.remove("mui-active");
|
if (defaultTab != current) {
|
||||||
if (payload.url == '/quotations/index') {
|
current.classList.remove('mui-active');
|
||||||
quotations.classList.add("mui-active");
|
defaultTab.classList.add('mui-active');
|
||||||
} else if(payload.url == '/selfInfo/index') {
|
|
||||||
selfInfo.classList.add("mui-active");
|
|
||||||
} else {
|
|
||||||
defaultTab.classList.add("mui-active");
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (payload.type == "2") {
|
} else if (payload.type == "2") {
|
||||||
plus.ui.alert(title+"\n"+content,function(){
|
plus.ui.alert(title+"\n"+content,function(){
|
||||||
openUrl(BASE_PATH+'/message/openView?url='+payload.url);
|
clicked('views/webview_embed.html', true,false,{},{url:payload.url})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (payload.type == "0") {
|
if (payload.type == "0") {
|
||||||
plus.ui.alert(content);
|
plus.ui.alert(content);
|
||||||
} else if (payload.type == "1") {
|
} else if (payload.type == "1") {
|
||||||
plus.ui.alert(content,function(){
|
plus.ui.alert(title+"\n"+content,function(){
|
||||||
if (payload.url == '/house/index') {
|
if(plus.webview.getWebviewById('H5693FF3D')==null){
|
||||||
plus.webview.show('yfindex.html');
|
plus.webview.show(plus.webview.getWebviewById("HBuilder"));
|
||||||
} else {
|
}else{
|
||||||
plus.webview.show(BASE_PATH + payload.url);
|
plus.webview.show(plus.webview.getWebviewById("H5693FF3D"));
|
||||||
}
|
}
|
||||||
//切换选项卡高亮
|
var targetTab = payload.url+".html";
|
||||||
var defaultTab = document.getElementById("defaultTab");
|
var defaultTab = document.getElementById(targetTab);
|
||||||
var quotations = document.getElementById("quotations");
|
//模拟首页点击
|
||||||
var selfInfo = document.getElementById("selfInfo");
|
mui.trigger(defaultTab, 'tap');
|
||||||
defaultTab.classList.remove("mui-active");
|
//切换选项卡高亮
|
||||||
quotations.classList.remove("mui-active");
|
var current = document.querySelector(".mui-bar-tab>.mui-tab-item.mui-active");
|
||||||
selfInfo.classList.remove("mui-active");
|
if (defaultTab != current) {
|
||||||
if (payload.url == '/quotations/index') {
|
current.classList.remove('mui-active');
|
||||||
quotations.classList.add("mui-active");
|
defaultTab.classList.add('mui-active');
|
||||||
} else if(payload.url == '/selfInfo/index') {
|
|
||||||
selfInfo.classList.add("mui-active");
|
|
||||||
} else {
|
|
||||||
defaultTab.classList.add("mui-active");
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (payload.type == "2") {
|
} else if (payload.type == "2") {
|
||||||
plus.ui.alert(content,function(){
|
plus.ui.alert(content,function(){
|
||||||
openUrl(BASE_PATH+'/message/openView?url='+payload.url);
|
clicked('views/webview_embed.html', true,false,{},{url:payload.url})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -397,6 +397,8 @@ function getAnalysisDetail(){
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//当前小区在当前城市占比情况
|
||||||
houseInfo.city = _houseInfo.city;
|
houseInfo.city = _houseInfo.city;
|
||||||
houseInfo.roseRanking = _houseInfo.roseRanking;
|
houseInfo.roseRanking = _houseInfo.roseRanking;
|
||||||
houseInfo.avgpriceRanking = _houseInfo.avgpriceRanking;
|
houseInfo.avgpriceRanking = _houseInfo.avgpriceRanking;
|
||||||
@@ -406,6 +408,16 @@ function getAnalysisDetail(){
|
|||||||
$('#roseRankingPercent').css("width", houseInfo.roseRanking+"%");
|
$('#roseRankingPercent').css("width", houseInfo.roseRanking+"%");
|
||||||
$('#sliderNotePercent').css("left", resultsMap.priceRateContent+"%");
|
$('#sliderNotePercent').css("left", resultsMap.priceRateContent+"%");
|
||||||
$('#curRatePercent').css("width", resultsMap.curRate+"%");
|
$('#curRatePercent').css("width", resultsMap.curRate+"%");
|
||||||
|
if((_houseInfo.roseRanking == 0) && (_houseInfo.avgpriceRanking == 0 || resultsMap.priceRateContent == 0 || _houseInfo.price == 0 || _houseInfo.minSellPrice == 0 || _houseInfo.maxSellPrice == 0 || resultsMap.curRate == 0)){
|
||||||
|
$('#rankingAndPriceContent').hide();
|
||||||
|
}
|
||||||
|
if(_houseInfo.roseRanking == 0){
|
||||||
|
$('#rankingAndPriceContentRanking').hide();
|
||||||
|
}
|
||||||
|
if(_houseInfo.avgpriceRanking == 0 || resultsMap.priceRateContent == 0 || _houseInfo.price == 0 || _houseInfo.minSellPrice == 0 || _houseInfo.maxSellPrice == 0 || resultsMap.curRate == 0){
|
||||||
|
$('#rankingAndPriceContentPrice').hide();
|
||||||
|
}
|
||||||
|
|
||||||
//挂牌建议
|
//挂牌建议
|
||||||
houseInfo.minAndMaxTotalPrice = (resultsMap.minTotalPrice==0 || resultsMap.maxTotalPrice==0)?"暂无":(parseFloat(resultsMap.minTotalPrice)/10000).toFixed(2)+"万"+" - "+(parseFloat(resultsMap.maxTotalPrice)/10000).toFixed(2)+"万";
|
houseInfo.minAndMaxTotalPrice = (resultsMap.minTotalPrice==0 || resultsMap.maxTotalPrice==0)?"暂无":(parseFloat(resultsMap.minTotalPrice)/10000).toFixed(2)+"万"+" - "+(parseFloat(resultsMap.maxTotalPrice)/10000).toFixed(2)+"万";
|
||||||
houseInfo.minAndMaxPrice = (resultsMap.minPrice==0 || resultsMap.maxPrice==0)?"暂无":(parseFloat(resultsMap.minPrice)/10000).toFixed(2)+"万/㎡"+" - "+(parseFloat(resultsMap.maxPrice)/10000).toFixed(2)+"万/㎡";
|
houseInfo.minAndMaxPrice = (resultsMap.minPrice==0 || resultsMap.maxPrice==0)?"暂无":(parseFloat(resultsMap.minPrice)/10000).toFixed(2)+"万/㎡"+" - "+(parseFloat(resultsMap.maxPrice)/10000).toFixed(2)+"万/㎡";
|
||||||
@@ -437,6 +449,8 @@ function getAnalysisDetail(){
|
|||||||
//控制周边中介量在当前城市排名显示
|
//控制周边中介量在当前城市排名显示
|
||||||
if(resultsMap.maxCityAgency == 0 || resultsMap.agencyLevel == 0 ){
|
if(resultsMap.maxCityAgency == 0 || resultsMap.agencyLevel == 0 ){
|
||||||
$('#maxCityAgencyContent').hide();
|
$('#maxCityAgencyContent').hide();
|
||||||
|
//添加此topic, 控制结构显示
|
||||||
|
$('#maxCityAgencyContent_').show();
|
||||||
}
|
}
|
||||||
//周边房产中介显示
|
//周边房产中介显示
|
||||||
if(resultsMap.agencyCount == 0){
|
if(resultsMap.agencyCount == 0){
|
||||||
|
|||||||
@@ -80,9 +80,15 @@ function messageGoto(_this,operation,operationPage,mid){
|
|||||||
// plus.webview.create(pages, pages, subpage_style);
|
// plus.webview.create(pages, pages, subpage_style);
|
||||||
// }
|
// }
|
||||||
// plus.webview.show(pages);
|
// plus.webview.show(pages);
|
||||||
mui.fire(plus.webview.getWebviewById('HBuilder'),'switchView',{
|
if(plus.webview.getWebviewById('H5693FF3D')==null){
|
||||||
|
mui.fire(plus.webview.getWebviewById('HBuilder'),'switchView',{
|
||||||
name:pages
|
name:pages
|
||||||
});
|
});
|
||||||
|
}else{
|
||||||
|
mui.fire(plus.webview.getWebviewById('H5693FF3D'),'switchView',{
|
||||||
|
name:pages
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(operation==2){
|
if(operation==2){
|
||||||
if (operationPage != null && operationPage != "") {
|
if (operationPage != null && operationPage != "") {
|
||||||
|
|||||||
+9
-24
@@ -216,38 +216,23 @@
|
|||||||
|
|
||||||
// 推送消息跳转页面
|
// 推送消息跳转页面
|
||||||
window.addEventListener('switchView',function(event){
|
window.addEventListener('switchView',function(event){
|
||||||
var self = plus.webview.currentWebview();
|
console.log(event.detail.name);
|
||||||
console.log(event.detail.name)
|
if(plus.webview.getWebviewById('H5693FF3D')==null){
|
||||||
plus.webview.show(plus.webview.getWebviewById("HBuilder"));
|
plus.webview.show(plus.webview.getWebviewById("HBuilder"));
|
||||||
var targetTab = event.detail.name;
|
}else{
|
||||||
if (targetTab == activeTab) {
|
plus.webview.show(plus.webview.getWebviewById("H5693FF3D"));
|
||||||
|
}
|
||||||
|
var targetTab = event.detail.name;
|
||||||
|
if (targetTab == activeTab) {
|
||||||
plus.webview.show(targetTab);
|
plus.webview.show(targetTab);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//若为iOS平台或非首次显示,则直接显示
|
|
||||||
if(mui.os.ios||aniShow[targetTab]){
|
|
||||||
if(plus.webview.getWebviewById(targetTab)==null){
|
|
||||||
var sub = plus.webview.create(targetTab, targetTab, subpage_style)
|
|
||||||
self.append(sub);
|
|
||||||
}
|
|
||||||
plus.webview.show(targetTab);
|
|
||||||
}else{
|
|
||||||
//否则,使用fade-in动画,且保存变量
|
|
||||||
var temp = {};
|
|
||||||
temp[targetTab] = "true";
|
|
||||||
mui.extend(aniShow,temp);
|
|
||||||
plus.webview.show(targetTab,"fade-in",300);
|
|
||||||
}
|
|
||||||
//隐藏当前;
|
|
||||||
plus.webview.hide(activeTab);
|
|
||||||
//更改当前活跃的选项卡
|
|
||||||
activeTab = targetTab;
|
|
||||||
var defaultTab = document.getElementById(targetTab);
|
var defaultTab = document.getElementById(targetTab);
|
||||||
//模拟首页点击
|
//模拟首页点击
|
||||||
mui.trigger(defaultTab, 'tap');
|
mui.trigger(defaultTab, 'tap');
|
||||||
//切换选项卡高亮
|
//切换选项卡高亮
|
||||||
var current = document.querySelector(".mui-bar-tab>.mui-tab-item.mui-active");
|
var current = document.querySelector(".mui-bar-tab>.mui-tab-item.mui-active");
|
||||||
if (defaultTab !== current) {
|
if (defaultTab != current) {
|
||||||
current.classList.remove('mui-active');
|
current.classList.remove('mui-active');
|
||||||
defaultTab.classList.add('mui-active');
|
defaultTab.classList.add('mui-active');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,16 +20,16 @@
|
|||||||
|
|
||||||
<div class="page-group" id="app">
|
<div class="page-group" id="app">
|
||||||
<div class="swiper-container guideSwiper dn" data-space-between="10">
|
<div class="swiper-container guideSwiper dn" data-space-between="10">
|
||||||
<div class="swiper-wrapper">
|
<div class="swiper-wrapper">
|
||||||
<div class="swiper-slide" v-for="(img,index) in guideImgs">
|
<div class="swiper-slide" v-for="(img,index) in guideImgs">
|
||||||
<img v-bind:src="img" class="guideImg01">
|
<img v-bind:src="img">
|
||||||
<div class="content-block" v-if="index==guideImgs.length-1">
|
<div class="content-block" v-if="index==guideImgs.length-1">
|
||||||
<p><a class="button button-big theme">开启有房之旅</a></p>
|
<p><a class="button button-big theme">开启有房之旅</a></p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="swiper-pagination"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="swiper-pagination"></div>
|
|
||||||
</div>
|
|
||||||
<div class="page page-current">
|
<div class="page page-current">
|
||||||
<div class="content contentStart">
|
<div class="content contentStart">
|
||||||
<a class="time" @click="skip()">跳过 <span id="time">5</span></a>
|
<a class="time" @click="skip()">跳过 <span id="time">5</span></a>
|
||||||
|
|||||||
@@ -264,7 +264,7 @@
|
|||||||
<div class="item-inner">
|
<div class="item-inner">
|
||||||
<div class="item-title-row">
|
<div class="item-title-row">
|
||||||
<div class="item-title">
|
<div class="item-title">
|
||||||
<font>{{house.name}} {{house.houseNum+"号"}}{{house.roomNum+"室"}}</font><br>
|
<font>{{house.name}} {{house.houseRoomNum}}</font><br>
|
||||||
<small>{{house.city}}{{house.region}}{{house.address}}</small>
|
<small>{{house.city}}{{house.region}}{{house.address}}</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<h1 class="title">置换方案建议</h1>
|
<h1 class="title">置换方案建议</h1>
|
||||||
</header>
|
</header>
|
||||||
<div class="content contentSuggest" id="resultDiv" v-cloak>
|
<div class="content contentSuggest infinite-scroll infinite-scroll-bottom" data-distance="50" id="resultDiv" v-cloak>
|
||||||
<p>匹配出满足需求的<em>{{matchCount}}</em>个小区,智能推荐以下最合适的:</p>
|
<p>匹配出满足需求的<em>{{matchCount}}</em>个小区,智能推荐以下最合适的:</p>
|
||||||
<div class="selectContainer">
|
<div class="selectContainer">
|
||||||
<div class="selectBox row">
|
<div class="selectBox row">
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content infinite-scroll infinite-scroll-bottom pstion" data-distance="50">
|
<div>
|
||||||
<div class="list-block media-list">
|
<div class="list-block media-list">
|
||||||
<ul class="list-container">
|
<ul class="list-container">
|
||||||
|
|
||||||
|
|||||||
@@ -1278,6 +1278,11 @@ $.config = {router: false}
|
|||||||
hotCitys : []
|
hotCitys : []
|
||||||
},methods: {
|
},methods: {
|
||||||
openHotCity:function(index) {
|
openHotCity:function(index) {
|
||||||
|
var eventType = "hotCityClick";
|
||||||
|
var dataMap = {};
|
||||||
|
dataMap["city"]=this.hotCitys[index].city;
|
||||||
|
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||||
|
|
||||||
clicked('../house/cityDetail.html',true,false,{},{city:this.hotCitys[index].city},function(){
|
clicked('../house/cityDetail.html',true,false,{},{city:this.hotCitys[index].city},function(){
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -190,6 +190,12 @@ 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){
|
||||||
|
var eventType = "addEvaluateManageClick";
|
||||||
|
var dataMap = {};
|
||||||
|
dataMap["hid"]=id;
|
||||||
|
dataMap["liveStatus"]=liveStatus;
|
||||||
|
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||||
|
|
||||||
$.toast(response.data.data);
|
$.toast(response.data.data);
|
||||||
$('.loadingBgDiv').show();
|
$('.loadingBgDiv').show();
|
||||||
checkIsLogin();
|
checkIsLogin();
|
||||||
|
|||||||
@@ -95,22 +95,28 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="topic">
|
<div class="topic" id="rankingAndPriceContent">
|
||||||
<div class="topicContent">
|
<div class="topicContent">
|
||||||
<div class="topicTitle01">{{name}}在{{city}}:</div>
|
<div class="topicTitle01">{{name}}在{{city}}:</div>
|
||||||
<div class="topicContent_bottom" style="border-bottom:solid 1px #e7e7e7;padding-bottom:0.5rem;">
|
<div class="topicContent_bottom" id="rankingAndPriceContentRanking" style="border-bottom:solid 1px #e7e7e7;padding-bottom:0.5rem;">
|
||||||
<p style="margin-bottom:20px;">涨幅(近12个月)超过了<em>{{roseRanking}}%</em>的住宅</p>
|
<p style="margin-bottom:20px;">涨幅(近12个月)超过了<em>{{roseRanking}}%</em>的住宅</p>
|
||||||
<font><i id="roseRankingPercent" style=""></i></font>
|
<font><i id="roseRankingPercent" style=""></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>
|
<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>
|
||||||
<div class="topicContent_bottom">
|
<div class="topicContent_bottom" id="rankingAndPriceContentPrice">
|
||||||
<p>均价超过了<em>{{avgpriceRanking}}%</em>的住宅</p>
|
<p>均价超过了<em>{{avgpriceRanking}}%</em>的住宅</p>
|
||||||
<div class="slider_note" id="sliderNotePercent" style="">
|
<div class="slider_note" id="sliderNotePercent" style="">
|
||||||
<img src="../../images/arrow_note_down.png">
|
<img src="../../images/arrow_note_down.png">
|
||||||
<span>{{price}}元/㎡</span>
|
<span>{{price}}元/㎡</span>
|
||||||
</div>
|
</div>
|
||||||
<font><i id="curRatePercent" style=""></i></font>
|
<font><i id="curRatePercent" style=""></i></font>
|
||||||
<small class="rankingNote" style="height:45px;"><span class="rankingNoteLeft" style="line-height:17px;margin-top:7px;">相对最低<br>{{minSellPrice}}</span><span class="rankingNoteRight" style="line-height:17px;margin-top:7px;text-align:right;">相对最高<br>{{maxSellPrice}}</span></small>
|
<small class="rankingNote" style="height:45px;">
|
||||||
|
<span class="rankingNoteLeft" style="line-height:17px;margin-top:7px;">相对最低<br>{{minSellPrice}}</span>
|
||||||
|
<span class="rankingNoteRight" style="line-height:17px;margin-top:7px;text-align:right;">相对最高<br>{{maxSellPrice}}</span>
|
||||||
|
</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -170,10 +176,16 @@
|
|||||||
<div class="topicContent_bottom">
|
<div class="topicContent_bottom">
|
||||||
<p style="margin-bottom:20px;margin-top:0;color:#333;">周边中介量在{{city}}排名:<em style="float:right;">{{agencyLevel}}%</em></p>
|
<p style="margin-bottom:20px;margin-top:0;color:#333;">周边中介量在{{city}}排名:<em style="float:right;">{{agencyLevel}}%</em></p>
|
||||||
<font><i style="" id="agencyLevelPercent"></i></font>
|
<font><i style="" id="agencyLevelPercent"></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;">最高:{{maxCityAgency}}</span></small>
|
<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;">最高:{{maxCityAgency}}</span>
|
||||||
|
</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="topic" style="display:none; border-top:none;" id="maxCityAgencyContent_">
|
||||||
|
<!-- 当 maxCityAgencyContent 不显示结构会乱, 添加次处控制 -->
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -118,7 +118,7 @@
|
|||||||
<span class="icon icon-set"></span>
|
<span class="icon icon-set"></span>
|
||||||
</button>
|
</button>
|
||||||
</header>
|
</header>
|
||||||
<div class="content">
|
<div class="content infinite-scroll infinite-scroll-bottom pstion" data-distance="50">
|
||||||
<div class="topBg01">
|
<div class="topBg01">
|
||||||
<!-- 目前是登录后点击个人头像设置密码 -->
|
<!-- 目前是登录后点击个人头像设置密码 -->
|
||||||
<img src="../../images/headPortrait.png" id="user_headImg" onclick="gotoUpdatePass()">
|
<img src="../../images/headPortrait.png" id="user_headImg" onclick="gotoUpdatePass()">
|
||||||
@@ -157,7 +157,7 @@
|
|||||||
<a href="#tabList4" class="tab-link button">消息({{mm_num}})</a>
|
<a href="#tabList4" class="tab-link button">消息({{mm_num}})</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="contentBox">
|
<div class="contentBox">
|
||||||
<div class="content infinite-scroll infinite-scroll-bottom pstion" data-distance="50">
|
<div>
|
||||||
<div class="tabs">
|
<div class="tabs">
|
||||||
<!-- 我的房产 -->
|
<!-- 我的房产 -->
|
||||||
<div id="tabList1" class="tab active">
|
<div id="tabList1" class="tab active">
|
||||||
@@ -451,6 +451,11 @@ $(document).on("click",".confirm-ok", function () {
|
|||||||
}).then(function (response) {
|
}).then(function (response) {
|
||||||
var status = response.data.status;
|
var status = response.data.status;
|
||||||
if(status){
|
if(status){
|
||||||
|
var eventType = "deleteMyHouseClick";
|
||||||
|
var dataMap = {};
|
||||||
|
dataMap["hid"]=id;
|
||||||
|
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||||
|
|
||||||
$.toast(response.data.data);
|
$.toast(response.data.data);
|
||||||
//删除后,如果需要调用checkIsLogin,需要所有的参数初始化
|
//删除后,如果需要调用checkIsLogin,需要所有的参数初始化
|
||||||
//checkIsLogin();
|
//checkIsLogin();
|
||||||
|
|||||||
+66
-36
@@ -1248,48 +1248,60 @@ function getPosition(){
|
|||||||
plus.geolocation.getCurrentPosition(function(p){
|
plus.geolocation.getCurrentPosition(function(p){
|
||||||
if(p.address.city==undefined){
|
if(p.address.city==undefined){
|
||||||
city = "上海";
|
city = "上海";
|
||||||
$("#input_city").text(city);
|
initData();
|
||||||
}else{
|
}else{
|
||||||
address = p.address.street;
|
|
||||||
province = p.address.province;
|
|
||||||
city = p.address.city;
|
city = p.address.city;
|
||||||
region = p.address.district;
|
|
||||||
lng = p.coords.longitude;//获取到当前位置的经度
|
|
||||||
lat = p.coords.latitude;//获取到当前位置的纬度;
|
|
||||||
oriLng = p.coords.longitude;
|
|
||||||
oriLat = p.coords.latitude;
|
|
||||||
//alert("4"+oriLng);
|
|
||||||
|
|
||||||
if(city){
|
if(city){
|
||||||
city = formatBaiduCity(city);
|
city = formatBaiduCity(city);
|
||||||
}
|
}
|
||||||
if(region.endWith("区")){
|
axios.get("/rest/index/isChinaCity", {
|
||||||
region = region.substring(0, region.length-1);
|
params: {
|
||||||
}
|
city: city
|
||||||
oriRegion = region;
|
}
|
||||||
oriCity = city;
|
})
|
||||||
$("#input_city").text(city);
|
.then(function (response) {
|
||||||
|
if(response.data.data.status==1){
|
||||||
|
address = p.address.street;
|
||||||
|
province = p.address.province;
|
||||||
|
|
||||||
|
region = p.address.district;
|
||||||
|
lng = p.coords.longitude;//获取到当前位置的经度
|
||||||
|
lat = p.coords.latitude;//获取到当前位置的纬度;
|
||||||
|
oriLng = p.coords.longitude;
|
||||||
|
oriLat = p.coords.latitude;
|
||||||
|
|
||||||
|
if(region.endWith("区")){
|
||||||
|
region = region.substring(0, region.length-1);
|
||||||
|
}
|
||||||
|
oriRegion = region;
|
||||||
|
oriCity = city;
|
||||||
|
}else{
|
||||||
|
city = "上海";
|
||||||
|
$("#input_city").text(city);
|
||||||
|
initRegionSelect(city);
|
||||||
|
localStorage.setItem("init_city", city);
|
||||||
|
//addLocation(lat,lng);
|
||||||
|
initBaseInfo(city,"","",0,0);
|
||||||
|
$("#ShangHaiDiv").show();
|
||||||
|
$("#otherCityDiv").hide();
|
||||||
|
}
|
||||||
|
initData();
|
||||||
|
})
|
||||||
|
.catch(function (error) {
|
||||||
|
setTimeout(function(){
|
||||||
|
mui.init();
|
||||||
|
mui.openWindow({
|
||||||
|
url: 'error.html',
|
||||||
|
id:'error.html',
|
||||||
|
extras:{
|
||||||
|
//扩展参数
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},10000)
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
localStorage.setItem("init_city", city);
|
|
||||||
//addLocation(lat,lng);
|
|
||||||
$(".nowCity").text(city);
|
|
||||||
/*city="北京";
|
|
||||||
region="";
|
|
||||||
$("#input_city").text("北京");
|
|
||||||
getDistrictList($("#input_city").text(),0,0,"",6,0,0,"");*/
|
|
||||||
|
|
||||||
initBaseInfo(city,region,address,lat,lng);
|
|
||||||
if(city!="上海"){
|
|
||||||
//$(".content").removeClass("pull-to-refresh-content");
|
|
||||||
$.destroyPullToRefresh(".content")
|
|
||||||
initRegionSelect(city);
|
|
||||||
$("#ShangHaiDiv").hide();
|
|
||||||
$("#otherCityDiv").show();
|
|
||||||
}else{
|
|
||||||
$.initPullToRefresh(".content")
|
|
||||||
$("#ShangHaiDiv").show();
|
|
||||||
$("#otherCityDiv").hide();
|
|
||||||
}
|
|
||||||
}, function(e){
|
}, function(e){
|
||||||
city = "上海";
|
city = "上海";
|
||||||
$("#input_city").text(city);
|
$("#input_city").text(city);
|
||||||
@@ -1308,6 +1320,24 @@ function getPosition(){
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function initData(){
|
||||||
|
$("#input_city").text(city);
|
||||||
|
localStorage.setItem("init_city", city);
|
||||||
|
//addLocation(lat,lng);
|
||||||
|
$(".nowCity").text(city);
|
||||||
|
|
||||||
|
initBaseInfo(city,region,address,lat,lng);
|
||||||
|
if(city!="上海"){
|
||||||
|
$.destroyPullToRefresh(".content")
|
||||||
|
initRegionSelect(city);
|
||||||
|
$("#ShangHaiDiv").hide();
|
||||||
|
$("#otherCityDiv").show();
|
||||||
|
}else{
|
||||||
|
$.initPullToRefresh(".content")
|
||||||
|
$("#ShangHaiDiv").show();
|
||||||
|
$("#otherCityDiv").hide();
|
||||||
|
}
|
||||||
|
}
|
||||||
/* 获取#region字数,截取#region前4字,并添加... */
|
/* 获取#region字数,截取#region前4字,并添加... */
|
||||||
|
|
||||||
var baseInfo = new Vue({
|
var baseInfo = new Vue({
|
||||||
@@ -1326,7 +1356,7 @@ var baseInfo = new Vue({
|
|||||||
|
|
||||||
function initBaseInfo(city,region,address,lat,lng){
|
function initBaseInfo(city,region,address,lat,lng){
|
||||||
//显示附近地址
|
//显示附近地址
|
||||||
if(address!=""){
|
if(address!="" || address!=undefined){
|
||||||
var nearAddressParam = address;
|
var nearAddressParam = address;
|
||||||
var length = address.length;
|
var length = address.length;
|
||||||
var textStr = "";
|
var textStr = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user