We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 551f442 commit 501fe0aCopy full SHA for 501fe0a
projects/wonder_flowers/index.html
@@ -96,7 +96,7 @@ <h1>Доставка цветов</h1>
96
</p>
97
<p>
98
При совмещении нескольких заказов стоимость каждого последующего заказа рассчитывается как:<br>
99
- <mark>cost = max(100, 5 * duration)</mark>
+ <mark>cost = 330 + atan((duration - 30) / 20) * 230</mark>
100
101
102
<mark>cost</mark> - стоимость доставки<br>
projects/wonder_flowers/script.js
@@ -29,7 +29,7 @@ Vue.component('calc-item', {
29
},
30
computed: {
31
cost: function () {
32
- return Math.round(Math.max(this.duration * 5, 100) / 10) * 10
+ return Math.round((330 + Math.atan((this.duration - 30) / 20) * 230) / 10) * 10
33
}
34
35
methods: {
0 commit comments