Merge branch 'YOUFANGAPP1.1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1.1
This commit is contained in:
@@ -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,6 +57,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-share"></span>
|
||||
</button>
|
||||
<h1 class="title">{{name}}</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
@@ -265,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 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',
|
||||
@@ -315,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',
|
||||
@@ -344,6 +358,8 @@ function onPlusReady() {
|
||||
})
|
||||
|
||||
inintChart(city, region, name);
|
||||
//更新分享服务
|
||||
updateSerivces();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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-share"></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);
|
||||
}
|
||||
|
||||
@@ -1673,7 +1673,6 @@ $("#evaluation_btn").on("click", function () {
|
||||
var d = $("#input_building").val();
|
||||
var e = $("#input_floor").val();
|
||||
var f = $("#input_area").val();
|
||||
|
||||
if(a == ""){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("请选择城市");
|
||||
@@ -1698,7 +1697,7 @@ $("#evaluation_btn").on("click", function () {
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("所在楼层不能为空!");
|
||||
return false;
|
||||
}else if(e.indexOf("总楼层")!= -1){
|
||||
}else if(e.indexOf("总楼层")!= -1||e.indexOf("共")== -1){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast("总楼层不能为空!");
|
||||
return false;
|
||||
@@ -1845,9 +1844,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 +1898,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>
|
||||
@@ -564,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);
|
||||
}
|
||||
@@ -627,7 +631,7 @@ function gotoRentManager(){
|
||||
|
||||
//出售分析
|
||||
function gotoSaleAnalysis(){
|
||||
clicked('/views/saleAnalysis/saleAnalysis.html',true,false,{},{houseId: houseId},function(){})
|
||||
clicked('/views/saleAnalysis/saleAnalysis.html',true,false,{},{houseId: houseId, city: oriCity, region: oriRegion, name: oriName},function(){})
|
||||
}
|
||||
|
||||
function gotoChangeHouse(){
|
||||
|
||||
@@ -34,6 +34,9 @@
|
||||
<!--<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>-->
|
||||
<button class="button button-link button-nav pull-right" id="shareButton" onclick="shareHref()">
|
||||
<span class="icon icon-share"></span>
|
||||
</button>
|
||||
<h1 class="title">房产行情</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
@@ -1211,11 +1214,17 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../component/cityChooseComponent.js"></script>
|
||||
<script type="text/javascript" src="../../js/echarts.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/highcharts-4.2.3.js" charset="utf-8"></script>
|
||||
|
||||
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
|
||||
<script type="text/javascript" src="../../js/city.js" ></script>
|
||||
|
||||
|
||||
<script>
|
||||
var shareUrl = BASE_PATH+"/house/cityShare?city=全国";
|
||||
var sharehrefTitle = "房产行情,小区价格,房租信息全掌握";
|
||||
var sharehrefDes = "客观里面请!";
|
||||
//var shareId='全国';
|
||||
var picUrl = '_www/img/default_share.png';
|
||||
|
||||
var date = new Date();
|
||||
var year = date.getFullYear()+'年';
|
||||
var month = date.getMonth()+1+'月';
|
||||
@@ -1390,8 +1399,7 @@ $.config = {router: false}
|
||||
$("#citySearchInp").bind('keyup', function() {
|
||||
search();
|
||||
});
|
||||
|
||||
|
||||
updateSerivces();
|
||||
}
|
||||
|
||||
//加载首页全国数据
|
||||
@@ -1485,6 +1493,12 @@ $(document).ready(function () {
|
||||
});
|
||||
|
||||
$("a[href='#tabQuotation1'],a[href='#tabQuotation0']").click(function(){
|
||||
shareUrl = BASE_PATH+"/house/cityShare?city="+$(this).text();
|
||||
if($(this).text()=="添加"){
|
||||
$("#shareButton").hide();
|
||||
}else{
|
||||
$("#shareButton").show();
|
||||
}
|
||||
$("#tabCityDiv a").removeClass("active");
|
||||
$("#contentTabDiv > .tab").removeClass("active");
|
||||
$("#cityInfo").hide()
|
||||
@@ -1493,7 +1507,8 @@ $("a[href='#tabQuotation1'],a[href='#tabQuotation0']").click(function(){
|
||||
|
||||
|
||||
function clickCity(val){
|
||||
|
||||
shareUrl = BASE_PATH+"/house/cityShare?city="+val;
|
||||
$("#shareButton").show();
|
||||
city = val;
|
||||
|
||||
plus.nativeUI.showWaiting();
|
||||
@@ -1571,10 +1586,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)){
|
||||
|
||||
@@ -169,7 +169,7 @@ $(document).on('infinite', '.infinite-scroll-bottom', function() {
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
//我的收藏查询请求
|
||||
//我的房产查询请求
|
||||
function selectHouseInfoList(){
|
||||
axios.get(BASE_PATH + "/rest/index/ourHouseInfoList",
|
||||
{
|
||||
@@ -353,29 +353,63 @@ function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xq
|
||||
|
||||
html += "<div>抵押可贷额度: <em style='color:#EB5F34;'>"+tempTotalPricePercent+"</em></div></div></div></a>";
|
||||
|
||||
//调整最新的等级显示(其它等级不显示start)
|
||||
if(result.level!=null && result.level == 1){
|
||||
html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>豪宅级</a>";
|
||||
//html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>豪宅级</a>";
|
||||
html += '<a class="starBox">房屋评级<span class="star"><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i></span></a>';
|
||||
}else if(result.level!=null && result.level == 2){
|
||||
html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>公寓级</a>";
|
||||
//html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>公寓级</a>";
|
||||
html += '<a class="starBox">房屋评级<span class="star"><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i></span></a>';
|
||||
}else if(result.level!=null && result.level == 3){
|
||||
html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>平房级</a>";
|
||||
//html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>平房级</a>";
|
||||
html += '<a class="starBox">房屋评级<span class="star"><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i></span></a>';
|
||||
}else if(result.level!=null && result.level == 4){
|
||||
html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>草屋级</a>";
|
||||
//html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>草屋级</a>";
|
||||
html += '<a class="starBox">房屋评级<span class="star"><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i></span></a>';
|
||||
}else if(result.level!=null && result.level == 5){
|
||||
html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>山洞级</a>";
|
||||
//html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>山洞级</a>";
|
||||
html += '<a class="starBox">房屋评级<span class="star"><i class="icon icon-star01"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i><i class="icon icon-star"></i></span></a>';
|
||||
}else{
|
||||
html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>其它</a>";
|
||||
//html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>其它</a>";
|
||||
}
|
||||
|
||||
//控制贷款按钮是否可以显示,便于ios版本审核
|
||||
if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){
|
||||
html += '<a class="button theme add add01 add01a" href="#" onclick="gotoLoanApply(\''+result.id+'\', \''+result.city+'\')">立即申请</a></li>';
|
||||
}else{
|
||||
html += '</li>';
|
||||
html += '<a class="button theme add add01 add01a" href="#" onclick="gotoLoanApply(\''+result.id+'\', \''+result.city+'\')">立即申请</a>';
|
||||
}
|
||||
html += "<i class='delete confirm-ok' id="+result.id+"></i></li>";
|
||||
}
|
||||
$('.infinite-scroll-bottom .list-container').append(html);
|
||||
}
|
||||
|
||||
//删除房产AJAX请求
|
||||
$(document).on("click",".confirm-ok", function () {
|
||||
//获取删除的房产id
|
||||
var id = $(this).attr("id");
|
||||
$.confirm("确定删除?", function () {
|
||||
axios.post(BASE_PATH + "/rest/index/deleteHouseInfoByStatus",
|
||||
{
|
||||
id: id
|
||||
}).then(function (response) {
|
||||
var status = response.data.status;
|
||||
if(status){
|
||||
$.toast(response.data.data);
|
||||
checkIsLogin();
|
||||
//删除房产会影响个人中心房产列表, 刷新
|
||||
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);
|
||||
}
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
});
|
||||
$(".modal-text").css("text-align","center");
|
||||
});
|
||||
|
||||
/* 说明-房产等级 */
|
||||
$(document).on('click','.alert-text-title', function () {
|
||||
$.alert('房产等级是房屋在城市中的综合评级,由高至低分别为 豪宅、公寓、平房、草屋、山洞共5个级别。', '房产等级');
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="page page-current" id="noData" style="display: none;">
|
||||
<header class="bar bar-nav">
|
||||
<header class="bar bar-nav barBorder">
|
||||
<h1 class="title">房产评估</h1>
|
||||
</header>
|
||||
<div class="loadingBgDiv">
|
||||
@@ -142,6 +142,35 @@ $(document).on('click','.open-vertical-modal', function () {
|
||||
})
|
||||
});
|
||||
|
||||
//删除房产AJAX请求
|
||||
$(document).on("click",".confirm-ok", function () {
|
||||
//获取删除的房产id
|
||||
var id = $(this).attr("id");
|
||||
$.confirm("确定删除?", function () {
|
||||
axios.post(BASE_PATH + "/rest/index/deleteHouseInfoByStatus",
|
||||
{
|
||||
id: id
|
||||
}).then(function (response) {
|
||||
var status = response.data.status;
|
||||
if(status){
|
||||
$.toast(response.data.data);
|
||||
$('.loadingBgDiv').show();
|
||||
checkIsLogin();
|
||||
//删除评估房产不会影响个人中心房产列表, 不用刷新
|
||||
/*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);
|
||||
}
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
});
|
||||
$(".modal-text").css("text-align","center");
|
||||
});
|
||||
|
||||
//添加管理AJAX请求
|
||||
function addManagement(id, houseStatus, liveStatus){
|
||||
axios.post(BASE_PATH + "/rest/evaluate/addManagement",
|
||||
@@ -155,7 +184,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);
|
||||
@@ -263,7 +294,7 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap
|
||||
htmlContent = htmlContent + "<div>均价: <em class='em02'>"+tempPrice+"</em></div>";
|
||||
htmlContent = htmlContent + "<div class='price'><em><strong>"+tempTotalPrice+"</em></div>";
|
||||
htmlContent = htmlContent + "</div></div></a><a class='add open-vertical-modal' id="+result.id+" uid="+result.uid+" houseStatus="+result.houseStatus+"><i class='icon icon-add'></i>添加管理</a>"
|
||||
htmlContent = htmlContent +"</li>";
|
||||
htmlContent = htmlContent +"<i class='delete confirm-ok' id="+result.id+"></i></li>";
|
||||
}
|
||||
}
|
||||
return htmlContent;
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title id="title"></title>
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||
<link rel="shortcut icon" href="/favicon.ico">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<link rel="stylesheet" href="../../css/sm.css">
|
||||
<link rel="stylesheet" href="../../css/main.css">
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="page-group" id="message">
|
||||
<div class="page page-current">
|
||||
<header class="bar bar-nav barBorder">
|
||||
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||
<span class="icon icon-left"></span>
|
||||
</button>
|
||||
<h1 class="title">{{title}}</h1>
|
||||
</header>
|
||||
<div class="content contentText" >
|
||||
<div class="content-padded">
|
||||
<h1>{{title}}</h1>
|
||||
<p style="width: 100%;height: auto;word-wrap:break-word;word-break:break-all;overflow: hidden;">
|
||||
{{content}}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||
Zepto = $
|
||||
$.config = {router: false}
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="../../js/vue.js"></script>
|
||||
<script type="text/javascript" src="../../js/light7-2.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../config.js"></script>
|
||||
<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
|
||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<script>
|
||||
var message = new Vue({
|
||||
el:"#message",
|
||||
data:{
|
||||
title:"",
|
||||
content:""
|
||||
}
|
||||
});
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady(){
|
||||
var self = plus.webview.currentWebview();
|
||||
var mid = self.mid;
|
||||
axios("/rest/message/detail",{params:{
|
||||
mid:mid
|
||||
}}).then(function(response){
|
||||
if(response.data.status){
|
||||
var pushMessageDto = response.data.data;
|
||||
message.title = pushMessageDto.title;
|
||||
message.content = pushMessageDto.content;
|
||||
}
|
||||
}).catch(function(error){
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -30,7 +30,7 @@
|
||||
</button>
|
||||
<!--<a href="javascript:void(0)" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left">返回刷新</a>-->
|
||||
<button class="button button-link button-nav pull-right open-popover" onclick="shareHref()">
|
||||
<span class="icon icon-path"></span>
|
||||
<span class="icon icon-share"></span>
|
||||
</button>
|
||||
<h1 class="title"></h1>
|
||||
</header>
|
||||
@@ -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) {
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||
<link rel="shortcut icon" href="/favicon.ico">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<link rel="stylesheet" href="../../css/sm.css">
|
||||
@@ -25,27 +26,27 @@
|
||||
<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>
|
||||
<h1 class="title">出售分析</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
<div class="content" id="houseInfo" v-cloak>
|
||||
<div class="list-block media-list mb05 topList">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner item-inner01">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><label><b>龙盛佳苑</b></label><span class="tag"><small>出租</small></span></div>
|
||||
<div class="item-after"><em>391.45万</em></div>
|
||||
<div class="item-title"><label><b>{{name}}</b></label><span class="tag" id="liveStatus">{{liveStatus}}</span></div>
|
||||
<div class="item-after"><em>{{totalPrice}}</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>2室1厅 60m 1/6层</span></div>
|
||||
<div class="item-after"><span>2018/02/08估值</span></div>
|
||||
<div class="item-title"><span>{{houseRoomNum}} {{houseArea}} {{floorHeight}}</span></div>
|
||||
<div class="item-after"><span>{{evalDate}}</span></div>
|
||||
</div>
|
||||
<div class="item-subtitle">
|
||||
<span class="tag"><small>近地铁</small><small>公交多</small><small>买菜做饭</small></span>
|
||||
<span class="tag" id="moreTag"></span>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
@@ -55,13 +56,8 @@
|
||||
|
||||
<div class="topic">
|
||||
<div class="topicContent">
|
||||
<div class="topicTitle01 alert-text-title02">交易活跃度:<em class="riskScore03">良好</em><i class="icon icon-note"></i></div>
|
||||
<div class="topicTitle01 alert-text-title02">交易活跃度:<em class="" id="riskScore"></em><i class="icon icon-note"></i></div>
|
||||
<div class="assetRisk">
|
||||
<!--<div class="rankingBox dn">
|
||||
<div class="ranking">
|
||||
<font style="padding-left:0;margin-left:-1px;"><i class="riskScore03" style="width:72%;"></i></font>
|
||||
</div>
|
||||
</div>-->
|
||||
<p class="p01"><span style="margin-left:-3px;margin-right:60px;">0</span><span style="margin-right:57px;">26</span><span style="margin-right:56px;">38</span><span style="margin-right:47px;">70</span><span style="margin-right:0;">100</span></p>
|
||||
<font><i class="riskScore01"></i><i class="riskScore02"></i><i class="riskScore03"></i><i class="riskScore04"></i></font>
|
||||
<p><span>很差</span><span>较差</span><span>良好</span><span>很好</span></p>
|
||||
@@ -72,49 +68,49 @@
|
||||
<div class="topic">
|
||||
<div class="topicTitle">增长率及收益</div>
|
||||
<div class="topicContent">
|
||||
<div class="rateBox01">
|
||||
<div class="rateBox01" id="showRateBox01">
|
||||
<div class="topicContent_bottom01">
|
||||
<span class="open-modal01">看看这套房子为我赚了多少<i class="icon icon-right icon-right01"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="rateBox02 dn">
|
||||
<div class="rateBox02 dn" id="showRateBox02">
|
||||
<div class="topicContent_top topicContent_top01">
|
||||
<div class="left">
|
||||
<p class="up">
|
||||
<p class="" id="rateTre">
|
||||
<i></i>
|
||||
<em>11.84<font>%</font></em>
|
||||
<em id="rateValue"></em>
|
||||
</p>
|
||||
<p><span>年增长率</span></p>
|
||||
</div>
|
||||
<div class="right">
|
||||
<p class="up">
|
||||
<p class="" id="incrementTre">
|
||||
<i></i>
|
||||
<em>41.45<font>万</font></em>
|
||||
<em id="incrementValue"></em>
|
||||
</p>
|
||||
<p><span>房屋已升值</span></p>
|
||||
</div>
|
||||
</div>
|
||||
<a class="adBox" href=""><p>房子能卖400万!XX银行月月高理财年化5.6%起(每年收益15.68万起),查看详情<i class="icon icon-right icon-right01"></i></p></a>
|
||||
<a class="adBox" id="showAdBox1" style="display: none;" href="#"><p id="showAdBox1Content"></p></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="topic">
|
||||
<div class="topicContent">
|
||||
<div class="topicTitle01">龙盛佳苑在上海市:</div>
|
||||
<div class="topicTitle01">{{name}}在{{city}}:</div>
|
||||
<div class="topicContent_bottom" style="border-bottom:solid 1px #e7e7e7;padding-bottom:0.5rem;">
|
||||
<p style="margin-bottom:20px;">涨幅(近12个月)超过了<em>69.7%</em>的住宅</p>
|
||||
<font><i style="width:69.7%;"></i></font>
|
||||
<p style="margin-bottom:20px;">涨幅(近12个月)超过了<em>{{roseRanking}}%</em>的住宅</p>
|
||||
<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>
|
||||
</div>
|
||||
<div class="topicContent_bottom">
|
||||
<p>均价超过了<em>64.14%</em>的住宅</p>
|
||||
<div class="slider_note" style="left:50.14%;">
|
||||
<p>均价超过了<em>{{avgpriceRanking}}%</em>的住宅</p>
|
||||
<div class="slider_note" id="sliderNotePercent" style="">
|
||||
<img src="../../images/arrow_note_down.png">
|
||||
<span>65,241元/㎡</span>
|
||||
<span>{{price}}元/㎡</span>
|
||||
</div>
|
||||
<font><i style="width:64.14%;"></i></font>
|
||||
<small class="rankingNote" style="height:45px;"><span class="rankingNoteLeft" style="line-height:17px;margin-top:7px;">相对最低<br>9,290元/㎡</span><span class="rankingNoteRight" style="line-height:17px;margin-top:7px;text-align:right;">相对最高<br>194,953元/㎡</span></small>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -122,10 +118,10 @@
|
||||
<div class="topic">
|
||||
<div class="topicTitle" style="position:relative;">均价走势
|
||||
<div class="content-block">
|
||||
<div class="buttons-row theme">
|
||||
<a href="#tabChartAvg1" class="tab-link button active">半年</a>
|
||||
<a href="#tabChartAvg2" class="tab-link button">一年</a>
|
||||
<a href="#tabChartAvg3" class="tab-link button">三年</a>
|
||||
<div class="buttons-row theme avgPriceTrend">
|
||||
<a href="#tab1" data-id="1" class="tab-link button active">半年</a>
|
||||
<a href="#tab2" data-id="2" class="tab-link button">一年</a>
|
||||
<a href="#tab3" data-id="3" class="tab-link button">三年</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -138,148 +134,15 @@
|
||||
<div class="topicTitle">挂牌建议</div>
|
||||
<div class="topicContent" style="padding-top:0;">
|
||||
<div class="topicContent_center02">
|
||||
<p><label>总价:</label><em>352.3万 - 391.45万</em></p>
|
||||
<p><span>单价:5.87万/㎡ - 6.52万/㎡</span></p>
|
||||
<p><label>总价:</label><em>{{minAndMaxTotalPrice}}</em></p>
|
||||
<p><span>单价:{{minAndMaxPrice}}</span></p>
|
||||
</div>
|
||||
<a class="adBox" href=""><p>房子能卖400万!XX银行月月高理财年化5.6%起(每年收益15.68万起),查看详情<i class="icon icon-right icon-right01"></i></p></a>
|
||||
<a class="adBox" id="showAdBox2" style="display: none;" href="#"><p id="showAdBox2Content"></p></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="topic">
|
||||
<div class="topicTitle" style="position:relative;">挂牌参考
|
||||
<div class="content-block">
|
||||
<div class="buttons-row theme">
|
||||
<a href="#tabListing1" class="tab-link button active">周边</a>
|
||||
<a href="#tabListing2" class="tab-link button">本小区</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tabs">
|
||||
<div id="tabListing1" class="tab active">
|
||||
<div class="list-block media-list">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">大华爱宅</span><span class="c6 c6a">45㎡</span></div>
|
||||
<div class="item-after"><em>60万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>1室1厅/南北/中等装修</span></div>
|
||||
<div class="item-after"><span>13,333元/㎡</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">大华路869弄小区</span><span class="c6 c6a">61.71㎡</span></div>
|
||||
<div class="item-after"><em>370万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>2室1厅/南北/中装</span></div>
|
||||
<div class="item-after"><span>59,957元/㎡</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">大华二村三街坊</span><span class="c6 c6a">66㎡</span></div>
|
||||
<div class="item-after"><em>330万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>2室1厅/南北/精装修</span></div>
|
||||
<div class="item-after"><span>50,000元/㎡</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">文华苑</span><span class="c6 c6a">53.13㎡</span></div>
|
||||
<div class="item-after"><em>310万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>1室1厅/南北/精装</span></div>
|
||||
<div class="item-after"><span>58,347元/㎡</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="tabListing2" class="tab">
|
||||
<div class="list-block media-list">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">龙盛佳苑</span><span class="c6 c6a">62.35㎡</span></div>
|
||||
<div class="item-after"><em>452万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>2室1厅/南/精装</span></div>
|
||||
<div class="item-after"><span>72,493元/㎡</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">龙盛佳苑</span><span class="c6 c6a">81㎡</span></div>
|
||||
<div class="item-after"><em>386万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>2室2厅/南北/精装修</span></div>
|
||||
<div class="item-after"><span>47,654元/㎡</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">龙盛佳苑</span><span class="c6 c6a">72㎡</span></div>
|
||||
<div class="item-after"><em>360万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>2室2厅/南北/豪华装修</span></div>
|
||||
<div class="item-after"><span>50,000元/㎡</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">龙盛佳苑</span><span class="c6 c6a">82㎡</span></div>
|
||||
<div class="item-after"><em>400万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>2室1厅/北向/豪华装修</span></div>
|
||||
<div class="item-after"><span>48,780元/㎡</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="topic" id="showTopic1" style="display: none;">
|
||||
<!-- 构造挂牌参考数据 -->
|
||||
</div>
|
||||
|
||||
<div class="list-block">
|
||||
@@ -287,178 +150,36 @@
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title">周边房产中介</div>
|
||||
<div class="item-after"><em style="color:#F18D00;">50</em>家</div>
|
||||
<div class="item-after"><em style="color:#F18D00;">{{agencyCount}}</em>家</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title">知名中介:</div>
|
||||
<div class="item-after"><em style="color:#F18D00;">21</em>家</div>
|
||||
<div class="item-after"><em style="color:#F18D00;">{{famousAgency}}</em>家</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title">其他中介:</div>
|
||||
<div class="item-after"><em style="color:#F18D00;">29</em>家</div>
|
||||
<div class="item-after"><em style="color:#F18D00;">{{otherAgency}}</em>家</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="topic" style="border-top:none;">
|
||||
<div class="topicContent">
|
||||
<div class="topicContent_bottom">
|
||||
<p style="margin-bottom:20px;margin-top:0;color:#333;">周边中介量在上海排名:<em style="float:right;">35%</em></p>
|
||||
<font><i style="width:35%;"></i></font>
|
||||
<small class="rankingNote"><span class="rankingNoteLeft" style="line-height:17px;margin-top:7px;">最低:0</span><span class="rankingNoteRight" style="line-height:17px;margin-top:7px;text-align:right;">最高:150</span></small>
|
||||
<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>
|
||||
<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>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="topic">
|
||||
<div class="topicTitle" style="position:relative;">成交情况
|
||||
<div class="content-block">
|
||||
<div class="buttons-row theme">
|
||||
<a href="#tabDeal1" class="tab-link button active">周边</a>
|
||||
<a href="#tabDeal2" class="tab-link button">本小区</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tabs">
|
||||
<div id="tabDeal1" class="tab active">
|
||||
<div class="list-block media-list">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">馨华苑</span></div>
|
||||
<div class="item-after"><em>540万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>南北</span></div>
|
||||
<div class="item-after"><span>60,006元/㎡</span></div>
|
||||
</div>
|
||||
<div class="item-subtitle"><span class="tag"><small>2017/06/17签约</small></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">大华二村</span></div>
|
||||
<div class="item-after"><em>280万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>朝南</span></div>
|
||||
<div class="item-after"><span>59,867元/㎡</span></div>
|
||||
</div>
|
||||
<div class="item-subtitle"><span class="tag"><small>2017/06/17签约</small></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">文华苑五期</span></div>
|
||||
<div class="item-after"><em>588万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>朝南</span></div>
|
||||
<div class="item-after"><span>52,136元/㎡</span></div>
|
||||
</div>
|
||||
<div class="item-subtitle"><span class="tag"><small>2017/06/25签约</small></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">大华一村</span></div>
|
||||
<div class="item-after"><em>290万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>朝南</span></div>
|
||||
<div class="item-after"><span>60,732元/㎡</span></div>
|
||||
</div>
|
||||
<div class="item-subtitle"><span class="tag"><small>2017/05/31签约</small></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="tabDeal2" class="tab">
|
||||
<div class="list-block media-list">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">龙盛佳苑</span></div>
|
||||
<div class="item-after"><em>249万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>朝北</span></div>
|
||||
<div class="item-after"><span>51,875元/㎡</span></div>
|
||||
</div>
|
||||
<div class="item-subtitle"><span class="tag"><small>2017/09/20签约</small></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">龙盛佳苑</span></div>
|
||||
<div class="item-after"><em>250万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>朝南</span></div>
|
||||
<div class="item-after"><span>53,191元/㎡</span></div>
|
||||
</div>
|
||||
<div class="item-subtitle"><span class="tag"><small>2017/07/29签约</small></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">龙盛佳苑</span></div>
|
||||
<div class="item-after"><em>260万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>朝南</span></div>
|
||||
<div class="item-after"><span>54,166元/㎡</span></div>
|
||||
</div>
|
||||
<div class="item-subtitle"><span class="tag"><small>2017/07/28签约</small></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span class="c3 c3a">龙盛佳苑</span></div>
|
||||
<div class="item-after"><em>250万</em></div>
|
||||
</div>
|
||||
<div class="item-title-row">
|
||||
<div class="item-title"><span>南北</span></div>
|
||||
<div class="item-after"><span>56,818元/㎡</span></div>
|
||||
</div>
|
||||
<div class="item-subtitle"><span class="tag"><small>2017/07/11签约</small></span></div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="topic" id="showTopic2" style="display: none;">
|
||||
<!-- 构造成交情况数据 -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -488,7 +209,7 @@
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">购入价格</div>
|
||||
<div class="item-after">
|
||||
<input type="text" id="input_price" class="textAlignLeft" placeholder="请输入">
|
||||
<input type="text" id="input_price" class="textAlignLeft" onkeyup="value=value.replace(/[^\d]/g, '')" placeholder="请输入">
|
||||
<label>万元</label>
|
||||
</div>
|
||||
</div>
|
||||
@@ -527,213 +248,8 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/highcharts-4.2.3.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||
<script type="text/javascript" src="../../js/saleAnalysis/saleAnalysis.js"></script>
|
||||
<script type="text/javascript" src="../../js/log/log_stat.js" ></script>
|
||||
<script>
|
||||
/* 增长率及收益 */
|
||||
$(document).on('click','.open-modal01', function () {
|
||||
$.closeModal('.my-popover01');
|
||||
$('.modal01').show();
|
||||
$('.modal01-overlay').show();
|
||||
});
|
||||
|
||||
/* 增长率及收益-取消 */
|
||||
$(document).on('click','.modal01 .cancel_btn', function () {
|
||||
$('.modal01').hide();
|
||||
$('.modal01-overlay').hide();
|
||||
window.location.reload();
|
||||
});
|
||||
|
||||
/* 增长率及收益-关闭 */
|
||||
$(document).on('click','.modal01 .close', function () {
|
||||
$('.modal01').hide();
|
||||
$('.modal01-overlay').hide();
|
||||
window.location.reload();
|
||||
});
|
||||
|
||||
/* 增长率及收益-确定 */
|
||||
$(document).on('click','.modal01 .confirm_btn', function () {
|
||||
var a = $("#input_time").val();
|
||||
var b = $("#input_price").val();
|
||||
if(a == ""){
|
||||
$.toast("请选择购入时间");
|
||||
return false;
|
||||
}else if(b == ""){
|
||||
$.toast("请输入购入价格");
|
||||
return false;
|
||||
}else{
|
||||
$(".rateBox01").hide();
|
||||
$(".rateBox02").show();
|
||||
$('.modal').hide();
|
||||
$('.modal01').hide();
|
||||
$('.modal01-overlay').hide();
|
||||
}
|
||||
});
|
||||
|
||||
/* 点击遮罩弹窗隐藏 */
|
||||
$(document).on('click','.modal01-overlay', function () {
|
||||
$('.modal01').hide();
|
||||
$('.modal01-overlay').hide();
|
||||
});
|
||||
|
||||
/* 选择-购入时间 */
|
||||
$("#input_time").datetimePicker({
|
||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01a">\
|
||||
<button class="button button-link pull-right close-picker">确定</button>\
|
||||
<h1 class="title">购入时间</h1>\
|
||||
</header>'
|
||||
});
|
||||
|
||||
/* 说明-交易活跃度 */
|
||||
$(document).on('click','.alert-text-title02', function () {
|
||||
$.alert('交易活跃度是根据房产的价值、周边配套、供需关系等情况来衡量,能否在市场中快速交易变现的评级。', '交易活跃度');
|
||||
});
|
||||
|
||||
/* button状态切换 */
|
||||
$(".content-block .button").on("click", function () {
|
||||
$(this).parent().children().removeClass("active");
|
||||
$(this).addClass("active");
|
||||
});
|
||||
|
||||
/* 均价走势 */
|
||||
function yearAvgPrice(){
|
||||
var categories = new Array();
|
||||
var series = new Array();
|
||||
var o = new Object();
|
||||
o.name = '龙盛佳苑';
|
||||
|
||||
var odata = new Array();
|
||||
o.data = odata
|
||||
series.push(o);
|
||||
|
||||
var o2 = new Object();
|
||||
o2.name = '上海';
|
||||
var o2data = new Array();
|
||||
|
||||
var o3 = new Object();
|
||||
o3.name = '静安';
|
||||
var o3data = new Array();
|
||||
odata.push(46000)
|
||||
o2data.push(50400)
|
||||
o3data.push(52800)
|
||||
categories.push('2017-02')
|
||||
odata.push(47000)
|
||||
o2data.push(50600)
|
||||
o3data.push(52900)
|
||||
categories.push('2017-03')
|
||||
odata.push(47400)
|
||||
o2data.push(50300)
|
||||
o3data.push(52700)
|
||||
categories.push('2017-04')
|
||||
odata.push(49000)
|
||||
o2data.push(50200)
|
||||
o3data.push(55200)
|
||||
categories.push('2017-05')
|
||||
odata.push(49400)
|
||||
o2data.push(50800)
|
||||
o3data.push(56100)
|
||||
categories.push('2017-06')
|
||||
odata.push(49600)
|
||||
o2data.push(51900)
|
||||
o3data.push(56900)
|
||||
categories.push('2017-07')
|
||||
odata.push(48400)
|
||||
o2data.push(53100)
|
||||
o3data.push(59400)
|
||||
categories.push('2017-08')
|
||||
odata.push(52200)
|
||||
o2data.push(51200)
|
||||
o3data.push(62400)
|
||||
categories.push('2017-09')
|
||||
odata.push(54900)
|
||||
o2data.push(56200)
|
||||
o3data.push(65600)
|
||||
categories.push('2017-10')
|
||||
odata.push(57400)
|
||||
o2data.push(57000)
|
||||
o3data.push(66800)
|
||||
categories.push('2017-11')
|
||||
odata.push(54800)
|
||||
o2data.push(56700)
|
||||
o3data.push(66200)
|
||||
categories.push('2017-12')
|
||||
odata.push(55000)
|
||||
o2data.push(58300)
|
||||
o3data.push(66000)
|
||||
categories.push('2018-01')
|
||||
|
||||
o3.data = o3data
|
||||
series.push(o3);
|
||||
|
||||
o2.data = o2data
|
||||
series.push(o2);
|
||||
|
||||
charts = Highcharts.chart('chart', {
|
||||
title: {
|
||||
text: ''
|
||||
},
|
||||
subtitle: {
|
||||
text: '',
|
||||
x: -20
|
||||
},
|
||||
colors: ['#F88C9F', '#AAD672', '#AE94E9'],
|
||||
xAxis: {
|
||||
categories: categories,
|
||||
boundaryGap: false,
|
||||
tickInterval: 2,
|
||||
tickLength: 6,
|
||||
labels: {
|
||||
style: {
|
||||
fontSize: 12
|
||||
}
|
||||
}
|
||||
},
|
||||
yAxis: {
|
||||
allowDecimals: false,
|
||||
title: {
|
||||
text: ''
|
||||
},
|
||||
plotLines: [{
|
||||
value: 0,
|
||||
width: 1,
|
||||
color: '#666'
|
||||
}]
|
||||
},
|
||||
tooltip: {
|
||||
shared: true,
|
||||
valueSuffix: '元/㎡'
|
||||
},
|
||||
legend: {
|
||||
layout: 'horizontal',
|
||||
align: 'center',
|
||||
verticalAlign: 'bottom',
|
||||
y: 0,
|
||||
borderWidth: 0
|
||||
},
|
||||
plotOptions: {
|
||||
line: {
|
||||
connectNulls: true //该设置会连接空值点
|
||||
},
|
||||
series: {
|
||||
events: {
|
||||
legendItemClick: function(e) {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
marker: {
|
||||
radius: 3, //曲线点半径,默认是4
|
||||
symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
|
||||
}
|
||||
}
|
||||
},
|
||||
series: series,
|
||||
credits: {
|
||||
enabled: false
|
||||
}
|
||||
})
|
||||
}
|
||||
yearAvgPrice();
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -13,11 +13,6 @@
|
||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||
|
||||
<style>
|
||||
.topic .topicContent .topicContent_center.home div .icon{width:42px;height:42px;}
|
||||
.topic .topicContent .topicContent_center.home div span{font-size:0.7rem;color:#666;}
|
||||
.buttons-tab .button{font-size:0.75rem;color:#999;line-height:2.5rem;height:2.5rem;}
|
||||
.list-block ul:before{height:0;}
|
||||
.cardInfo:first-child{border-top:none;}
|
||||
.page > header.bar{position:static;padding-left:0.75rem;padding-right:0.75rem;background:#fff;border-bottom:none;}
|
||||
.page > header.barBorder{border-bottom:solid 0px #e7e7e7;}
|
||||
.page > header.bar.theme{background:#F18D00;}
|
||||
@@ -28,8 +23,17 @@
|
||||
.list-block .add01a{top:inherit;bottom:0.75rem;right:0.75rem;}
|
||||
.list-block .item-title em{font-size:0.8rem;color:#EB5F34;}
|
||||
.list-block .item-title .tag small{font-size:80%;color:#F5A100;}
|
||||
|
||||
.topic .topicContent .topicContent_center.home div .icon{width:42px;height:42px;}
|
||||
.topic .topicContent .topicContent_center.home div span{font-size:0.7rem;color:#666;}
|
||||
.contentBox{position:relative;}
|
||||
.pstion{position:absolute;top:0;height:572px;}
|
||||
.pstion{position:absolute;top:0;height:600px;}
|
||||
.buttons-tab .button{font-size:0.75rem;color:#999;line-height:2.5rem;height:2.5rem;}
|
||||
.list-block ul:before{height:0;}
|
||||
.cardInfo:first-child{border-top:none;}
|
||||
@media(min-height:750px){
|
||||
.pstion{height:700px;}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@@ -76,7 +80,7 @@
|
||||
<a href="#tab_house" class="tab-link button active">房产(0)</a>
|
||||
<a href="#tab_focus" class="tab-link button">关注(0)</a>
|
||||
<a href="#tab_collect" class="tab-link button">收藏(0)</a>
|
||||
<a href="#tab_message" class="tab-link button" style="display: none;">消息(0)</a>
|
||||
<a href="#tab_message" class="tab-link button">消息(0)</a>
|
||||
</div>
|
||||
<div class="tabs">
|
||||
<div id="tab_house" class="tab active">
|
||||
@@ -150,7 +154,7 @@
|
||||
<a href="#tabList1" class="tab-link button active">房产({{mh_num}})</a>
|
||||
<a href="#tabList2" class="tab-link button">关注({{mf_num}})</a>
|
||||
<a href="#tabList3" class="tab-link button">收藏({{mc_num}})</a>
|
||||
<a href="#tabList4" class="tab-link button" style="display: none;">消息(2)</a>
|
||||
<a href="#tabList4" class="tab-link button">消息({{mm_num}})</a>
|
||||
</div>
|
||||
<div class="contentBox">
|
||||
<div class="content infinite-scroll infinite-scroll-bottom pstion" data-distance="50">
|
||||
@@ -192,33 +196,15 @@
|
||||
<div class="preloader"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="tabList4" class="tab" style="display: none;">
|
||||
<div id="tabList4" class="tab">
|
||||
<div class="list-block media-list">
|
||||
<ul class="list-container">
|
||||
<li>
|
||||
<a href="#" class="item-content message01 message01-new">
|
||||
<div class="item-media"><i class="icon icon-message01"></i></div>
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">楼市降温这么明显,为什么降价的房子还是这么少?楼市降温这么明显,为什么降价的房子还是这么少?</div>
|
||||
</div>
|
||||
<div class="item-subtitle">2017-11-30 10:10</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="item-content message01">
|
||||
<div class="item-media"><i class="icon icon-message01"></i></div>
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">楼市降温这么明显,为什么降价的房子还是这么少?楼市降温这么明显,为什么降价的房子还是这么少?</div>
|
||||
</div>
|
||||
<div class="item-subtitle">2017-11-30 10:10</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<ul class="list-container" id="messageUl">
|
||||
</ul>
|
||||
</div>
|
||||
<!-- 分页加载效果, 默认不显示, 和 加载loading页区分开-->
|
||||
<div id="loadTip4" class="infinite-scroll-preloader">
|
||||
<div class="preloader"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -228,6 +214,7 @@
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="../../js/zepto.js" charset="utf-8"></script>
|
||||
|
||||
<script>
|
||||
|
||||
/* 关闭路由,以实现不同页面之间的相互跳转(仅开发环境需要) */
|
||||
@@ -235,10 +222,12 @@ Zepto = $
|
||||
$.config = {router: false}
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="../../js/beacon_release.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/vue.js"></script>
|
||||
<script type="text/javascript" src="../../js/light7-2.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/cn.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/sm01.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/mui.min.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../config.js"></script>
|
||||
<script type='text/javascript' src='../../js/common.js' charset='utf-8'></script>
|
||||
@@ -249,9 +238,10 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/user/myFocus.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/user/myCollect.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/user/myHouse.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="../../js/user/myMessage.js" charset="utf-8"></script>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
/* 说明-房产等级 */
|
||||
$(document).on('click','.alert-text-title', function () {
|
||||
$.alert('房产等级是房屋在城市中的综合评级,由高至低分别为 豪宅、公寓、平房、草屋、山洞共5个级别。', '房产等级');
|
||||
@@ -268,7 +258,8 @@ var tab = new Vue({
|
||||
data:{
|
||||
mh_num:"0",
|
||||
mf_num:"0",
|
||||
mc_num:"0"
|
||||
mc_num:"0",
|
||||
mm_num:"0"
|
||||
}
|
||||
})
|
||||
var toolList = new Vue({
|
||||
@@ -278,7 +269,7 @@ var toolList = new Vue({
|
||||
},
|
||||
methods:{
|
||||
goto:function(url){
|
||||
alert(url)
|
||||
// alert(url)
|
||||
if (url != null && url != "") {
|
||||
clicked('../webview_embed.html', true,false,{},{url:url})
|
||||
}
|
||||
@@ -302,15 +293,22 @@ function checkIsLogin(){
|
||||
selectHouseInfoList();
|
||||
//加载我的收藏
|
||||
selectNewsCollectList();
|
||||
//加载消息列表
|
||||
addMessage(mm_itemsPerLoad,0);
|
||||
}
|
||||
}
|
||||
|
||||
//跳转登录方法, 考虑回调
|
||||
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();
|
||||
})
|
||||
}
|
||||
@@ -410,6 +408,29 @@ $(document).on('infinite', '.infinite-scroll',function() {
|
||||
//$.refreshScroller();
|
||||
}, 1000);
|
||||
}
|
||||
if($("#tabList4").hasClass("active")){
|
||||
// 如果正在加载,则退出
|
||||
if(mm_loading) return;
|
||||
// 设置flag
|
||||
mm_loading = true;
|
||||
// 模拟1s的加载过程
|
||||
setTimeout(function() {
|
||||
// 重置加载flag
|
||||
mm_loading = false;
|
||||
mm_lastIndex = $("#messageUl li").length;
|
||||
//如果当前页大于等于总页数
|
||||
if(mm_lastIndex >= mm_totalCount) {
|
||||
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||
//$.detachInfiniteScroll($('.infinite-scroll'));
|
||||
// 删除加载提示符
|
||||
$('#loadTip4').remove();
|
||||
return;
|
||||
}
|
||||
addMessage(mm_itemsPerLoad,$("#messageUl li").length+1);
|
||||
//容器发生改变,如果是js滚动,需要刷新滚动
|
||||
//$.refreshScroller();
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
|
||||
//个人信息展示
|
||||
@@ -431,6 +452,36 @@ function selectUserInfo(){
|
||||
});
|
||||
}
|
||||
|
||||
//删除房产AJAX请求
|
||||
$(document).on("click",".confirm-ok", function () {
|
||||
//获取删除的房产id
|
||||
var id = $(this).attr("id");
|
||||
$.confirm("确定删除?", function () {
|
||||
axios.post(BASE_PATH + "/rest/index/deleteHouseInfoByStatus",
|
||||
{
|
||||
id: id
|
||||
}).then(function (response) {
|
||||
var status = response.data.status;
|
||||
if(status){
|
||||
$.toast(response.data.data);
|
||||
//删除后,如果需要调用checkIsLogin,需要所有的参数初始化
|
||||
//checkIsLogin();
|
||||
window.location.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);
|
||||
}
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
});
|
||||
$(".modal-text").css("text-align","center");
|
||||
});
|
||||
|
||||
function openSettingPage() {
|
||||
clicked('../setting/setting.html',true,false,{},{},function(){})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user