Compare commits

...

1 Commits
main ... Pen'

Author SHA1 Message Date
Leozillo73
0fad61dfbc qwe 2024-06-01 04:22:29 +04:00
3 changed files with 7 additions and 24 deletions

View File

@ -247,7 +247,7 @@ namespace ZooClientApp.Controllers
ClientId = APIClient.Client.Id,
RoutePreserves = a,
RoutePrice = 100,
RoutePrice = 1000,
RouteName = name
});
Response.Redirect("IndexRoute");
@ -262,6 +262,10 @@ namespace ZooClientApp.Controllers
{
return View();
}
public IActionResult Payment()
{
return View();
}
[HttpGet]
public IActionResult AnimalServices()
{

View File

@ -8,7 +8,7 @@
<div class="list-group">
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="IndexRoute">Создание маршрута</a>
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Payment">Оплата</a>
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Payment">Оплата</a>
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Reports">Отчеты</a>
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Enter">Вход</a>
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Register">Регистрация</a>

View File

@ -17,27 +17,6 @@
</div>
<div class="row">
<div class="col-8"></div>
<div class="col-4"><input type="submit" value="Создать" class="btn btn-primary" /></div>
<div class="col-4"><input type="submit" value="оплатить" class="btn btn-primary" /></div>
</div>
</form>
<script>
$('#canned').on('change', function () {
check();
});
$('#count').on('change', function () {
check();
});
function check() {
var count = $('#count').val();
var canned = $('#canned').val();
if (count && canned) {
$.ajax({
method: "POST",
url: "/Home/Calc",
data: { count: count, canned: canned },
success: function (result) {
$("#sum").val(result);
}
});
};