Merge branch 'YOUFANGAPP1.1.1' of http://192.168.0.27/dev0/youfang-app into YOUFANGAPP1.1.1
This commit is contained in:
@@ -27,60 +27,52 @@ document.addEventListener("plusready", function() {
|
||||
if (payload.type == "0") {
|
||||
plus.ui.alert(title+"\n"+content);
|
||||
} else if (payload.type == "1") {
|
||||
plus.ui.alert(title+"\n"+content,function(){
|
||||
if (payload.url == '/house/index') {
|
||||
plus.webview.show('yfindex.html');
|
||||
} else {
|
||||
plus.webview.show(BASE_PATH + payload.url);
|
||||
}
|
||||
//切换选项卡高亮
|
||||
var defaultTab = document.getElementById("defaultTab");
|
||||
var quotations = document.getElementById("quotations");
|
||||
var selfInfo = document.getElementById("selfInfo");
|
||||
defaultTab.classList.remove("mui-active");
|
||||
quotations.classList.remove("mui-active");
|
||||
selfInfo.classList.remove("mui-active");
|
||||
if (payload.url == '/quotations/index') {
|
||||
quotations.classList.add("mui-active");
|
||||
} else if(payload.url == '/selfInfo/index') {
|
||||
selfInfo.classList.add("mui-active");
|
||||
} else {
|
||||
defaultTab.classList.add("mui-active");
|
||||
plus.ui.alert(title+"\n"+content,function(){
|
||||
if(plus.webview.getWebviewById('H5693FF3D')==null){
|
||||
plus.webview.show(plus.webview.getWebviewById("HBuilder"));
|
||||
}else{
|
||||
plus.webview.show(plus.webview.getWebviewById("H5693FF3D"));
|
||||
}
|
||||
var targetTab = payload.url+".html";
|
||||
var defaultTab = document.getElementById(targetTab);
|
||||
//模拟首页点击
|
||||
mui.trigger(defaultTab, 'tap');
|
||||
//切换选项卡高亮
|
||||
var current = document.querySelector(".mui-bar-tab>.mui-tab-item.mui-active");
|
||||
if (defaultTab != current) {
|
||||
current.classList.remove('mui-active');
|
||||
defaultTab.classList.add('mui-active');
|
||||
}
|
||||
});
|
||||
});
|
||||
} else if (payload.type == "2") {
|
||||
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 {
|
||||
if (payload.type == "0") {
|
||||
plus.ui.alert(content);
|
||||
} else if (payload.type == "1") {
|
||||
plus.ui.alert(content,function(){
|
||||
if (payload.url == '/house/index') {
|
||||
plus.webview.show('yfindex.html');
|
||||
} else {
|
||||
plus.webview.show(BASE_PATH + payload.url);
|
||||
}
|
||||
//切换选项卡高亮
|
||||
var defaultTab = document.getElementById("defaultTab");
|
||||
var quotations = document.getElementById("quotations");
|
||||
var selfInfo = document.getElementById("selfInfo");
|
||||
defaultTab.classList.remove("mui-active");
|
||||
quotations.classList.remove("mui-active");
|
||||
selfInfo.classList.remove("mui-active");
|
||||
if (payload.url == '/quotations/index') {
|
||||
quotations.classList.add("mui-active");
|
||||
} else if(payload.url == '/selfInfo/index') {
|
||||
selfInfo.classList.add("mui-active");
|
||||
} else {
|
||||
defaultTab.classList.add("mui-active");
|
||||
plus.ui.alert(title+"\n"+content,function(){
|
||||
if(plus.webview.getWebviewById('H5693FF3D')==null){
|
||||
plus.webview.show(plus.webview.getWebviewById("HBuilder"));
|
||||
}else{
|
||||
plus.webview.show(plus.webview.getWebviewById("H5693FF3D"));
|
||||
}
|
||||
var targetTab = payload.url+".html";
|
||||
var defaultTab = document.getElementById(targetTab);
|
||||
//模拟首页点击
|
||||
mui.trigger(defaultTab, 'tap');
|
||||
//切换选项卡高亮
|
||||
var current = document.querySelector(".mui-bar-tab>.mui-tab-item.mui-active");
|
||||
if (defaultTab != current) {
|
||||
current.classList.remove('mui-active');
|
||||
defaultTab.classList.add('mui-active');
|
||||
}
|
||||
});
|
||||
});
|
||||
} else if (payload.type == "2") {
|
||||
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.roseRanking = _houseInfo.roseRanking;
|
||||
houseInfo.avgpriceRanking = _houseInfo.avgpriceRanking;
|
||||
@@ -406,6 +408,16 @@ function getAnalysisDetail(){
|
||||
$('#roseRankingPercent').css("width", houseInfo.roseRanking+"%");
|
||||
$('#sliderNotePercent').css("left", resultsMap.priceRateContent+"%");
|
||||
$('#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.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 ){
|
||||
$('#maxCityAgencyContent').hide();
|
||||
//添加此topic, 控制结构显示
|
||||
$('#maxCityAgencyContent_').show();
|
||||
}
|
||||
//周边房产中介显示
|
||||
if(resultsMap.agencyCount == 0){
|
||||
|
||||
@@ -80,9 +80,15 @@ function messageGoto(_this,operation,operationPage,mid){
|
||||
// plus.webview.create(pages, pages, subpage_style);
|
||||
// }
|
||||
// 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
|
||||
});
|
||||
}else{
|
||||
mui.fire(plus.webview.getWebviewById('H5693FF3D'),'switchView',{
|
||||
name:pages
|
||||
});
|
||||
}
|
||||
}
|
||||
if(operation==2){
|
||||
if (operationPage != null && operationPage != "") {
|
||||
|
||||
Reference in New Issue
Block a user