Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1
This commit is contained in:
@@ -112,8 +112,8 @@ $("#next_btn").on("click", function () {
|
|||||||
axios.post(BASE_PATH + "/rest/loan/apply", _params).then(function (response) {
|
axios.post(BASE_PATH + "/rest/loan/apply", _params).then(function (response) {
|
||||||
var status = response.data.status;
|
var status = response.data.status;
|
||||||
if(status){
|
if(status){
|
||||||
alert(response.data.data+ '===');
|
//页面跳转
|
||||||
$.toast(response.data.data);
|
//$.toast(response.data.data);
|
||||||
//直接定位到贷款success页面, 调用back()就只用返回一次
|
//直接定位到贷款success页面, 调用back()就只用返回一次
|
||||||
window.location.href = "../../views/loan/loanSuccess.html";
|
window.location.href = "../../views/loan/loanSuccess.html";
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -0,0 +1,391 @@
|
|||||||
|
var city = ""
|
||||||
|
var myCollectCitys = [];
|
||||||
|
var lat;
|
||||||
|
var lng;
|
||||||
|
var allCity = []
|
||||||
|
var myDatasVue = new Vue({
|
||||||
|
el: '#contentTabDiv',
|
||||||
|
data: {
|
||||||
|
title:"",
|
||||||
|
cityDatas : []
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
var date = new Date();
|
||||||
|
var year = date.getFullYear()+'年';
|
||||||
|
var month = date.getMonth()+1+'月';
|
||||||
|
//document.addEventListener('plusready', onPlusReady, false);
|
||||||
|
////扩展API加载完毕,现在可以正常调用扩展API
|
||||||
|
//function onPlusReady(){
|
||||||
|
// getPosition();
|
||||||
|
// loadMyCollectCity();
|
||||||
|
//
|
||||||
|
//}
|
||||||
|
|
||||||
|
loadMyCollectCity();
|
||||||
|
|
||||||
|
// 获取当前用户位置
|
||||||
|
function getPosition(){
|
||||||
|
plus.geolocation.getCurrentPosition(function(p){
|
||||||
|
city = p.address.city;
|
||||||
|
myCollectCitys.push(city);
|
||||||
|
lng = p.coords.longitude;//获取到当前位置的经度
|
||||||
|
lat = p.coords.latitude;//获取到当前位置的纬度;
|
||||||
|
}, function(e){
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
provider:'baidu',
|
||||||
|
enableHighAccuracy:true,
|
||||||
|
coordsType:'bd09ll'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function addUpChart(dataUp, num){
|
||||||
|
/* 小区上涨 */
|
||||||
|
//var dataUp = [];
|
||||||
|
optionUp = {
|
||||||
|
title: {
|
||||||
|
text: dataUp[0].value + '%',
|
||||||
|
subtext: '小区上涨',
|
||||||
|
x: 'center',
|
||||||
|
y: 'center',
|
||||||
|
itemGap: -8,
|
||||||
|
textStyle: {
|
||||||
|
fontFamily: 'Arial, Verdana, sans-serif',
|
||||||
|
fontSize: 30,
|
||||||
|
color: '#333',
|
||||||
|
fontWeight: 'normal'
|
||||||
|
},
|
||||||
|
subtextStyle: {
|
||||||
|
fontFamily: '华文细黑',
|
||||||
|
fontSize: 12,
|
||||||
|
color: '#666'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
color: ['#EB5F34', '#e7e7e7'],
|
||||||
|
series: [
|
||||||
|
{
|
||||||
|
name: '小区上涨',
|
||||||
|
type: 'pie',
|
||||||
|
radius: ['90%', '100%'],
|
||||||
|
itemStyle: {
|
||||||
|
normal: {
|
||||||
|
label: {
|
||||||
|
show: true
|
||||||
|
},
|
||||||
|
labelLine: {
|
||||||
|
show: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data: dataUp
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
var myChartUp = echarts.init(document.getElementById(num+'_up_chart'));
|
||||||
|
myChartUp.setOption(optionUp,true);
|
||||||
|
}
|
||||||
|
|
||||||
|
function addDownChart(dataDown, num){
|
||||||
|
/* 小区下跌 */
|
||||||
|
//var dataDown = [{value: 31, name: ''}];
|
||||||
|
optionDown = {
|
||||||
|
title: {
|
||||||
|
text: dataDown[0].value + '%',
|
||||||
|
subtext: '小区下跌',
|
||||||
|
x: 'center',
|
||||||
|
y: 'center',
|
||||||
|
itemGap: -8,
|
||||||
|
textStyle: {
|
||||||
|
fontFamily: 'Arial, Verdana, sans-serif',
|
||||||
|
fontSize: 30,
|
||||||
|
color: '#333',
|
||||||
|
fontWeight: 'normal'
|
||||||
|
},
|
||||||
|
subtextStyle: {
|
||||||
|
fontFamily: '华文细黑',
|
||||||
|
fontSize: 12,
|
||||||
|
color: '#666'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
color: ['#88D053', '#e7e7e7'],
|
||||||
|
series: [
|
||||||
|
{
|
||||||
|
name: '小区下跌',
|
||||||
|
type: 'pie',
|
||||||
|
radius: ['90%', '100%'],
|
||||||
|
itemStyle: {
|
||||||
|
normal: {
|
||||||
|
label: {
|
||||||
|
show: true
|
||||||
|
},
|
||||||
|
labelLine: {
|
||||||
|
show: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data: dataDown
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
var myChartUp = echarts.init(document.getElementById(num+'_down_chart'));
|
||||||
|
myChartUp.setOption(optionDown,true);
|
||||||
|
}
|
||||||
|
|
||||||
|
//加载我关注的城市
|
||||||
|
function loadMyCollectCity(){
|
||||||
|
axios.get("/rest/quotations/userCollectCitys",{}).then(function (response) {
|
||||||
|
var curDatas = response.data.data
|
||||||
|
|
||||||
|
if(curDatas){
|
||||||
|
var ret = []
|
||||||
|
for(var i in curDatas){
|
||||||
|
var curCity = curDatas[i]
|
||||||
|
if(!IsInArray(myCollectCitys, curCity)){
|
||||||
|
|
||||||
|
allCity.push(curCity)
|
||||||
|
var j = 1;
|
||||||
|
axios.all([loadCityPriceInfo(curCity), detail(curCity), loadCityPricesAndCounts(curCity)])
|
||||||
|
.then(axios.spread(function (acct, perms, trends) {
|
||||||
|
var cityObj = new Object();
|
||||||
|
var data1 = acct.data.data
|
||||||
|
cityObj.numId_up_chart = j+"_up_chart";
|
||||||
|
cityObj.numId_down_chart = j+"_down_chart";
|
||||||
|
cityObj.numId_price_chart = j+"_price_chart";
|
||||||
|
j = j+1;
|
||||||
|
if(data1){
|
||||||
|
cityObj.city = data1.city
|
||||||
|
cityObj.cityTopMonthAvgPrice = data1.cityTopMonthAvgPrice
|
||||||
|
cityObj.downChance = data1.downChance
|
||||||
|
cityObj.follow = data1.follow
|
||||||
|
cityObj.index = data1.index
|
||||||
|
cityObj.oneMonthUpDownRange = (data1.oneMonthUpDownRange*100).toFixed(2)
|
||||||
|
cityObj.oneYearUpDownRange = data1.oneYearUpDownRange
|
||||||
|
cityObj.rangeLevel = data1.rangeLevel
|
||||||
|
cityObj.time = year + month
|
||||||
|
}
|
||||||
|
var data2 = perms.data.data
|
||||||
|
if(data2){
|
||||||
|
cityObj.downRate = data2.downRate
|
||||||
|
cityObj.upRate = data2.upRate
|
||||||
|
}
|
||||||
|
var data3 = trends.data.data
|
||||||
|
if(data3){
|
||||||
|
cityObj.times = data3.times
|
||||||
|
cityObj.cityPriceMap = data3.cityPriceMap
|
||||||
|
cityObj.countMap = data3.countMap
|
||||||
|
}
|
||||||
|
ret.push(cityObj);
|
||||||
|
myDatasVue.$data.cityDatas = ret;
|
||||||
|
//console.log(myDatasVue.$data.cityDatas.length);
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//myDatasVue.$data.cityDatas = ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}).catch(function (error) {
|
||||||
|
alert(error)
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function loadCityPriceInfo(city){
|
||||||
|
return axios.get("/rest/quotations/cityPriceInfo?city="+city);
|
||||||
|
}
|
||||||
|
|
||||||
|
function detail(city){
|
||||||
|
return axios.get("/rest/quotations/hosueQuatations?city="+city);
|
||||||
|
}
|
||||||
|
|
||||||
|
function loadCityPricesAndCounts(city){
|
||||||
|
return axios.get("/rest/quotations/loadCityPriceTrends?city="+city+"&type=2")
|
||||||
|
}
|
||||||
|
|
||||||
|
function loadNearDistrict(){
|
||||||
|
return axios.get("/rest/districts/nearDistrict?lat="+lat+"&lng="+lng)
|
||||||
|
}
|
||||||
|
|
||||||
|
$(".button").click(function(){
|
||||||
|
console.log("type:"+$(this).text())
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
function IsInArray(arr, val){
|
||||||
|
var testStr=','+arr.join(",")+",";
|
||||||
|
return testStr.indexOf(","+val+",")!=-1;
|
||||||
|
}
|
||||||
|
|
||||||
|
var t1 = window.setInterval(loadChart,1000);
|
||||||
|
function loadChart(){
|
||||||
|
var d1 = myDatasVue.$data.cityDatas.length
|
||||||
|
var d2 = allCity.length;
|
||||||
|
if(d2>0 && d2==d1){
|
||||||
|
|
||||||
|
loadUpOrDownChart();
|
||||||
|
|
||||||
|
loadTrends();
|
||||||
|
|
||||||
|
window.clearInterval(t1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function loadUpOrDownChart(){
|
||||||
|
var datas = myDatasVue.$data.cityDatas
|
||||||
|
for(var i in datas){
|
||||||
|
var obj = datas[i]
|
||||||
|
var num = parseInt(i)+1;
|
||||||
|
|
||||||
|
var cityObj1 = new Object();
|
||||||
|
cityObj1.name= ""
|
||||||
|
cityObj1.value = obj.upRate
|
||||||
|
|
||||||
|
var cityObj2 = new Object();
|
||||||
|
cityObj2.name= ""
|
||||||
|
cityObj2.value = 100 - obj.upRate
|
||||||
|
|
||||||
|
dataUp = [cityObj1, cityObj2]
|
||||||
|
addUpChart(dataUp, num)
|
||||||
|
|
||||||
|
|
||||||
|
var cityObj3 = new Object();
|
||||||
|
cityObj3.name= ""
|
||||||
|
cityObj3.value = obj.downRate
|
||||||
|
|
||||||
|
var cityObj4 = new Object();
|
||||||
|
cityObj4.name= ""
|
||||||
|
cityObj4.value = 100 - obj.downRate
|
||||||
|
|
||||||
|
dataDown = [cityObj3, cityObj4]
|
||||||
|
addDownChart(dataDown, num)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function loadTrends(){
|
||||||
|
var datas = myDatasVue.$data.cityDatas
|
||||||
|
for(var i in datas){
|
||||||
|
var obj = datas[i]
|
||||||
|
var num = parseInt(i)+1;
|
||||||
|
|
||||||
|
var prices = []
|
||||||
|
var counts = []
|
||||||
|
var times = obj.times
|
||||||
|
for(var i in times){
|
||||||
|
var time = times[i]
|
||||||
|
time = parseInt(time.replace("-",""))
|
||||||
|
var pm = obj.cityPriceMap;
|
||||||
|
var cm = obj.countMap;
|
||||||
|
if(pm){
|
||||||
|
prices.push(pm[time])
|
||||||
|
}
|
||||||
|
if(cm){
|
||||||
|
counts.push(cm[time]);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
showChart(num+"_price_chart", obj.times, prices, counts)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function showChart(idDom, categories, prices, counts){
|
||||||
|
if(!prices){
|
||||||
|
prices = []
|
||||||
|
}
|
||||||
|
if(!counts){
|
||||||
|
counts = []
|
||||||
|
}
|
||||||
|
/* 城市均价及挂牌走势 */
|
||||||
|
var chart = Highcharts.chart(idDom, {
|
||||||
|
title: {
|
||||||
|
text: '城市均价及挂牌走势',
|
||||||
|
y: -30
|
||||||
|
},
|
||||||
|
colors: ['#F88C9F', '#78CDE6'],
|
||||||
|
xAxis: {
|
||||||
|
type: 'datetime',
|
||||||
|
categories: categories,
|
||||||
|
boundaryGap: false,
|
||||||
|
tickInterval: 2,
|
||||||
|
tickLength: 6,
|
||||||
|
crosshair: true
|
||||||
|
},
|
||||||
|
yAxis: [{ // 第一个Y轴,放置在左边
|
||||||
|
title: {
|
||||||
|
text: '元/㎡',
|
||||||
|
align: 'high',
|
||||||
|
offset: 4,
|
||||||
|
rotation: 0,
|
||||||
|
y: -20
|
||||||
|
},
|
||||||
|
plotLines: [{
|
||||||
|
value: 0,
|
||||||
|
width: 1,
|
||||||
|
color: '#808080'
|
||||||
|
}],
|
||||||
|
allowDecimals: false
|
||||||
|
}, { // 第二个Y轴,放置在右边
|
||||||
|
linkedTo: 0,
|
||||||
|
opposite: true, // 通过此参数设置坐标轴显示在对立面
|
||||||
|
title: {
|
||||||
|
text: '套',
|
||||||
|
align: 'high',
|
||||||
|
offset: 25,
|
||||||
|
rotation: 0,
|
||||||
|
y: -20
|
||||||
|
},
|
||||||
|
plotLines: [{
|
||||||
|
value: 0,
|
||||||
|
width: 1,
|
||||||
|
color: '#808080'
|
||||||
|
}],
|
||||||
|
allowDecimals: false
|
||||||
|
}],
|
||||||
|
credits: {
|
||||||
|
enabled: false
|
||||||
|
},
|
||||||
|
plotOptions: {
|
||||||
|
line: {
|
||||||
|
connectNulls: true //该设置会连接空值点
|
||||||
|
},
|
||||||
|
series: {
|
||||||
|
events: {
|
||||||
|
legendItemClick: function(e) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
marker: {
|
||||||
|
radius: 3, //曲线点半径,默认是4
|
||||||
|
symbol: 'circle' //曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
tooltip: {
|
||||||
|
shared: true
|
||||||
|
},
|
||||||
|
series: [{
|
||||||
|
name: '均价',
|
||||||
|
zIndex: 1,
|
||||||
|
data: prices,
|
||||||
|
tooltip: {
|
||||||
|
valueSuffix: '元/㎡'
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
name: '挂牌量',
|
||||||
|
type: 'column',
|
||||||
|
borderColor: null,
|
||||||
|
data: counts,
|
||||||
|
tooltip: {
|
||||||
|
valueSuffix: '套'
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -142,10 +142,10 @@ $.config = {router: false}
|
|||||||
<script type="text/javascript" src="../../js/axiosPlugin.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/log/log_stat.js" ></script>
|
||||||
<script>
|
<script>
|
||||||
// document.addEventListener('plusready', onPlusReady, false);
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
// function onPlusReady(){
|
function onPlusReady(){
|
||||||
// var self = plus.webview.currentWebview();
|
var self = plus.webview.currentWebview();
|
||||||
// var hid = self.hid;
|
var hid = self.hid;
|
||||||
var houseStatus = ""
|
var houseStatus = ""
|
||||||
hid = '104631167348637696';
|
hid = '104631167348637696';
|
||||||
var house_info = new Vue({
|
var house_info = new Vue({
|
||||||
@@ -183,14 +183,13 @@ $.config = {router: false}
|
|||||||
var price_feedback = new Vue({
|
var price_feedback = new Vue({
|
||||||
el:"#price_feedback",
|
el:"#price_feedback",
|
||||||
data:{
|
data:{
|
||||||
isShow:"none"
|
isShow:"display"
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
feedback:function(i,event){
|
feedback:function(i,event){
|
||||||
if($(event.target).hasClass("theme")){
|
if($(event.target).hasClass("theme")){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//return;
|
|
||||||
axios.post("/rest/evaluate/feedBack",{
|
axios.post("/rest/evaluate/feedBack",{
|
||||||
hid:hid,
|
hid:hid,
|
||||||
reason:i
|
reason:i
|
||||||
@@ -199,11 +198,19 @@ $.config = {router: false}
|
|||||||
$("#price_feedback").hide();
|
$("#price_feedback").hide();
|
||||||
}).catch(function(error){console.log(error)})
|
}).catch(function(error){console.log(error)})
|
||||||
},
|
},
|
||||||
feedbackable:function(){
|
isFeedback:function(){
|
||||||
|
axios.get("/rest/evaluate/isFeedBack",{params:{
|
||||||
|
id:hid
|
||||||
|
}}).then(function(response){
|
||||||
|
if(response.data.status){
|
||||||
|
if(1==response.data.data){
|
||||||
|
price_feedback.isShow="none"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}).catch(function(error){console.log(error)})
|
||||||
}
|
}
|
||||||
},mounted(){
|
},mounted:function(){
|
||||||
|
this.isFeedback();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -266,7 +273,7 @@ $.config = {router: false}
|
|||||||
console.log(error)
|
console.log(error)
|
||||||
})
|
})
|
||||||
|
|
||||||
// }
|
}
|
||||||
|
|
||||||
|
|
||||||
//添加管理AJAX请求
|
//添加管理AJAX请求
|
||||||
@@ -281,6 +288,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);
|
||||||
}
|
}
|
||||||
@@ -306,6 +316,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,
|
||||||
|
|||||||
@@ -498,7 +498,6 @@ $.config = {router: false}
|
|||||||
coordsType:'bd09ll'
|
coordsType:'bd09ll'
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
alert(city)
|
|
||||||
var myFocus = new Vue({
|
var myFocus = new Vue({
|
||||||
el:"#myFocus"
|
el:"#myFocus"
|
||||||
})
|
})
|
||||||
@@ -613,7 +612,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>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user