...
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
@using Shared.DTOs
|
||||
@inject HttpClient _hc
|
||||
<div class="contact-info-area pb-90" id="contact">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tp-project__area grey-bg pt-50 pb-50 fix" id="blog">
|
||||
<div class="blog-grid-inner mb-10">
|
||||
<div class="container">
|
||||
|
@@ -3,18 +3,18 @@
|
||||
<div class="accordion-items">
|
||||
<h2 class="accordion-header" id="headingOne">
|
||||
<button class="accordion-buttons collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="false" aria-controls="collapseOne">
|
||||
@item.Title
|
||||
@qitem?.Title
|
||||
<span class="accordion-btn"></span>
|
||||
</button>
|
||||
</h2>
|
||||
<div id="collapseOne" class="accordion-collapse collapse" aria-labelledby="headingOne" data-bs-parent="#accordionExample">
|
||||
<div class="accordion-body">
|
||||
@item.Answer
|
||||
@qitem?.Answer
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
[Parameter]
|
||||
public QuestionDto? item { get; set; }
|
||||
public QuestionDto? qitem { get; set; }
|
||||
}
|
||||
|
@@ -1,23 +1,35 @@
|
||||
@using Shared.DTOs
|
||||
@inject HttpClient _hc
|
||||
@inject NavigationManager Navigation
|
||||
|
||||
<div class="tp-faq-area pt-50">
|
||||
<div class="container p-0">
|
||||
<div class="row g-0">
|
||||
<div class="col-xl-12">
|
||||
<h4 class="sv-details-title">سوالات پر تکرار</h4>
|
||||
|
||||
<div class="popular-blog-title mb-40">
|
||||
<h4>سوالات پر تکرار</h4>
|
||||
</div>
|
||||
<div class="tp-custom-accordion">
|
||||
<div class="accordion tp-inner-font" id="accordionExample">
|
||||
|
||||
@for (int i = 0; i < request?.list.Count; i++)
|
||||
{
|
||||
<ItemQuestion qitem="request?.list[i]" />
|
||||
}
|
||||
@*
|
||||
@foreach (var item in request?.list)
|
||||
{
|
||||
<ItemQuestion Item="item" />
|
||||
}
|
||||
@* <ItemQuestion item="request?.list[0]" /> *@
|
||||
} *@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<br />
|
||||
<div class="container">
|
||||
<nav aria-label="Page navigation">
|
||||
<ul class="pagination justify-content-center">
|
||||
@for (int page = 1; page <= request?.PageCount; page++)
|
||||
@@ -42,29 +54,16 @@
|
||||
</div>
|
||||
|
||||
@code {
|
||||
[Parameter, SupplyParameterFromQuery]
|
||||
public int? PageIndex { get; set; }
|
||||
[Parameter]
|
||||
public int PageIndex { get; set; }
|
||||
|
||||
QuestionDto modeltest = new QuestionDto
|
||||
{
|
||||
Answer = "ندارد",
|
||||
Category = "تست",
|
||||
ID = 1,
|
||||
Title = "دسته"
|
||||
};
|
||||
|
||||
public Shared.DTOs.PagingDto<QuestionDto>? request { get; set; } = new PagingDto<QuestionDto>(1, 1, new List<QuestionDto>()
|
||||
|
||||
public Shared.DTOs.PagingDto<QuestionDto>? request { get; set; }
|
||||
|
||||
protected override async Task OnParametersSetAsync()
|
||||
{
|
||||
new QuestionDto
|
||||
{
|
||||
Answer="ندارد",Category="تست",ID=1,Title="دسته"
|
||||
request = await _hc.GetFromJsonAsync<PagingDto<QuestionDto>>($"Base/LastQuestion?PageIndex={PageIndex}&PageSize=6");
|
||||
await base.OnParametersSetAsync();
|
||||
}
|
||||
});
|
||||
|
||||
// protected override async Task OnParametersSetAsync()
|
||||
// {
|
||||
// if (PageIndex == null) PageIndex = 1;
|
||||
// request = await _hc.GetFromJsonAsync<PagingDto<QuestionDto>>($"Base/LastQuestion?PageIndex={PageIndex ?? 1}&PageSize=6");
|
||||
// await base.OnParametersSetAsync();
|
||||
// }
|
||||
}
|
||||
|
70
TaxPayerFull/Layout/TaxTools.razor
Normal file
70
TaxPayerFull/Layout/TaxTools.razor
Normal file
@@ -0,0 +1,70 @@
|
||||
<div class="contact-info-area pb-90" id="contact">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tp-project__area grey-bg pt-50 pb-50 fix">
|
||||
<div class="container">
|
||||
<div class="row gx-0">
|
||||
<h5 class="inner-section-subtitle">ابزار/سامانه مودیان</h5>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="popular-blog-title mb-40">
|
||||
<h4>ساخت فایل CSR</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row gx-0">
|
||||
<div class="contact-form-right-warp">
|
||||
<div class="postbox__comment-form">
|
||||
<form action="#" class="box">
|
||||
<div class="row gx-20">
|
||||
<div class="col-12">
|
||||
<div class="postbox__comment-input mb-30">
|
||||
<input type="text" class="inputText" required="">
|
||||
<span class="floating-label">cn</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="postbox__comment-input mb-30">
|
||||
<input type="text" class="inputText" required="">
|
||||
<span class="floating-label">sn</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="postbox__comment-input mb-35">
|
||||
<input type="text" class="inputText" required="">
|
||||
<span class="floating-label">Company</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="postbox__comment-input mb-35">
|
||||
<input type="text" class="inputText" required="">
|
||||
<span class="floating-label">Mobile</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xxl-6">
|
||||
<div class="postbox__btn-box w-50">
|
||||
<button class="submit-btn">ایجاد CSR و PrivateKey</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-xxl-6">
|
||||
<div class="postbox__btn-box">
|
||||
<button class="submit-btn">خواندن PublicKey</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
|
||||
}
|
@@ -371,12 +371,15 @@
|
||||
<!-- tp-rank-area-start -->
|
||||
<Rank />
|
||||
<!-- tp-rank-area-end -->
|
||||
<!-- tp-TaxTools-start-->
|
||||
<TaxTools />
|
||||
<!--tp-TaxTools-end-->
|
||||
<!-- tp-question-start-->
|
||||
<LQuestion PageIndex="1" />
|
||||
<!--tp-question-end-->
|
||||
<!-- tp-project-area-start -->
|
||||
<Blog />
|
||||
<!-- tp-project-area-end -->
|
||||
<!-- tp-question-start-->
|
||||
<LQuestion />
|
||||
<!--tp-question-end-->
|
||||
<!-- tp-contact-area-Start -->
|
||||
<Contact />
|
||||
<!-- tp-contact-area-end -->
|
||||
|
@@ -7,9 +7,9 @@ var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
||||
builder.RootComponents.Add<App>("#app");
|
||||
builder.RootComponents.Add<HeadOutlet>("head::after");
|
||||
|
||||
//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://localhost:7075/api/") });
|
||||
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://localhost:7075/api/") });
|
||||
|
||||
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://localhost:5271/api/") });
|
||||
//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://localhost:5271/api/") });
|
||||
|
||||
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("fa-Ir");
|
||||
|
||||
|
Reference in New Issue
Block a user