Compare commits
No commits in common. "a157ebe311e9368d955e2a6ffdfffd4a8ebb2806" and "e062f70f90aa63ac936c5fbe8dcdefeea2cea6b7" have entirely different histories.
a157ebe311
...
e062f70f90
Binary file not shown.
|
|
@ -54,11 +54,7 @@
|
||||||
console.log("dates: " + myDate + ", " + fixedDate);
|
console.log("dates: " + myDate + ", " + fixedDate);
|
||||||
let resultDate = new Date(fixedDate);
|
let resultDate = new Date(fixedDate);
|
||||||
console.log("dates: " + myDate + ", " + fixedDate + ", " + resultDate);
|
console.log("dates: " + myDate + ", " + fixedDate + ", " + resultDate);
|
||||||
let options = {
|
|
||||||
year: "numeric", month: "numeric",
|
|
||||||
day: "numeric", hour: "2-digit", minute: "2-digit"
|
|
||||||
};
|
|
||||||
let status = productToAuctionDto.auctionStatus;
|
|
||||||
// Add a new div as the first child
|
// Add a new div as the first child
|
||||||
if (isActive) {
|
if (isActive) {
|
||||||
console.log("isActive: " + isActive);
|
console.log("isActive: " + isActive);
|
||||||
|
|
@ -69,28 +65,16 @@
|
||||||
'</p><span>' +
|
'</p><span>' +
|
||||||
"No.: " + productToAuctionDto.sortIndex +
|
"No.: " + productToAuctionDto.sortIndex +
|
||||||
'</span></div>');
|
'</span></div>');
|
||||||
}
|
} else {
|
||||||
else if (status == AuctionStatus.Sold || status == AuctionStatus.NotSold) {
|
|
||||||
console.log("isActive: " + isActive);
|
console.log("isActive: " + isActive);
|
||||||
productItem.prepend('<div id="' +
|
productItem.prepend('<div id="' +
|
||||||
publicInfoOverlayId +
|
publicInfoOverlayId +
|
||||||
'" class="bg-secondary p-1 text-white text-center" style="position: absolute; width: calc(100% - 1rem); height: 50px; z-index: 1;"><p class="m-0"><i class="fa-solid fa-gavel"></i> ' +
|
'" class="bg-primary p-1 text-white text-center" style="position: absolute; width: calc(100% - 1rem); height: 50px; z-index: 1;"><p class="m-0"><i class="fa-solid fa-gavel"></i> ' +
|
||||||
'@T("Plugins.Misc.AuctionPlugin.Finished")' +
|
resultDate.toLocaleString() +
|
||||||
'</p><span>' +
|
'</p><span>' +
|
||||||
"No.: " + productToAuctionDto.sortIndex +
|
"No.: " + productToAuctionDto.sortIndex +
|
||||||
'</span></div>');
|
'</span></div>');
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
console.log("isActive: " + isActive);
|
|
||||||
productItem.prepend('<div id="' +
|
|
||||||
publicInfoOverlayId +
|
|
||||||
'" class="bg-primary p-1 text-white text-center" style="position: absolute; width: calc(100% - 1rem); height: 50px; z-index: 1;"><p class="m-0"><i class="fa-solid fa-gavel"></i> ' +
|
|
||||||
resultDate.toLocaleString([], options) +
|
|
||||||
'</p><span>' +
|
|
||||||
"No.: " + productToAuctionDto.sortIndex +
|
|
||||||
'</span></div>');
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
console.error("Product item not found with productId:", productId);
|
console.error("Product item not found with productId:", productId);
|
||||||
|
|
|
||||||
|
|
@ -58,21 +58,21 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div id="publicProductBidBox" class="p-3 @bgClass text-white">
|
<div id="publicProductBidBox" class="p-3 @bgClass text-white">
|
||||||
<strong>#@(Model.AuctionDto.ProductToAuctionDtos.FirstOrDefault().SortIndex)</strong>
|
<p>#@Model.AuctionDto.ProductToAuctionDtos.FirstOrDefault().SortIndex</p>
|
||||||
<h4 id="bidBoxTitle">@title</h4>
|
<h4 id="bidBoxTitle">@title</h4>
|
||||||
<div class="d-flex justify-content-between">
|
<div class="d-flex justify-content-between">
|
||||||
<div class="m-auto">
|
<div>
|
||||||
<strong>Base Price:</strong>
|
<strong>Base Price:</strong>
|
||||||
<span class="value">
|
<span class="value">
|
||||||
@($"{Model.BasePrice:c}")
|
@($"{Model.BasePrice:c}")
|
||||||
@* @(decimal?.Round(Model.BasePrice, 2, MidpointRounding.AwayFromZero)) *@
|
@* @(decimal?.Round(Model.BasePrice, 2, MidpointRounding.AwayFromZero)) *@
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="m-auto">
|
<div>
|
||||||
<strong>Bid Step:</strong>
|
<strong>Bid Step:</strong>
|
||||||
<span id="licitStepText" class="value">@($"{Model.LicitStep:c}")</span>
|
<span id="licitStepText" class="value">@($"{Model.LicitStep:c}")</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="m-auto">
|
<div>
|
||||||
<button id="signalRBidButton" class="btn btn-success" style="text-transform: uppercase;" type="button" @(!bidButtonActive ? "disabled" : string.Empty)>
|
<button id="signalRBidButton" class="btn btn-success" style="text-transform: uppercase;" type="button" @(!bidButtonActive ? "disabled" : string.Empty)>
|
||||||
@T("Plugins.Misc.AuctionPlugin.BidButtonPrefix") @($"{Model.NextBidPrice:c}")
|
@T("Plugins.Misc.AuctionPlugin.BidButtonPrefix") @($"{Model.NextBidPrice:c}")
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue