<script src="https://unpkg.com/vue@3"></script>
<div id="app">
<input v-model="amount" type="number"><br>
<input v-model="month" type="number"><br>
Ежемесячный платеж: {{ monthlyPay }}<br>
Итоговая сумма: {{ total }}
</div>
<script>
const { createApp } = Vue
createApp({
data() {
return {
amount: 500000,
month: 3
}
},
computed:{
monthlyPay (){
const monthPercent = 3.9 * this.month
return this.amount / 100 * monthPercent;
},
total(){
return this.amount + this.monthlyPay * this.month;
}
}
}).mount('#app')
</script>
[HttpGet(“page/{Id}/{sid}”)]
public ActionResult Get(string id, string sid){
////.....
}