Commit 308d3371 by kyle

差额公式修改

parent c21a0be6
......@@ -149,14 +149,14 @@
</view>
<view id="myEcharts" style="height: 500rpx;"></view>
<view style="text-align: center;margin-bottom: 30rpx;color: #c3c1c1;font-size: 22rpx;">
差额 = 你想要的-可实现
差额 = 可实现的 - 你想要
</view>
<view v-show="resultInfos.code == 'A001' || resultInfos.code =='A002'">
1.如您想实现{{resultInfos.nyear}}年后在{{resultInfos.provinceName}} {{resultInfos.cityName}}地区购买{{resultInfos.preOrderSize}}㎡的房产,那么您还需要提高首付款到{{resultInfos.pvDownPayment}}元,或您需提高每年预备还房贷资金总额到{{resultInfos.houseSpecialPurpose}}元。
1.如您想实现{{resultInfos.nyear}}年后在{{resultInfos.provinceName}}-{{resultInfos.cityName}}地区购买{{resultInfos.preOrderSize}}㎡的房产,那么您还需要提高首付款到{{numberConverter(resultInfos.pvDownPayment)}}元,或您需提高每年预备还房贷资金总额到{{numberConverter(resultInfos.houseSpecialPurpose)}}元。
</view>
<view>
<view style="margin-top: 10rpx;">
{{resultInfos.code == 'A001' || resultInfos.code =='A002'?'2':'1'}}.
根据您的已备首付款和每年预备还房贷资金总额,您在{{resultInfos.nyear}}年后可实现购买房屋单价为{{tipsPrice}}元/㎡,总价为{{tipsTotalPrice}}元的房产。
根据您的已备首付款和每年预备还房贷资金总额,您在{{resultInfos.nyear}}年后可实现购买房屋单价为{{numberConverter(tipsPrice)}}元/㎡,总价为{{numberConverter(tipsTotalPrice)}}元的房产。
</view>
</view>
<view class="line" v-for="houseItem in housePurchasePrices">
......@@ -168,25 +168,25 @@
<view class="left">
<view class="realizable">可实现的</view>
<view>终值:{{numberConverter(houseItem.fvPriceRealization)}}</view>
<view class="now">
<!-- <view class="now">
现值:{{numberConverter(houseItem.pvPriceRealization)}}
</view>
</view> -->
</view>
<img src="../../static/images/vs.png" alt="">
<view class="right">
<view class="realizable">你想要的</view>
<view>终值:{{numberConverter(houseItem.fvPriceDesired)}}</view>
<view class="now">
<!-- <view class="now">
现值:{{numberConverter(houseItem.pvPriceDesired)}}
</view>
</view> -->
</view>
</view>
<view class="line_bottom" v-show="houseItem.fvDifference <= 0">
<text style="font-size: 36rpx;">恭喜您</text>!经过测算,您已超出目标值{{numberConverter(Math.abs(houseItem.fvDifference))}},{{resultInfos.nyear}}年后可以达成您的目标.
<text style="font-size: 36rpx;">恭喜您</text>!经过测算,您{{getResultTitle(houseItem.priceType)}}已超出目标值{{numberConverter(Math.abs(houseItem.fvDifference))}},{{resultInfos.nyear}}年后可以达成您的目标.
</view>
<view class="line_bottom fail" v-show="houseItem.fvDifference > 0">
<text style="font-size: 36rpx;">很遗憾!</text>
经过测算,距离实现您的目标还差{{numberConverter(Math.abs(houseItem.fvDifference))}}。您可以参考我们给出的建议进行调整。
经过测算,距离实现您的{{getResultTitle(houseItem.priceType)}}目标还差{{numberConverter(Math.abs(houseItem.fvDifference))}}。您可以参考我们给出的建议进行调整。
</view>
</view>
</view>
......@@ -335,11 +335,11 @@
const list1 = this.housePurchasePrices.filter((item)=>{
return item.priceType == 3
})[0];
this.downPaymentList = [].concat(list1.pvPriceRealization,list1.pvPriceDesired,list1.pvDifference)
this.downPaymentList = [].concat(list1.pvPriceRealization,list1.pvPriceDesired,-(list1.pvDifference))
const list2 = this.housePurchasePrices.filter((item)=>{
return item.priceType == 4
})[0];
this.totalLoanList = [].concat(list2.fvPriceRealization,list2.fvPriceDesired,list2.fvDifference)
this.totalLoanList = [].concat(list2.fvPriceRealization,list2.fvPriceDesired,-(list2.fvDifference))
}
this.myChart.setOption({
legend: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment