|
|
|
@ -135,11 +135,47 @@ Page({
|
|
|
|
|
res.data[key] = '' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(res.data.totalConsArea&&res.data.totalConsArea!=''&&res.data.totalConsArea!=0){ |
|
|
|
|
res.data.bizSpaceRatio=((res.data.bizSpace/res.data.totalConsArea)*100).toFixed(2); |
|
|
|
|
res.data.commerceSpaceRatio=((res.data.commerceSpace/res.data.totalConsArea)*100).toFixed(2); |
|
|
|
|
}else{ |
|
|
|
|
res.data.bizSpaceRatio=0; |
|
|
|
|
res.data.commerceSpaceRatio=0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.setData({ |
|
|
|
|
myData: res.data |
|
|
|
|
}) |
|
|
|
|
let totalConsArea = res.data.totalConsArea; |
|
|
|
|
|
|
|
|
|
$api.AJAX('GET', 'applets/landlistedconstructionplan/list/' + this.data.landListedId, true).then(res => { |
|
|
|
|
let plan = 0; |
|
|
|
|
let planRatio = 0; |
|
|
|
|
let unplan = 0; |
|
|
|
|
|
|
|
|
|
for(let i in res.data){ |
|
|
|
|
if(res.data[i].constructionType=='1'){ |
|
|
|
|
plan+=res.data[i].constructionArea |
|
|
|
|
}else if(res.data[i].constructionType=='2'){ |
|
|
|
|
unplan+=res.data[i].constructionArea |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (totalConsArea&&totalConsArea!=''&&totalConsArea!=0){ |
|
|
|
|
planRatio = (plan/totalConsArea*100).toFixed(2); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.setData({ |
|
|
|
|
'myData.plan': plan, |
|
|
|
|
'myData.planRatio': planRatio, |
|
|
|
|
'myData.unplan': unplan, |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
$api.AJAX('GET', 'applets/landlistedconductenterprise/list/' + this.data.landListedId, true).then(res => { |
|
|
|
|
this.setData({ |
|
|
|
|
'myData.enterprise': res.data |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
$api.getPreSaleDetailList({landListedId: this.data.landListedId}).then(res => { |
|
|
|
|
this.setData({ |
|
|
|
|
'presentInfo.more': res.data |
|
|
|
|