提交 我的资产排名
This commit is contained in:
@@ -17,12 +17,13 @@
|
|||||||
.list-block ul:before{height:0;}
|
.list-block ul:before{height:0;}
|
||||||
.icon-houseLevel{width:0.8rem;height:0.75rem;background:url(../../images/icon-houseLevel.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:-0.1rem;}
|
.icon-houseLevel{width:0.8rem;height:0.75rem;background:url(../../images/icon-houseLevel.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:-0.1rem;}
|
||||||
.cardPrice01 .card-content{background:url(../../images/cardBg01.png) no-repeat center bottom;background-size:100%;}
|
.cardPrice01 .card-content{background:url(../../images/cardBg01.png) no-repeat center bottom;background-size:100%;}
|
||||||
|
|
||||||
.list-block .add{background:none;font-size:0.75rem;color:#F18D00;position:absolute;top:0;right:0;padding:0.5rem 0.75rem;}
|
.list-block .add{background:none;font-size:0.75rem;color:#F18D00;position:absolute;top:0;right:0;padding:0.5rem 0.75rem;}
|
||||||
.list-block .add01{padding:0 0.5rem;top:1.1rem;right:0.75rem;}
|
.list-block .add01{padding:0 0.5rem;top:1.1rem;right:0.75rem;}
|
||||||
.list-block .add01a{top:inherit;bottom:0.75rem;right:0.75rem;}
|
.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 em{font-size:0.8rem;color:#EB5F34;}
|
||||||
.list-block .item-title .tag small{font-size:80%;color:#F5A100;}
|
.list-block .item-title .tag small{font-size:80%;color:#F5A100;}
|
||||||
|
.cardPrice01 .card-footer span:nth-child(2){text-align:center;}
|
||||||
|
.list-block ul:before{height:0;}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
@@ -185,6 +186,7 @@ function selectHouseInfoList(){
|
|||||||
var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
|
var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
|
||||||
var xqPotentialIndexMap = resultsMap.xqPotentialIndexMap;
|
var xqPotentialIndexMap = resultsMap.xqPotentialIndexMap;
|
||||||
var houseInfoTotalMap = resultsMap.houseInfoTotalMap;
|
var houseInfoTotalMap = resultsMap.houseInfoTotalMap;
|
||||||
|
var userAssetsLevelMap = resultsMap.userAssetsLevelMap;
|
||||||
// 上次加载的序号
|
// 上次加载的序号
|
||||||
lastIndex = $('.list-container li').length;
|
lastIndex = $('.list-container li').length;
|
||||||
//登录状态,但没有数据
|
//登录状态,但没有数据
|
||||||
@@ -224,7 +226,7 @@ function selectHouseInfoList(){
|
|||||||
pageSize = resultsMap.houseInfoPageList.limit;
|
pageSize = resultsMap.houseInfoPageList.limit;
|
||||||
totalPages = resultsMap.houseInfoPageList.totalPages;
|
totalPages = resultsMap.houseInfoPageList.totalPages;
|
||||||
totalRecords = resultsMap.houseInfoPageList.totalRecords;
|
totalRecords = resultsMap.houseInfoPageList.totalRecords;
|
||||||
addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xqPotentialIndexMap, houseInfoTotalMap);
|
addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xqPotentialIndexMap, houseInfoTotalMap, userAssetsLevelMap);
|
||||||
}).catch(function (error) {
|
}).catch(function (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
});
|
});
|
||||||
@@ -275,8 +277,10 @@ function gotoAddHouse(){
|
|||||||
|
|
||||||
//跳转资产排名
|
//跳转资产排名
|
||||||
function gotoAssetsLevel(){
|
function gotoAssetsLevel(){
|
||||||
clicked('/views/user/assetsLevel.html',true,false,{},{},function(){
|
if(baseInfo.userAssetsLevel == "暂无"){
|
||||||
})
|
return;
|
||||||
|
}
|
||||||
|
clicked('/views/user/assetsLevel.html',true,false,{},{},function(){})
|
||||||
}
|
}
|
||||||
|
|
||||||
//跳转房产详情
|
//跳转房产详情
|
||||||
@@ -296,12 +300,15 @@ function gotoLoanApply(houseId, city){
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* 分页构造数据 */
|
/* 分页构造数据 */
|
||||||
function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xqPotentialIndexMap, houseInfoTotalMap) {
|
function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xqPotentialIndexMap, houseInfoTotalMap, userAssetsLevelMap) {
|
||||||
var html = '';
|
var html = '';
|
||||||
//控制总产值部分显示
|
//控制总产值部分显示
|
||||||
baseInfo.totalPrice = houseInfoTotalMap["totalPrice"];
|
baseInfo.totalPrice = houseInfoTotalMap["totalPrice"];
|
||||||
baseInfo.oneYearUpDownRange = Math.abs(houseInfoTotalMap["oneYearUpDownRange"]);
|
baseInfo.oneYearUpDownRange = Math.abs(houseInfoTotalMap["oneYearUpDownRange"]);
|
||||||
baseInfo.oneYearUpDownPrice = Math.abs(houseInfoTotalMap["oneYearUpDownPrice"]);
|
baseInfo.oneYearUpDownPrice = Math.abs(houseInfoTotalMap["oneYearUpDownPrice"]);
|
||||||
|
//资产排名(资产为0,不可点击)
|
||||||
|
baseInfo.userAssetsLevel = userAssetsLevelMap["userAssetsLevel"] == 0?"暂无":userAssetsLevelMap["userAssetsLevel"];
|
||||||
|
|
||||||
if(!isNaN(houseInfoTotalMap["oneYearUpDownRange"])){
|
if(!isNaN(houseInfoTotalMap["oneYearUpDownRange"])){
|
||||||
//涨跌幅大于零
|
//涨跌幅大于零
|
||||||
if(parseFloat(houseInfoTotalMap["oneYearUpDownRange"])>=0){
|
if(parseFloat(houseInfoTotalMap["oneYearUpDownRange"])>=0){
|
||||||
|
|||||||
Reference in New Issue
Block a user