|
|
|
@ -1,7 +1,11 @@ |
|
|
|
@using EShopOnAbp.Localization |
|
|
|
@using Microsoft.AspNetCore.Mvc.Localization |
|
|
|
@using Microsoft.Extensions.Options |
|
|
|
@using Volo.Abp.Http.Client |
|
|
|
@inject IHtmlLocalizer<EShopOnAbpResource> L |
|
|
|
@model EShopOnAbp.BasketService.Services.BasketDto |
|
|
|
@inject IOptions<AbpRemoteServiceOptions> options |
|
|
|
|
|
|
|
<div id="shopping-cart" class="nav-link"> |
|
|
|
|
|
|
|
@if (Model == null) |
|
|
|
@ -34,7 +38,7 @@ |
|
|
|
{ |
|
|
|
foreach (var item in Model.Items) |
|
|
|
{ |
|
|
|
string imageName = item.ImageName.IsNullOrEmpty() ? "/product-images/noimage.jpg" : $"/product-images/{item.ImageName}"; |
|
|
|
string imageName = item.ImageName.IsNullOrEmpty() ? $"{options.Value.RemoteServices.Default.BaseUrl}product-images/noimage.jpg" : $"{options.Value.RemoteServices.Default.BaseUrl}product-images/{item.ImageName}"; |
|
|
|
var price = item.TotalPrice.ToString("0.00"); |
|
|
|
<div class="dropdown-item"> |
|
|
|
|
|
|
|
|