Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
0fad61dfbc |
@ -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()
|
||||
{
|
||||
|
@ -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>
|
||||
|
@ -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);
|
||||
}
|
||||
});
|
||||
};
|
Loading…
Reference in New Issue
Block a user