提交 0b450b62 authored 作者: 王鹏飞's avatar 王鹏飞

update

上级 dac9edbb
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</ul> </ul>
<ul> <ul>
<li> <li>
<b>单条留资成本:</b><span>{{ numbers.app_cost }}</span> <b>单条留资成本:</b><span>{{ (numbers.cost / numbers.on_line_app_count).toFixed(2) }}</span>
</li> </li>
<li> <li>
<b>&nbsp;&nbsp;&nbsp;本月缴费数:</b><span>{{ currentData.all_pay_count }}</span> <b>&nbsp;&nbsp;&nbsp;本月缴费数:</b><span>{{ currentData.all_pay_count }}</span>
...@@ -85,13 +85,13 @@ export default { ...@@ -85,13 +85,13 @@ export default {
numbers() { numbers() {
return this.list.reduce( return this.list.reduce(
(result, item) => { (result, item) => {
result.app_cost += Math.floor(item.app_cost / this.list.length) result.cost += item.cost
result.app_count += item.app_count result.app_count += item.app_count
result.apply_count += item.apply_count result.apply_count += item.apply_count
result.pay_count += item.pay_count result.on_line_app_count += item.on_line_app_count
return result return result
}, },
{ app_cost: 0, app_count: 0, apply_count: 0, pay_count: 0 } { app_count: 0, apply_count: 0, cost: 0, on_line_app_count: 0 }
) )
} }
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论