aa
This commit is contained in:
@@ -276,6 +276,9 @@ function addManagement(id, houseStatus, liveStatus){
|
|||||||
if(status){
|
if(status){
|
||||||
$.toast(response.data.data);
|
$.toast(response.data.data);
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
|
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||||
|
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||||
|
plus.webview.getWebviewById('views/house/houseList.html').reload();
|
||||||
}else{
|
}else{
|
||||||
$.toast(response.data.message);
|
$.toast(response.data.message);
|
||||||
}
|
}
|
||||||
@@ -301,6 +304,7 @@ $(".content-block .button").on("click", function () {
|
|||||||
|
|
||||||
/* 房产用途 */
|
/* 房产用途 */
|
||||||
$(document).on('click','.open-vertical-modal', function () {
|
$(document).on('click','.open-vertical-modal', function () {
|
||||||
|
var houseStatus = 0;
|
||||||
$.modal({
|
$.modal({
|
||||||
title: '房产用途',
|
title: '房产用途',
|
||||||
verticalButtons: true,
|
verticalButtons: true,
|
||||||
|
|||||||
@@ -601,7 +601,6 @@ $.config = {router: false}
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
console.log(response.data.data)
|
|
||||||
//0:涨幅排行 1:潜力排行 2:均价排行
|
//0:涨幅排行 1:潜力排行 2:均价排行
|
||||||
new Vue({
|
new Vue({
|
||||||
el: '#countryRank',
|
el: '#countryRank',
|
||||||
|
|||||||
@@ -104,16 +104,6 @@ $.config = {router: false}
|
|||||||
//调用mui.init方法
|
//调用mui.init方法
|
||||||
$.init()
|
$.init()
|
||||||
|
|
||||||
//判断是否登录
|
|
||||||
function checkIsLogin(){
|
|
||||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
|
||||||
$('#dataList').hide();
|
|
||||||
$('#noData').show();
|
|
||||||
}else{
|
|
||||||
selectEvaluateList();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 房产用途 */
|
/* 房产用途 */
|
||||||
$(document).on('click','.open-vertical-modal', function () {
|
$(document).on('click','.open-vertical-modal', function () {
|
||||||
//获取对应<li>栏目存储的houseinfo id
|
//获取对应<li>栏目存储的houseinfo id
|
||||||
@@ -167,7 +157,6 @@ function addManagement(id, houseStatus, liveStatus){
|
|||||||
console.log(error);
|
console.log(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
//查询房产评估列表AJAX请求
|
//查询房产评估列表AJAX请求
|
||||||
function selectEvaluateList(){
|
function selectEvaluateList(){
|
||||||
//先清空列表
|
//先清空列表
|
||||||
@@ -178,18 +167,17 @@ function selectEvaluateList(){
|
|||||||
params: {}
|
params: {}
|
||||||
}).then(function (response) {
|
}).then(function (response) {
|
||||||
var resultsMap = response.data.data;
|
var resultsMap = response.data.data;
|
||||||
var results = resultsMap.houseInfoList;
|
if(response.data.data==null || resultsMap.houseInfoList==null || resultsMap.houseInfoList.length==0){
|
||||||
if(resultsMap.houseInfoList.length==0){
|
|
||||||
$('#dataList').hide();
|
$('#dataList').hide();
|
||||||
$('#noData').show();
|
$('#noData').show();
|
||||||
}else{
|
}else{
|
||||||
$('#dataList').show();
|
$('#dataList').show();
|
||||||
$('#noData').hide();
|
$('#noData').hide();
|
||||||
|
var results = resultsMap.houseInfoList;
|
||||||
var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
|
var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
|
||||||
var cityAvgPriceMap = resultsMap.cityAvgPriceMap;
|
var cityAvgPriceMap = resultsMap.cityAvgPriceMap;
|
||||||
//构造数据列表
|
//构造数据列表
|
||||||
htmlContent = constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap, htmlContent);
|
htmlContent = constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap, htmlContent);
|
||||||
|
|
||||||
//动态追加内容
|
//动态追加内容
|
||||||
$('.list-block ul').html(htmlContent);
|
$('.list-block ul').html(htmlContent);
|
||||||
//添加loading等待效果
|
//添加loading等待效果
|
||||||
@@ -260,16 +248,20 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap
|
|||||||
return htmlContent;
|
return htmlContent;
|
||||||
}
|
}
|
||||||
|
|
||||||
//界面加载
|
|
||||||
$(document).ready(function () {
|
|
||||||
checkIsLogin();
|
|
||||||
});
|
|
||||||
|
|
||||||
function openaddWindow(){
|
function openaddWindow(){
|
||||||
clicked('/views/house/add.html',true,false,{},{type:1},function(){
|
clicked('/views/house/add.html',true,false,{},{type:1},function(){
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
//判断是否登录
|
||||||
|
function checkIsLogin(){
|
||||||
|
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||||
|
$('#dataList').hide();
|
||||||
|
$('#noData').show();
|
||||||
|
}else{
|
||||||
|
selectEvaluateList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
checkIsLogin()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user