提交更新1

parent 12242611
......@@ -447,7 +447,7 @@
class="consume-total">{{livingExpensesAllowance.userConsumeAmount}}</text><text
v-if="livingExpensesAllowance.gradeAverageAmount>0">,同比上{{['',''][reportTypeIndex]}}<text
class="consume-total">{{livingExpensesAllowance.lastMonthRateStr}}
<van-icon :class="livingExpensesAllowance.lastMonthRate>0?'':'livingCostUp'"
<van-icon :class="livingExpensesAllowance.lastMonthRate>0?'livingCostUp':''"
name="down" />
</text>
</text>
......@@ -2921,15 +2921,15 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
if (this.consumerAmountObj[0]) {
this.livingExpensesAllowance.userConsumeAmount = this.consumerAmountObj[0]
.livingCostAmount; //本月
this.livingExpensesAllowance.lastMonthRate = this.consumerAmountObj[0].rate;
this.livingExpensesAllowance.lastMonthRateStr = this.consumerAmountObj[0].rate > 0 ? this
.consumerAmountObj[0].rate + '%' : (this.consumerAmountObj[0].rate < 0 ? this
.consumerAmountObj[0].rate.toString()
.slice(1) + '%' : 0 + '%');
}
if (this.consumerAmountObj[1]) {
this.livingExpensesAllowance.gradeAverageAmount = this.consumerAmountObj[1]
.livingCostAmount; //上月
this.livingExpensesAllowance.lastMonthRate = this.consumerAmountObj[1].rate;
this.livingExpensesAllowance.lastMonthRateStr = this.consumerAmountObj[1].rate > 0 ? this
.consumerAmountObj[1].rate + '%' : (this.consumerAmountObj[1].rate < 0 ? this
.consumerAmountObj[1].rate.toString()
.slice(1) + '%' : 0 + '%');
}
if (this.consumerAmountObj[2]) {
this.livingExpensesAllowance.schoolAverageAmount = this.consumerAmountObj[2]
......
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