Merge branch 'YOUFANGAPP1.1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1.1
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
<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)">
|
||||
<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>
|
||||
@@ -63,7 +63,7 @@
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">置换房产</div>
|
||||
<div class="item-after">
|
||||
<input type="text" id="input_house01" class="textAlignRight" placeholder="+添加房产">
|
||||
<input type="text" id="input_house01" class="textAlignRight" placeholder="+添加房产" onclick="openAddHouse()">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -273,7 +273,7 @@
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="01_index02_loanEvaluation04_inputInfo.html" class="item-link item-content">
|
||||
<a onclick="openAddHouse()" class="item-link item-content">
|
||||
<div class="item-media"><img src="../../images/addHouse.png" style="width:1.8rem;"></div>
|
||||
<div class="item-inner" style="margin-left:0.55rem;">
|
||||
<div class="item-subtitle">
|
||||
@@ -1255,7 +1255,7 @@ $.config = {router: false}
|
||||
|
||||
<script>
|
||||
var dCity = "上海"
|
||||
var hsId = "196310294262185984"
|
||||
var hsId = ""
|
||||
var baseInfo = new Vue({
|
||||
el: '#step1',
|
||||
data:{
|
||||
@@ -1349,10 +1349,10 @@ var step2Vue = new Vue({
|
||||
}
|
||||
})
|
||||
|
||||
//document.addEventListener('plusready', onPlusReady, false);
|
||||
//function onPlusReady() {
|
||||
// var self = plus.webview.currentWebview();
|
||||
// hsId = self.hsId
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
hsId = self.hsId
|
||||
if(hsId){
|
||||
//如果是修改置换建议,则默认将值填入
|
||||
axios.get(BASE_PATH + "/rest/changeHouse/loadHouseSubInfo",{
|
||||
@@ -1398,7 +1398,7 @@ var step2Vue = new Vue({
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
//填充房产价格信息
|
||||
function addBaseHouseInfo(obj){
|
||||
@@ -1761,7 +1761,7 @@ $("#getSuggest_btn").click(function(){
|
||||
axios.post(BASE_PATH + "/rest/changeHouse/add", datas).then(function (response) {
|
||||
var hsId = response.data.data;
|
||||
if(hsId){
|
||||
clicked('views/changeHouse/result.html',true,false,{},{hsId:hsId});
|
||||
clicked('/views/changeHouse/result.html',true,false,{},{hsId:hsId});
|
||||
}
|
||||
$.hideIndicator();
|
||||
|
||||
@@ -1817,6 +1817,11 @@ $("#citySearchInp").bind('keyup', function() {
|
||||
search();
|
||||
});
|
||||
|
||||
function openAddHouse(){
|
||||
alert("ssss")
|
||||
clicked('/views/house/add.html',true,false,{},{});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<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)">
|
||||
<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>
|
||||
@@ -97,8 +97,8 @@
|
||||
<ul class="list-container">
|
||||
|
||||
<li v-for="ob in results">
|
||||
<a href="01_index04_districtDetail.html" class="item-content">
|
||||
<div class="item-inner">
|
||||
<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>
|
||||
@@ -157,18 +157,23 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||
|
||||
<script>
|
||||
//var hsId = "195941444484071424"
|
||||
var hsId = "195930529403502592"
|
||||
var hsId = ""
|
||||
var hsId = "196310294262185984"
|
||||
var region = ""
|
||||
var tag = ""
|
||||
var sort = ""
|
||||
var baseInfo ;
|
||||
// 加载flag
|
||||
var loading = false;
|
||||
// 最多可加载的条目
|
||||
var maxItems = 100;
|
||||
// 每次加载添加多少条目
|
||||
var itemsPerLoad = 8;
|
||||
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
hsId = self.hsId
|
||||
baseInfo = new Vue({
|
||||
initHouseSubtitution();
|
||||
|
||||
function initHouseSubtitution(){
|
||||
baseInfo = new Vue({
|
||||
el: '#resultDiv',
|
||||
data:{
|
||||
matchCount:0,
|
||||
@@ -252,16 +257,21 @@ function onPlusReady() {
|
||||
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});
|
||||
}
|
||||
},
|
||||
created:function(){
|
||||
this.loadHsInfo();
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
hsId = self.hsId
|
||||
baseInfo.loadHsInfo();
|
||||
addItems(0, 0)
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -306,78 +316,10 @@ $(".order").on("click", function () {
|
||||
$(".order i").addClass("icon-up");
|
||||
});
|
||||
|
||||
/* 全部区域 */
|
||||
/*$("#select_region .button").on("click", function () {
|
||||
$(this).parents(".topic").find(".button").removeClass("active");
|
||||
$(this).addClass("active");
|
||||
var text = $("#select_region .button").eq(0).hasClass("active");
|
||||
if(text){
|
||||
$(".region a").text("全部区域");
|
||||
}else{
|
||||
$(".region a").text($(this).text());
|
||||
}
|
||||
$(".mask").hide();
|
||||
$("#select_region").hide();
|
||||
$(".region").removeClass("active");
|
||||
$(".region i").removeClass("icon-up");
|
||||
});*/
|
||||
|
||||
/* 小区标签 */
|
||||
/*$(".reset_btn").on("click", function () {
|
||||
$("#select_filter .button").removeClass("active");
|
||||
});
|
||||
$(".confirm_btn").on("click", function () {
|
||||
$(".mask").hide();
|
||||
$("#select_filter").hide();
|
||||
$(".filter").removeClass("active");
|
||||
$(".filter i").removeClass("icon-up");
|
||||
});*/
|
||||
/*$("#select_filter .button").on("click", function () {
|
||||
if($(this).hasClass("active")){
|
||||
$(this).removeClass("active");
|
||||
}else{
|
||||
$(this).addClass("active");
|
||||
}
|
||||
});*/
|
||||
|
||||
/* 智能排序 */
|
||||
/*$("#select_order li").on("click", function () {
|
||||
$(this).parents("#select_order").find(".item-title").removeClass("active");
|
||||
$(this).parents("#select_order").find(".item-title i").removeClass("icon-check");
|
||||
$(this).find(".item-title").addClass("active");
|
||||
$(this).find(".item-title i").addClass("icon-check");
|
||||
$(".order a").text($(this).text());
|
||||
$(".mask").hide();
|
||||
$("#select_order").hide();
|
||||
$(".order").removeClass("active");
|
||||
$(".order i").removeClass("icon-up");
|
||||
});*/
|
||||
|
||||
/* 点击空白处隐藏 */
|
||||
/*$(".mask").on("click", function () {
|
||||
$(".mask").hide();
|
||||
$("#select_region").hide();
|
||||
$("#select_filter").hide();
|
||||
$("#select_order").hide();
|
||||
$(".region").removeClass("active");
|
||||
$(".region i").removeClass("icon-up");
|
||||
$(".filter").removeClass("active");
|
||||
$(".filter i").removeClass("icon-up");
|
||||
$(".order").removeClass("active");
|
||||
$(".order i").removeClass("icon-up");
|
||||
});*/
|
||||
|
||||
|
||||
/* 页面底部无限加载事件 */
|
||||
$.init()
|
||||
// 加载flag
|
||||
var loading = false;
|
||||
// 最多可加载的条目
|
||||
var maxItems = 100;
|
||||
// 每次加载添加多少条目
|
||||
var itemsPerLoad = 8;
|
||||
|
||||
addItems(0, 0)
|
||||
|
||||
|
||||
function addItems(number, lastIndex) {
|
||||
|
||||
@@ -397,7 +339,10 @@ function addItems(number, lastIndex) {
|
||||
pageSize:itemsPerLoad
|
||||
}
|
||||
}).then(function (response) {
|
||||
var datas = response.data.data
|
||||
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]
|
||||
|
||||
@@ -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{
|
||||
|
||||
@@ -57,9 +57,16 @@
|
||||
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
<button class="button button-link button-nav pull-right open-popover" onclick="shareHref()">
|
||||
<span class="icon icon-path"></span>
|
||||
</button>
|
||||
<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>
|
||||
@@ -119,9 +126,9 @@
|
||||
</div>
|
||||
<div class="content-block" id="trendDiv1">
|
||||
<div class="buttons-row theme">
|
||||
<a class="tab-link button active" onclick="clickLineChart(this)" t-v="6">半年</a>
|
||||
<a class="tab-link button" onclick="clickLineChart(this)" t-v="12">一年</a>
|
||||
<a class="tab-link button" onclick="clickLineChart(this)" t-v="36">三年</a>
|
||||
<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>
|
||||
@@ -261,19 +268,24 @@ $.config = {router: false}
|
||||
<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 type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
|
||||
|
||||
<script>
|
||||
var city = "上海"
|
||||
var region = "长宁"
|
||||
var name = "新泾三村"
|
||||
var region = "青浦"
|
||||
var name = "南山雨果"
|
||||
var mode = "line"
|
||||
|
||||
var lat;
|
||||
var lng;
|
||||
var address;
|
||||
var tags;
|
||||
|
||||
var baseInfo;
|
||||
|
||||
var shareUrl = BASE_PATH+"/district/districtDetail?";
|
||||
var sharehrefTitle = "小区名";
|
||||
var sharehrefDes = "小区详情介绍!";
|
||||
var shareId='';
|
||||
var picUrl = '../../img/default_share.png';
|
||||
|
||||
// baseInfo = new Vue({
|
||||
// el: '#districtBaseInfo',
|
||||
@@ -311,6 +323,12 @@ function onPlusReady() {
|
||||
region = self.region
|
||||
name = self.name;
|
||||
rid = self.rid;
|
||||
hid = self.hid;
|
||||
|
||||
shareUrl = shareUrl+"city="+self.city+"®ion="+self.region+"&name="+self.name;
|
||||
|
||||
sharehrefTitle = self.name;
|
||||
|
||||
// 创建根实例
|
||||
baseInfo = new Vue({
|
||||
el: '#districtBaseInfo',
|
||||
@@ -340,6 +358,8 @@ function onPlusReady() {
|
||||
})
|
||||
|
||||
inintChart(city, region, name);
|
||||
//更新分享服务
|
||||
updateSerivces();
|
||||
}
|
||||
|
||||
|
||||
@@ -366,11 +386,6 @@ $(document).ready(function () {
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
var t1 = window.setInterval(loadMap,1000);
|
||||
function loadMap(){
|
||||
if(lng && lat){
|
||||
|
||||
@@ -29,6 +29,9 @@
|
||||
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
<button class="button button-link button-nav pull-right open-popover" onclick="shareHref()">
|
||||
<span class="icon icon-path"></span>
|
||||
</button>
|
||||
<h1 class="title">评估报告</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
@@ -140,12 +143,24 @@ $.config = {router: false}
|
||||
<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 type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
|
||||
<script>
|
||||
|
||||
var shareUrl = BASE_PATH+"/fsh/evaluateReport?";
|
||||
var sharehrefTitle = "小区名";
|
||||
var sharehrefDes = "小区详情介绍!";
|
||||
var shareId='';
|
||||
var picUrl = '../../img/default_share.png';
|
||||
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady(){
|
||||
var self = plus.webview.currentWebview();
|
||||
var hid = self.hid;
|
||||
var houseStatus = ""
|
||||
|
||||
shareUrl = shareUrl+"hid="+hid;
|
||||
sharehrefTitle = "小区评估报告";
|
||||
|
||||
var house_info = new Vue({
|
||||
el:'#house_info',
|
||||
data:{
|
||||
@@ -220,6 +235,7 @@ $.config = {router: false}
|
||||
if(response.data.status){
|
||||
h = response.data.data
|
||||
house_info.name = h.name
|
||||
sharehrefTitle=h.name+"评估报告"
|
||||
house_info.city_region = h.city+"-"+h.region
|
||||
house_info.house_room_num = (h.houseRoomNum==null||h.houseRoomNum=="")?"暂无":h.houseRoomNum;
|
||||
// house_info.house_type = (h.roomCount==0?"":h.roomCount+"室")+(h.hallCount==0?"":h.hallCount+"厅 ")+(h.area==0?"":h.area+"㎡ ")+((h.floor==0||h.height==0)?"":h.floor+"/"+h.height+"层")
|
||||
@@ -329,7 +345,8 @@ $.config = {router: false}
|
||||
]
|
||||
})
|
||||
});
|
||||
|
||||
//更新分享服务
|
||||
updateSerivces();
|
||||
}
|
||||
|
||||
|
||||
@@ -344,8 +361,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) {
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
<div class="item-title"><label><b>{{name}}</b></label><span class="span01">{{cityRegion}}</span></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><small>{{houseRoomNum}} {{area}}m {{floor_height}}</small></div>
|
||||
<div class="item-title"><small>{{houseRoomNum}} {{area}}m² {{floor_height}}</small></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
@@ -539,6 +547,9 @@ function collect(){
|
||||
|
||||
}
|
||||
$.toast(msg);
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
|
||||
})
|
||||
.catch(function (error) {
|
||||
|
||||
@@ -121,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();
|
||||
}
|
||||
|
||||
|
||||
@@ -308,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();
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user