7 changed files with 56 additions and 1 deletions
@ -0,0 +1,6 @@ |
|||||
|
@using EShopOnAbp.Localization |
||||
|
@using Microsoft.Extensions.Localization |
||||
|
@inject IStringLocalizer<EShopOnAbpResource> L |
||||
|
|
||||
|
<div> |
||||
|
</div> |
||||
@ -0,0 +1,15 @@ |
|||||
|
using System.Collections.Generic; |
||||
|
using Volo.Abp.AspNetCore.Mvc.UI.Bundling; |
||||
|
using Volo.Abp.AspNetCore.Mvc.UI.Packages.SignalR; |
||||
|
using Volo.Abp.Modularity; |
||||
|
|
||||
|
namespace EShopOnAbp.PublicWeb.Components.Payment; |
||||
|
|
||||
|
[DependsOn(typeof(SignalRBrowserScriptContributor))] |
||||
|
public class PaymentWidgetScriptContributor : BundleContributor |
||||
|
{ |
||||
|
public override void ConfigureBundle(BundleConfigurationContext context) |
||||
|
{ |
||||
|
context.Files.AddIfNotContains("/components/payment/payment-widget.js"); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,7 @@ |
|||||
|
using Volo.Abp.AspNetCore.Mvc.UI.Bundling; |
||||
|
|
||||
|
namespace EShopOnAbp.PublicWeb.Components.Payment; |
||||
|
|
||||
|
public class PaymentWidgetStyleContributor: BundleContributor |
||||
|
{ |
||||
|
} |
||||
@ -0,0 +1,20 @@ |
|||||
|
using System.Threading.Tasks; |
||||
|
using Microsoft.AspNetCore.Mvc; |
||||
|
using Volo.Abp.AspNetCore.Mvc; |
||||
|
using Volo.Abp.AspNetCore.Mvc.UI.Widgets; |
||||
|
|
||||
|
namespace EShopOnAbp.PublicWeb.Components.Payment; |
||||
|
|
||||
|
[Widget( |
||||
|
AutoInitialize = true, |
||||
|
RefreshUrl = "/Widgets/Payment", |
||||
|
StyleTypes = new[] {typeof(PaymentWidgetStyleContributor)}, |
||||
|
ScriptTypes = new[] {typeof(PaymentWidgetScriptContributor)} |
||||
|
)] |
||||
|
public class PaymentWidgetViewComponent: AbpViewComponent |
||||
|
{ |
||||
|
public async Task<IViewComponentResult> InvokeAsync() |
||||
|
{ |
||||
|
return await Task.FromResult(View("~/Components/Payment/Default.cshtml")); |
||||
|
} |
||||
|
} |
||||
@ -1,10 +1,14 @@ |
|||||
@page |
@page |
||||
|
|
||||
@using EShopOnAbp.Localization |
@using EShopOnAbp.Localization |
||||
|
@using EShopOnAbp.PublicWeb.Components.Payment |
||||
@using Microsoft.Extensions.Localization |
@using Microsoft.Extensions.Localization |
||||
@model EShopOnAbp.PublicWeb.Pages.PaymentModel |
@model EShopOnAbp.PublicWeb.Pages.PaymentModel |
||||
|
|
||||
@inject IStringLocalizer<EShopOnAbpResource> L |
@inject IStringLocalizer<EShopOnAbpResource> L |
||||
|
|
||||
<div class="row"> |
<div class="row"> |
||||
<h3 class="pt-5 pb-4 text-center">@L["Payment"]</h3> |
<h3 class="pt-5 pb-4 text-center">@L["Payment"]</h3> |
||||
|
<div id="PaymentArea"> |
||||
|
@await Component.InvokeAsync(typeof(PaymentWidgetViewComponent)) |
||||
|
</div> |
||||
</div> |
</div> |
||||
@ -0,0 +1,3 @@ |
|||||
|
(function () { |
||||
|
|
||||
|
})(); |
||||
Loading…
Reference in new issue