Browse Source

Added routing url

pull/118/head
malik masis 4 years ago
parent
commit
de27073935
  1. 20
      apps/public-web/src/EShopOnAbp.PublicWeb/Pages/Index.cshtml

20
apps/public-web/src/EShopOnAbp.PublicWeb/Pages/Index.cshtml

@ -14,12 +14,12 @@
} }
@section styles{ @section styles{
<abp-style src="/Pages/index.css" /> <abp-style src="/Pages/index.css" />
} }
@section scripts { @section scripts {
<abp-script src="/client-proxies/basket-proxy.js" /> <abp-script src="/client-proxies/basket-proxy.js" />
<abp-script src="/Pages/index.js" /> <abp-script src="/Pages/index.js" />
} }
@if (Model.HasRemoteServiceError) @if (Model.HasRemoteServiceError)
@ -44,13 +44,15 @@
string productImage = !product.ImageName.IsNullOrEmpty() ? $"{options.Value.RemoteServices.Default.BaseUrl}product-images/{product.ImageName}" : $"{options.Value.RemoteServices.Default.BaseUrl}product-images/@product.ImageName"; string productImage = !product.ImageName.IsNullOrEmpty() ? $"{options.Value.RemoteServices.Default.BaseUrl}product-images/{product.ImageName}" : $"{options.Value.RemoteServices.Default.BaseUrl}product-images/@product.ImageName";
string buyText = L["Index:AddToBasket"]; string buyText = L["Index:AddToBasket"];
<div class="product-list-item" data-product-id="@product.Id.ToString()"> <div class="product-list-item" data-product-id="@product.Id.ToString()">
<div class="col"> <a href="/ProductDetail/@product.Id.ToString()">
<div class="product-info-box"> <div class="col">
<h6>@product.Name</h6> <div class="product-info-box">
<em class="d-block text-muted">@product.Code - @L["StockCount"]: @product.StockCount</em> <h6>@product.Name</h6>
<em class="d-block text-muted">@product.Code - @L["StockCount"]: @product.StockCount</em>
</div>
</div> </div>
</div> <img src="@productImage" />
<img src="@productImage" /> </a>
<div class="row mt-5 "> <div class="row mt-5 ">
@if (product.StockCount > 0) @if (product.StockCount > 0)
{ {

Loading…
Cancel
Save