Compare commits
No commits in common. "b76e7ec569ec28c2da19d19e23e8f36cd3c1004c" and "3ae768d57122e4fbb37bb29c586b1c10d505d290" have entirely different histories.
b76e7ec569
...
3ae768d571
|
|
@ -83,7 +83,7 @@ public class AuctionViewComponent : NopViewComponent
|
|||
return Content(string.Empty);
|
||||
}
|
||||
|
||||
var productId = ((ProductDetailsModel)additionalData).Id;
|
||||
var productId = ((ProductOverviewModel)additionalData).Id;
|
||||
|
||||
|
||||
//model.ProductId = productId;
|
||||
|
|
|
|||
|
|
@ -47,33 +47,21 @@
|
|||
if (widgetPriceElements && widgetPriceElements.length > 0) {
|
||||
widgetPriceElements[0].textContent = HUFFormatter.format(productToAuctionDto.currentPrice); // Update the price
|
||||
}
|
||||
|
||||
let myDate = auctionDto.startDateUtc;
|
||||
console.log("dates: " + myDate);
|
||||
let fixedDate = new Date(myDate + 'Z');
|
||||
console.log("dates: " + myDate + ", " + fixedDate);
|
||||
let resultDate = new Date(fixedDate);
|
||||
console.log("dates: " + myDate + ", " + fixedDate + ", " + resultDate);
|
||||
|
||||
// Add a new div as the first child
|
||||
if (isActive) {
|
||||
console.log("isActive: " + isActive);
|
||||
productItem.prepend('<div id="' +
|
||||
publicInfoOverlayId +
|
||||
'" class="bg-success 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"> ' +
|
||||
'" class="bg-success p-1 text-white fs-6 text-center" style="position: absolute; width: calc(100% - 1rem); height: 40px; z-index: 1;"><i class="fa-solid fa-gavel"> ' +
|
||||
'LIVE RIGTH NOW' +
|
||||
'</i></p><span>' +
|
||||
productToAuctionDto.sortIndex +
|
||||
'</span></div>');
|
||||
'</i></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"> ' +
|
||||
resultDate.toLocaleString() +
|
||||
'</i></p><span>' +
|
||||
"No.: " + productToAuctionDto.sortIndex +
|
||||
'</span></div>');
|
||||
'" class="bg-primary p-1 text-white fs-6 text-center" style="position: absolute; width: calc(100% - 1rem); height: 40px; z-index: 1;"><i class="fa-solid fa-gavel"> ' +
|
||||
auctionDto.startDateUtc +
|
||||
'</i></div>');
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue