32/12/2023
This commit is contained in:
735
assets/css/style.css
Normal file
735
assets/css/style.css
Normal file
@@ -0,0 +1,735 @@
|
|||||||
|
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");
|
||||||
|
::-webkit-scrollbar-track {
|
||||||
|
background-color: #c5c5c5;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
width: 8px;
|
||||||
|
border-radius: 30px;
|
||||||
|
background-color: #c5c5c5;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
background: #5d5d5d;
|
||||||
|
border-radius: 30px;
|
||||||
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, color-stop(0.7, #5d5d5d), color-stop(0.5, transparent), to(transparent));
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
font-family: "Inter", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
color: #000;
|
||||||
|
font-family: "Inter", sans-serif;
|
||||||
|
margin: 0 auto;
|
||||||
|
background: #fff;
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
font-size: 100%;
|
||||||
|
font-family: "Inter", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: none !important;
|
||||||
|
color: var(--text-black);
|
||||||
|
}
|
||||||
|
|
||||||
|
.clearfix {
|
||||||
|
content: "";
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul,
|
||||||
|
li {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ul,
|
||||||
|
.ol {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.d-flex {
|
||||||
|
display: flex !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.d-block {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-wrap {
|
||||||
|
flex-wrap: wrap !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-center {
|
||||||
|
text-align: center !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.align-items {
|
||||||
|
align-items: center !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.space-between {
|
||||||
|
justify-content: space-between !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.space-center {
|
||||||
|
justify-content: center !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.d-block {
|
||||||
|
display: block !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-direction {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line-clamp-1 {
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 1;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line-clamp-2 {
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line-clamp-3 {
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 3;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line-clamp-4 {
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 4;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line-clamp-5 {
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 5;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
width: 1220px;
|
||||||
|
padding: 0 10px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
background: #fff;
|
||||||
|
box-shadow: 3px 0px 11.4px 0px rgba(0, 0, 0, 0.25);
|
||||||
|
}
|
||||||
|
.header .logo {
|
||||||
|
padding: 8px 0;
|
||||||
|
}
|
||||||
|
.header .box-user {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.header .box-user .txt {
|
||||||
|
font-size: 16px;
|
||||||
|
color: #555;
|
||||||
|
}
|
||||||
|
.header .box-user .fa-user-circle-o {
|
||||||
|
color: #555;
|
||||||
|
font-size: 23px;
|
||||||
|
margin-left: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.homepage .ground-list-product {
|
||||||
|
margin: 30px 0;
|
||||||
|
}
|
||||||
|
.homepage .box-list-product {
|
||||||
|
margin-bottom: 40px;
|
||||||
|
}
|
||||||
|
.homepage .box-list-product .title {
|
||||||
|
font-size: 36px;
|
||||||
|
font-weight: 700;
|
||||||
|
text-transform: uppercase;
|
||||||
|
background: var(--Linear, linear-gradient(0deg, #8b0009 0%, #f80009 100%));
|
||||||
|
background-clip: text;
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
text-align: center;
|
||||||
|
padding-bottom: 26px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.homepage .box-list-product .title::before {
|
||||||
|
position: absolute;
|
||||||
|
content: "";
|
||||||
|
width: 173px;
|
||||||
|
height: 1.5px;
|
||||||
|
background: linear-gradient(0deg, #8b0009 0%, #f80009 100%);
|
||||||
|
left: 50%;
|
||||||
|
bottom: 23px;
|
||||||
|
transform: translate(-50%, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-questions {
|
||||||
|
margin-bottom: 40px;
|
||||||
|
}
|
||||||
|
.box-questions .content-questions {
|
||||||
|
border-radius: 12px;
|
||||||
|
box-shadow: 0px 1px 8px 0px rgba(0, 0, 0, 0.25);
|
||||||
|
}
|
||||||
|
.box-questions .title {
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #1f8cff;
|
||||||
|
text-align: center;
|
||||||
|
text-transform: uppercase;
|
||||||
|
padding: 13px 0;
|
||||||
|
}
|
||||||
|
.box-questions .content {
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
.box-questions [data-toggle=collapse].collapsed .fa:before {
|
||||||
|
content: "\f105";
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
.box-questions [data-toggle=collapse] .fa:before {
|
||||||
|
content: "\f107";
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
.box-questions .card {
|
||||||
|
margin-bottom: 12px;
|
||||||
|
border-radius: 5px;
|
||||||
|
border: 1px solid #b8b8b8;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
.box-questions .card-header {
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 5px;
|
||||||
|
border-bottom: 0;
|
||||||
|
padding: 10px 10px 5px 10px;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #3a3a3a;
|
||||||
|
}
|
||||||
|
.box-questions .card-body {
|
||||||
|
padding: 0 10px 10px 10px;
|
||||||
|
}
|
||||||
|
.box-questions .card-link.collapsed .card-header {
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.product-item {
|
||||||
|
margin-right: 12px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
width: calc(20% - 12px);
|
||||||
|
}
|
||||||
|
.product-item .product-image {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 230px;
|
||||||
|
border: 1px solid #eaeaea;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.product-item .product-image img {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
display: block;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
.product-item .product-name {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 600;
|
||||||
|
height: 45px;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.product-item .product-cost {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #343434;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.product-item .starting-price {
|
||||||
|
display: block;
|
||||||
|
color: #e70000;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 700;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.product-item .deal-time-holder {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.product-item .product-time-holder {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.product-item .product-time-holder .item-time {
|
||||||
|
margin-left: 10px;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
|
text-align: center;
|
||||||
|
flex-direction: column;
|
||||||
|
border: 0.559px solid var(--Linear, #ff3d00);
|
||||||
|
border-radius: 2.238px;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
.product-item .product-time-holder .item-time b {
|
||||||
|
width: 25px;
|
||||||
|
height: 23px;
|
||||||
|
line-height: 23px;
|
||||||
|
text-align: center;
|
||||||
|
color: #fff;
|
||||||
|
font-weight: 700;
|
||||||
|
position: relative;
|
||||||
|
font-size: 14px;
|
||||||
|
background: var(--Linear, linear-gradient(90deg, #ff3d00 3.91%, #ffa800 100%));
|
||||||
|
background-clip: text;
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
}
|
||||||
|
.product-item .product-time-holder .item-time b::after {
|
||||||
|
content: ":";
|
||||||
|
position: absolute;
|
||||||
|
right: -8px;
|
||||||
|
background: var(--Linear, linear-gradient(90deg, #ff3d00 3.91%, #ffa800 100%));
|
||||||
|
background-clip: text;
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
}
|
||||||
|
.product-item .product-time-holder .item-time:last-child b {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.product-item .product-time-holder .item-time:last-child b::after {
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
.product-item .btn-auction {
|
||||||
|
display: block;
|
||||||
|
border-radius: 24px;
|
||||||
|
border: 1px solid #3194fc;
|
||||||
|
height: 40px;
|
||||||
|
line-height: 38px;
|
||||||
|
text-align: center;
|
||||||
|
color: #3194fc;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
.product-item .btn-auction:hover {
|
||||||
|
background: #3194fc;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.product-item .deal-time-holder.end .txt {
|
||||||
|
border-radius: 25px;
|
||||||
|
background: #ededed;
|
||||||
|
height: 24px;
|
||||||
|
padding: 0 15px;
|
||||||
|
line-height: 24px;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
background: #f3f3f3;
|
||||||
|
}
|
||||||
|
.footer .main-content-footer {
|
||||||
|
padding: 40px 0;
|
||||||
|
}
|
||||||
|
.footer .footer-left {
|
||||||
|
width: 53%;
|
||||||
|
}
|
||||||
|
.footer .footer-left h3,
|
||||||
|
.footer .footer-left p {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 400;
|
||||||
|
margin-bottom: 2px;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
.footer .footer-right a {
|
||||||
|
width: 280px;
|
||||||
|
border-radius: 25px;
|
||||||
|
position: relative;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.footer .footer-right .txt {
|
||||||
|
height: 50px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 10px 50px 10px 20px;
|
||||||
|
color: #1c4a10;
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 600;
|
||||||
|
line-height: 17px;
|
||||||
|
position: relative;
|
||||||
|
background: #f2ffea;
|
||||||
|
background-clip: padding-box;
|
||||||
|
-webkit-background-clip: padding-box;
|
||||||
|
border: 2px solid transparent;
|
||||||
|
margin: auto;
|
||||||
|
border-radius: 25px;
|
||||||
|
border: 1px solid #03ae00;
|
||||||
|
}
|
||||||
|
.footer .footer-right .txt::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
z-index: -1;
|
||||||
|
margin: -3px;
|
||||||
|
border-radius: inherit;
|
||||||
|
background-image: linear-gradient(to right, #03ae00, #f2ffea);
|
||||||
|
}
|
||||||
|
.footer .footer-right img {
|
||||||
|
position: absolute;
|
||||||
|
right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb {
|
||||||
|
background: #fff;
|
||||||
|
padding: 0;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb ol {
|
||||||
|
width: 100%;
|
||||||
|
float: left;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb ol li {
|
||||||
|
float: left;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb ol li a span {
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 45px;
|
||||||
|
float: left;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb ol li a span:hover {
|
||||||
|
color: var(--color-hover);
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb ol li a:last-child {
|
||||||
|
color: #222;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb ol li h1 {
|
||||||
|
font-size: 15px;
|
||||||
|
line-height: 40px;
|
||||||
|
float: left;
|
||||||
|
font-weight: 400;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb ol li i {
|
||||||
|
margin-left: 10px;
|
||||||
|
margin-right: 10px;
|
||||||
|
float: left;
|
||||||
|
line-height: 45px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb ol li:last-child i {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb i {
|
||||||
|
color: #333;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.background-white {
|
||||||
|
background: #fff;
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 12px;
|
||||||
|
box-shadow: 0px 0px 16px 0px rgba(141, 141, 141, 0.25);
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-product-detail .box-product-info {
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
.page-product-detail .product-image {
|
||||||
|
width: 50%;
|
||||||
|
margin-right: 15px;
|
||||||
|
height: 400px;
|
||||||
|
position: relative;
|
||||||
|
border: 1px solid #eaeaea;
|
||||||
|
}
|
||||||
|
.page-product-detail .product-image img {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
display: block;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right {
|
||||||
|
width: calc(50% - 15px);
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .name {
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .box-price-normal {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .name-price {
|
||||||
|
margin-right: 5px;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .current-highest-price {
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .current-highest-price b {
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #e70000;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .qt-view {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .qt-view b {
|
||||||
|
color: #0061d3;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .box-time {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .box-time span {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .box-time .item-time {
|
||||||
|
position: relative;
|
||||||
|
margin-left: 20px;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
|
text-align: center;
|
||||||
|
flex-direction: column;
|
||||||
|
border: 1.5px solid transparent;
|
||||||
|
background: #fff;
|
||||||
|
background-clip: padding-box;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .box-time .item-time::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: -1;
|
||||||
|
margin: -1.5px;
|
||||||
|
border-radius: inherit;
|
||||||
|
background: linear-gradient(to right, #ff3d00, #ffa800);
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .box-time .item-time b {
|
||||||
|
width: 38px;
|
||||||
|
height: 35px;
|
||||||
|
line-height: 35px;
|
||||||
|
text-align: center;
|
||||||
|
color: #000;
|
||||||
|
font-weight: 700;
|
||||||
|
position: relative;
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .box-time .item-time b::after {
|
||||||
|
content: ":";
|
||||||
|
position: absolute;
|
||||||
|
right: -15px;
|
||||||
|
font-size: 24px;
|
||||||
|
background: var(--Linear, linear-gradient(90deg, #ff3d00 3.91%, #ffa800 100%));
|
||||||
|
background-clip: text;
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .box-time .item-time:last-child b {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .box-time .item-time:last-child b::after {
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .box-input-price {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .box-input-price span {
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .box-input-price .input-price {
|
||||||
|
height: 50px;
|
||||||
|
width: 135px;
|
||||||
|
border: 1px solid #b1b1b1;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 20px;
|
||||||
|
color: #e70000;
|
||||||
|
text-align: center;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .box-input-price a {
|
||||||
|
display: block;
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
margin-left: 6px;
|
||||||
|
line-height: 50px;
|
||||||
|
text-align: center;
|
||||||
|
border: 1px solid #b1b1b1;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .box-input-price a i {
|
||||||
|
color: #777474;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .box-input-price a.plus-price {
|
||||||
|
position: relative;
|
||||||
|
border: 1.5px solid transparent;
|
||||||
|
background: #fff;
|
||||||
|
background-clip: padding-box;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .box-input-price a.plus-price::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: -1;
|
||||||
|
margin: -1.5px;
|
||||||
|
border-radius: inherit;
|
||||||
|
background: linear-gradient(to right, #ff3d00, #ffa800);
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .box-input-price a.plus-price i {
|
||||||
|
color: #ff4d00;
|
||||||
|
}
|
||||||
|
.page-product-detail .info-right .btn-add-auction {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 65px;
|
||||||
|
background: var(--Linear, linear-gradient(0deg, #8b0009 0%, #f80009 100%));
|
||||||
|
border-radius: 30px;
|
||||||
|
margin: 20px 0;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 65px;
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.page-product-detail .box-spec-deposit {
|
||||||
|
margin-bottom: 40px;
|
||||||
|
}
|
||||||
|
.page-product-detail .box-specification {
|
||||||
|
width: 50%;
|
||||||
|
margin-right: 15px;
|
||||||
|
}
|
||||||
|
.page-product-detail .box-auction-deposit {
|
||||||
|
width: calc(50% - 15px);
|
||||||
|
}
|
||||||
|
.page-product-detail .box-participant-list .title {
|
||||||
|
font-size: 20px;
|
||||||
|
color: #e70000;
|
||||||
|
font-weight: 700;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
border-bottom: 1px solid #7a7a7a;
|
||||||
|
}
|
||||||
|
.page-product-detail .box-participant-list td {
|
||||||
|
border-bottom: 1px solid #e6e6e6;
|
||||||
|
padding: 10px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
.page-product-detail .box-participant-list tr:first-child td img {
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
.page-product-detail .box-participant-list tr:first-child td span {
|
||||||
|
color: #2546bb;
|
||||||
|
}
|
||||||
|
.page-product-detail .box-participant-list .content {
|
||||||
|
max-height: 180px;
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
|
.page-product-detail .box-specification .title {
|
||||||
|
font-size: 20px;
|
||||||
|
color: #e70000;
|
||||||
|
font-weight: 700;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
border-bottom: 1px solid #dadada;
|
||||||
|
}
|
||||||
|
.page-product-detail .box-specification .content {
|
||||||
|
position: relative;
|
||||||
|
height: 287px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.page-product-detail .box-specification .content::after {
|
||||||
|
position: absolute;
|
||||||
|
content: "";
|
||||||
|
background: linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
|
||||||
|
width: 100%;
|
||||||
|
height: 65px;
|
||||||
|
z-index: 1;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
.page-product-detail .box-specification .more {
|
||||||
|
display: block;
|
||||||
|
width: 110px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
margin: 0 auto;
|
||||||
|
text-align: center;
|
||||||
|
border: 1px solid #3e5ed0;
|
||||||
|
border-radius: 30px;
|
||||||
|
color: #3e5ed0;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
.page-product-detail .box-auction-deposit .title {
|
||||||
|
font-size: 20px;
|
||||||
|
color: #e70000;
|
||||||
|
font-weight: 700;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
border-bottom: 1px solid #dadada;
|
||||||
|
}
|
||||||
|
.page-product-detail .box-auction-deposit .content p {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
line-height: 23px;
|
||||||
|
}
|
||||||
|
.page-product-detail .box-auction-deposit .content img {
|
||||||
|
height: 120px;
|
||||||
|
margin-right: 10px;
|
||||||
|
}/*# sourceMappingURL=style.css.map */
|
||||||
1
assets/css/style.css.map
Normal file
1
assets/css/style.css.map
Normal file
File diff suppressed because one or more lines are too long
750
assets/css/style.scss
Normal file
750
assets/css/style.scss
Normal file
@@ -0,0 +1,750 @@
|
|||||||
|
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");
|
||||||
|
::-webkit-scrollbar-track {
|
||||||
|
background-color: #c5c5c5;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
width: 8px;
|
||||||
|
border-radius: 30px;
|
||||||
|
background-color: #c5c5c5;
|
||||||
|
}
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
background: #5d5d5d;
|
||||||
|
border-radius: 30px;
|
||||||
|
background-image: -webkit-gradient(
|
||||||
|
linear,
|
||||||
|
0 0,
|
||||||
|
0 100%,
|
||||||
|
color-stop(0.7, #5d5d5d),
|
||||||
|
color-stop(0.5, transparent),
|
||||||
|
to(transparent)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
font-family: "Inter", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
color: #000;
|
||||||
|
font-family: "Inter", sans-serif;
|
||||||
|
margin: 0 auto;
|
||||||
|
background: #fff;
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
font-size: 100%;
|
||||||
|
font-family: "Inter", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: none !important;
|
||||||
|
color: var(--text-black);
|
||||||
|
}
|
||||||
|
|
||||||
|
.clearfix {
|
||||||
|
content: "";
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul,
|
||||||
|
li {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ul,
|
||||||
|
.ol {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
.d-flex {
|
||||||
|
display: flex !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.d-block {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-wrap {
|
||||||
|
flex-wrap: wrap !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-center {
|
||||||
|
text-align: center !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.align-items {
|
||||||
|
align-items: center !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.space-between {
|
||||||
|
justify-content: space-between !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.space-center {
|
||||||
|
justify-content: center !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.d-block {
|
||||||
|
display: block !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-direction {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
.line-clamp-1 {
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 1;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line-clamp-2 {
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line-clamp-3 {
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 3;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.line-clamp-4 {
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 4;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.line-clamp-5 {
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 5;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
width: 1220px;
|
||||||
|
padding: 0 10px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
.header {
|
||||||
|
background: #fff;
|
||||||
|
box-shadow: 3px 0px 11.4px 0px rgba(0, 0, 0, 0.25);
|
||||||
|
.logo {
|
||||||
|
padding: 8px 0;
|
||||||
|
}
|
||||||
|
.box-user {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
.txt {
|
||||||
|
font-size: 16px;
|
||||||
|
color: #555;
|
||||||
|
}
|
||||||
|
.fa-user-circle-o {
|
||||||
|
color: #555;
|
||||||
|
font-size: 23px;
|
||||||
|
margin-left: 7px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.homepage {
|
||||||
|
.ground-list-product {
|
||||||
|
margin: 30px 0;
|
||||||
|
}
|
||||||
|
.box-list-product {
|
||||||
|
margin-bottom: 40px;
|
||||||
|
.title {
|
||||||
|
font-size: 36px;
|
||||||
|
font-weight: 700;
|
||||||
|
text-transform: uppercase;
|
||||||
|
background: var(--Linear, linear-gradient(0deg, #8b0009 0%, #f80009 100%));
|
||||||
|
background-clip: text;
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
text-align: center;
|
||||||
|
padding-bottom: 26px;
|
||||||
|
position: relative;
|
||||||
|
&::before {
|
||||||
|
position: absolute;
|
||||||
|
content: "";
|
||||||
|
width: 173px;
|
||||||
|
height: 1.5px;
|
||||||
|
background: linear-gradient(0deg, #8b0009 0%, #f80009 100%);
|
||||||
|
left: 50%;
|
||||||
|
bottom: 23px;
|
||||||
|
transform: translate(-50%, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.box-questions {
|
||||||
|
margin-bottom: 40px;
|
||||||
|
.content-questions {
|
||||||
|
border-radius: 12px;
|
||||||
|
box-shadow: 0px 1px 8px 0px rgba(0, 0, 0, 0.25);
|
||||||
|
}
|
||||||
|
.title {
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #1f8cff;
|
||||||
|
text-align: center;
|
||||||
|
text-transform: uppercase;
|
||||||
|
padding: 13px 0;
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
[data-toggle="collapse"].collapsed .fa:before {
|
||||||
|
content: "\f105";
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
[data-toggle="collapse"] .fa:before {
|
||||||
|
content: "\f107";
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
.card {
|
||||||
|
margin-bottom: 12px;
|
||||||
|
border-radius: 5px;
|
||||||
|
border: 1px solid #b8b8b8;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
.card-header {
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 5px;
|
||||||
|
border-bottom: 0;
|
||||||
|
padding: 10px 10px 5px 10px;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #3a3a3a;
|
||||||
|
}
|
||||||
|
.card-body {
|
||||||
|
padding: 0 10px 10px 10px;
|
||||||
|
}
|
||||||
|
.card-link.collapsed {
|
||||||
|
.card-header {
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.product-item {
|
||||||
|
margin-right: 12px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
width: calc(100% / 5 - 12px);
|
||||||
|
.product-image {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 230px;
|
||||||
|
border: 1px solid #eaeaea;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
position: relative;
|
||||||
|
img {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
display: block;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.product-name {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 600;
|
||||||
|
height: 45px;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.product-cost {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #343434;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.starting-price {
|
||||||
|
display: block;
|
||||||
|
color: #e70000;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 700;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.deal-time-holder {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.product-time-holder {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
.item-time {
|
||||||
|
margin-left: 10px;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
|
text-align: center;
|
||||||
|
flex-direction: column;
|
||||||
|
border: 0.559px solid var(--Linear, #ff3d00);
|
||||||
|
border-radius: 2.238px;
|
||||||
|
background: #fff;
|
||||||
|
b {
|
||||||
|
width: 25px;
|
||||||
|
height: 23px;
|
||||||
|
line-height: 23px;
|
||||||
|
text-align: center;
|
||||||
|
color: #fff;
|
||||||
|
font-weight: 700;
|
||||||
|
position: relative;
|
||||||
|
font-size: 14px;
|
||||||
|
background: var(--Linear, linear-gradient(90deg, #ff3d00 3.91%, #ffa800 100%));
|
||||||
|
background-clip: text;
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
&::after {
|
||||||
|
content: ":";
|
||||||
|
position: absolute;
|
||||||
|
right: -8px;
|
||||||
|
background: var(--Linear, linear-gradient(90deg, #ff3d00 3.91%, #ffa800 100%));
|
||||||
|
background-clip: text;
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:last-child b {
|
||||||
|
margin: 0;
|
||||||
|
&::after {
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.btn-auction {
|
||||||
|
display: block;
|
||||||
|
border-radius: 24px;
|
||||||
|
border: 1px solid #3194fc;
|
||||||
|
height: 40px;
|
||||||
|
line-height: 38px;
|
||||||
|
text-align: center;
|
||||||
|
color: #3194fc;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 700;
|
||||||
|
&:hover {
|
||||||
|
background: #3194fc;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.deal-time-holder.end .txt {
|
||||||
|
border-radius: 25px;
|
||||||
|
background: #ededed;
|
||||||
|
height: 24px;
|
||||||
|
padding: 0 15px;
|
||||||
|
line-height: 24px;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
background: #f3f3f3;
|
||||||
|
.main-content-footer {
|
||||||
|
padding: 40px 0;
|
||||||
|
}
|
||||||
|
.footer-left {
|
||||||
|
width: 53%;
|
||||||
|
h3,
|
||||||
|
p {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 400;
|
||||||
|
margin-bottom: 2px;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.footer-right {
|
||||||
|
a {
|
||||||
|
width: 280px;
|
||||||
|
border-radius: 25px;
|
||||||
|
position: relative;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.txt {
|
||||||
|
height: 50px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 10px 50px 10px 20px;
|
||||||
|
color: #1c4a10;
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 600;
|
||||||
|
line-height: 17px;
|
||||||
|
position: relative;
|
||||||
|
background: #f2ffea;
|
||||||
|
background-clip: padding-box;
|
||||||
|
-webkit-background-clip: padding-box;
|
||||||
|
border: 2px solid transparent;
|
||||||
|
margin: auto;
|
||||||
|
border-radius: 25px;
|
||||||
|
border: 1px solid #03ae00;
|
||||||
|
&::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
z-index: -1;
|
||||||
|
margin: -3px;
|
||||||
|
border-radius: inherit;
|
||||||
|
background-image: linear-gradient(to right, #03ae00, #f2ffea);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
img {
|
||||||
|
position: absolute;
|
||||||
|
right: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// breadcrumb
|
||||||
|
.breadcrumb {
|
||||||
|
background: #fff;
|
||||||
|
padding: 0;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
.breadcrumb ol {
|
||||||
|
width: 100%;
|
||||||
|
float: left;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb ol li {
|
||||||
|
float: left;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb ol li a span {
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 45px;
|
||||||
|
float: left;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb ol li a span:hover {
|
||||||
|
color: var(--color-hover);
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb ol li a:last-child {
|
||||||
|
color: #222;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb ol li h1 {
|
||||||
|
font-size: 15px;
|
||||||
|
line-height: 40px;
|
||||||
|
float: left;
|
||||||
|
font-weight: 400;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb ol li i {
|
||||||
|
margin-left: 10px;
|
||||||
|
margin-right: 10px;
|
||||||
|
float: left;
|
||||||
|
line-height: 45px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb ol li:last-child i {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb i {
|
||||||
|
color: #333;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.background-white {
|
||||||
|
background: #fff;
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 12px;
|
||||||
|
box-shadow: 0px 0px 16px 0px rgba(141, 141, 141, 0.25);
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-product-detail {
|
||||||
|
.box-product-info {
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
.product-image {
|
||||||
|
width: 50%;
|
||||||
|
margin-right: 15px;
|
||||||
|
height: 400px;
|
||||||
|
position: relative;
|
||||||
|
border: 1px solid #eaeaea;
|
||||||
|
img {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
display: block;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.info-right {
|
||||||
|
width: calc(50% - 15px);
|
||||||
|
.name {
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
.box-price-normal {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
.name-price {
|
||||||
|
margin-right: 5px;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
.current-highest-price {
|
||||||
|
margin: 10px 0;
|
||||||
|
b {
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #e70000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.qt-view {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
font-size: 16px;
|
||||||
|
b {
|
||||||
|
color: #0061d3;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.box-time {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
span {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
.item-time {
|
||||||
|
position: relative;
|
||||||
|
margin-left: 20px;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
|
text-align: center;
|
||||||
|
flex-direction: column;
|
||||||
|
border: 1.5px solid transparent;
|
||||||
|
background: #fff;
|
||||||
|
background-clip: padding-box;
|
||||||
|
border-radius: 5px;
|
||||||
|
&::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: -1;
|
||||||
|
margin: -1.5px;
|
||||||
|
border-radius: inherit;
|
||||||
|
background: linear-gradient(to right, #ff3d00, #ffa800);
|
||||||
|
}
|
||||||
|
b {
|
||||||
|
width: 38px;
|
||||||
|
height: 35px;
|
||||||
|
line-height: 35px;
|
||||||
|
text-align: center;
|
||||||
|
color: #000;
|
||||||
|
font-weight: 700;
|
||||||
|
position: relative;
|
||||||
|
font-size: 20px;
|
||||||
|
&::after {
|
||||||
|
content: ":";
|
||||||
|
position: absolute;
|
||||||
|
right: -15px;
|
||||||
|
font-size: 24px;
|
||||||
|
background: var(--Linear, linear-gradient(90deg, #ff3d00 3.91%, #ffa800 100%));
|
||||||
|
background-clip: text;
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:last-child b {
|
||||||
|
margin: 0;
|
||||||
|
&::after {
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.box-input-price {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
span {
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
.input-price {
|
||||||
|
height: 50px;
|
||||||
|
width: 135px;
|
||||||
|
border: 1px solid #b1b1b1;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 20px;
|
||||||
|
color: #e70000;
|
||||||
|
text-align: center;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
display: block;
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
margin-left: 6px;
|
||||||
|
line-height: 50px;
|
||||||
|
text-align: center;
|
||||||
|
border: 1px solid #b1b1b1;
|
||||||
|
border-radius: 4px;
|
||||||
|
i {
|
||||||
|
color: #777474;
|
||||||
|
}
|
||||||
|
&.plus-price {
|
||||||
|
position: relative;
|
||||||
|
border: 1.5px solid transparent;
|
||||||
|
background: #fff;
|
||||||
|
background-clip: padding-box;
|
||||||
|
border-radius: 5px;
|
||||||
|
&::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: -1;
|
||||||
|
margin: -1.5px;
|
||||||
|
border-radius: inherit;
|
||||||
|
background: linear-gradient(to right, #ff3d00, #ffa800);
|
||||||
|
}
|
||||||
|
i {
|
||||||
|
color: #ff4d00;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.btn-add-auction {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 65px;
|
||||||
|
background: var(--Linear, linear-gradient(0deg, #8b0009 0%, #f80009 100%));
|
||||||
|
border-radius: 30px;
|
||||||
|
margin: 20px 0;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 65px;
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.box-spec-deposit {
|
||||||
|
margin-bottom: 40px;
|
||||||
|
}
|
||||||
|
.box-specification {
|
||||||
|
width: 50%;
|
||||||
|
margin-right: 15px;
|
||||||
|
}
|
||||||
|
.box-auction-deposit {
|
||||||
|
width: calc(50% - 15px);
|
||||||
|
}
|
||||||
|
.box-participant-list {
|
||||||
|
.title {
|
||||||
|
font-size: 20px;
|
||||||
|
color: #e70000;
|
||||||
|
font-weight: 700;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
border-bottom: 1px solid #7a7a7a;
|
||||||
|
}
|
||||||
|
td {
|
||||||
|
border-bottom: 1px solid #e6e6e6;
|
||||||
|
padding: 10px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
tr:first-child {
|
||||||
|
td {
|
||||||
|
img {
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
span {
|
||||||
|
color: #2546bb;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
max-height: 180px;
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.box-specification {
|
||||||
|
.title {
|
||||||
|
font-size: 20px;
|
||||||
|
color: #e70000;
|
||||||
|
font-weight: 700;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
border-bottom: 1px solid #dadada;
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
position: relative;
|
||||||
|
height: 287px;
|
||||||
|
overflow: hidden;
|
||||||
|
&::after {
|
||||||
|
position: absolute;
|
||||||
|
content: "";
|
||||||
|
background: linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
|
||||||
|
width: 100%;
|
||||||
|
height: 65px;
|
||||||
|
z-index: 1;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.more {
|
||||||
|
display: block;
|
||||||
|
width: 110px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
margin: 0 auto;
|
||||||
|
text-align: center;
|
||||||
|
border: 1px solid #3e5ed0;
|
||||||
|
border-radius: 30px;
|
||||||
|
color: #3e5ed0;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.box-auction-deposit {
|
||||||
|
.title {
|
||||||
|
font-size: 20px;
|
||||||
|
color: #e70000;
|
||||||
|
font-weight: 700;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
border-bottom: 1px solid #dadada;
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
p {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
line-height: 23px;
|
||||||
|
}
|
||||||
|
img {
|
||||||
|
height: 120px;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
assets/images/banner.png
Normal file
BIN
assets/images/banner.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 MiB |
BIN
assets/images/icon-phone.png
Normal file
BIN
assets/images/icon-phone.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.7 KiB |
BIN
assets/images/icon_paint.png
Normal file
BIN
assets/images/icon_paint.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
BIN
assets/images/logo.png
Normal file
BIN
assets/images/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
BIN
assets/images/product-1.png
Normal file
BIN
assets/images/product-1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 46 KiB |
BIN
assets/images/qr-code.png
Normal file
BIN
assets/images/qr-code.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 54 KiB |
104
dist/data.js
vendored
Normal file
104
dist/data.js
vendored
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
"use strict";
|
||||||
|
//---- dinh nghia
|
||||||
|
//-----
|
||||||
|
// du lieu danh sach san pham
|
||||||
|
const listproduct_mau = [
|
||||||
|
{
|
||||||
|
productId: 1,
|
||||||
|
product_name: "HHPC 3D i7 13700KF | 32G | RTX 2060 SUPER 8G | 256 bit | GDDR6",
|
||||||
|
image: "https://hoanghapccdn.com/media/product/250_3765_pc_anubius_pro_elite_360_v3_black_ha1.jpg",
|
||||||
|
price: 26390000,
|
||||||
|
starting_price: 2350000,
|
||||||
|
from_time: 1703213170286,
|
||||||
|
to_time: 1703955600000,
|
||||||
|
status: 'started',
|
||||||
|
specifications: '<table><tbody><tr><td style="text-align: center;"><strong>STT</strong></td><td style="text-align: center;"><strong>MÃ HÀNG</strong></td><td style="text-align: center;"><strong>TÊN HÀNG</strong></td><td style="text-align: center;"><strong>THỜI HẠN BẢO HÀNH</strong></td></tr><tr><td style="text-align: center;"><strong>1</strong></td><td style="text-align: center;"><strong>CPU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/cpu-intel-core-i7-13700kf">INTEL COREi7 13700KF up 5.4GHz | 16 CORE | 24 THREAD</a> </strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>2</strong></td><td style="text-align: center;"><strong>MAIN</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/mainboard-asrock-z690-steel-legend">ASROCK Z690 STEELLEGEND DDR4</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>3</strong></td><td style="text-align: center;"><strong>TẢN NHIỆT</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/cooler-master-masterliquid-360l-core-argb">COOLER MASTER MASTERLIQUIDML360L CORE ARGB</ahref=></strong></td><td style="text-align: center;"><strong>12 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>4</strong></td><td style="text-align: center;"><strong>RAM</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/ram-teamgroup-t-force-vulcan-z-16gb-red-3600">32GB DDR4 3600 MHz(2x16G)</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>5</strong></td><td style="text-align: center;"><strong>SSD</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/o-cung-ssd-lexar-nm620-512gb">LEXARNM620 512GB M.2 2280 PCIe 3.0x4 - RW 3500MB/s</a></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>6</strong></td><td style="text-align: center;"><span style="color: #000000;"><strong>VGA</strong></span></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vga-palit-geforce-rtx2060-super-dual-8gb-gddr6">PALIT GEFORCE RTX2060 SUPER DUAL 8GB GDDR6 256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>7</strong></td><td style="text-align: center;"><strong>PSU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/nguon-asus-tuf-gaming-750w">ASUS TUFGAMING 750W - 80 PLUS BRONZE</a></strong></td><td style="text-align: center;"><strong>72 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>8</strong></td><td style="text-align: center;"><strong>CASE</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vo-case-xigmatek-anubis-pro-4fx">XIGMATEK ANUBIS PRO 4FX - 4FAN</ahref=></strong></td><td style="text-align: center;"> </td></tr></tbody></table>',
|
||||||
|
}, {
|
||||||
|
productId: 2,
|
||||||
|
product_name: "HHPC 3D LUMION i7 13700KF | 32G | NVIDIA RTX 3070 8G",
|
||||||
|
image: "https://hoanghapccdn.com/media/product/250_3762_pc_anubius_pro_elite_360_v3_black_ha3.jpg",
|
||||||
|
price: 29890000,
|
||||||
|
starting_price: 2250000,
|
||||||
|
from_time: 1703213170286,
|
||||||
|
to_time: 1703869200000,
|
||||||
|
status: 'started',
|
||||||
|
specifications: '<table><tbody><tr><td style="text-align: center;"><strong>STT</strong></td><td style="text-align: center;"><strong>MÃ HÀNG</strong></td><td style="text-align: center;"><strong>TÊN HÀNG</strong></td><td style="text-align: center;"><strong>THỜI HẠN BẢO HÀNH</strong></td></tr><tr><td style="text-align: center;"><strong>1</strong></td><td style="text-align: center;"><strong>CPU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/cpu-intel-core-i7-13700kf">INTEL COREi7 13700KF up 5.4GHz | 16 CORE | 24 THREAD</a> </strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>2</strong></td><td style="text-align: center;"><strong>MAIN</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/mainboard-asrock-z690-steel-legend">ASROCK Z690 STEELLEGEND DDR4</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>3</strong></td><td style="text-align: center;"><strong>TẢN NHIỆT</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/cooler-master-masterliquid-360l-core-argb">COOLER MASTER MASTERLIQUIDML360L CORE ARGB</ahref=></strong></td><td style="text-align: center;"><strong>12 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>4</strong></td><td style="text-align: center;"><strong>RAM</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/ram-teamgroup-t-force-vulcan-z-16gb-red-3600">32GB DDR4 3600 MHz(2x16G)</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>5</strong></td><td style="text-align: center;"><strong>SSD</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/o-cung-ssd-lexar-nm620-512gb">LEXARNM620 512GB M.2 2280 PCIe 3.0x4 - RW 3500MB/s</a></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>6</strong></td><td style="text-align: center;"><span style="color: #000000;"><strong>VGA</strong></span></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vga-palit-geforce-rtx2060-super-dual-8gb-gddr6">PALIT GEFORCE RTX2060 SUPER DUAL 8GB GDDR6 256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>7</strong></td><td style="text-align: center;"><strong>PSU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/nguon-asus-tuf-gaming-750w">ASUS TUFGAMING 750W - 80 PLUS BRONZE</a></strong></td><td style="text-align: center;"><strong>72 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>8</strong></td><td style="text-align: center;"><strong>CASE</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vo-case-xigmatek-anubis-pro-4fx">XIGMATEK ANUBIS PRO 4FX - 4FAN</ahref=></strong></td><td style="text-align: center;"> </td></tr></tbody></table>',
|
||||||
|
}, {
|
||||||
|
productId: 3,
|
||||||
|
product_name: "HHPC 3D i7 13700KF | 32G | NVIDIA RTX 3060 12G",
|
||||||
|
image: "https://hoanghapccdn.com/media/product/250_3761_pc_anubius_pro_elite_360_v3_black_ha3.jpg",
|
||||||
|
price: 27390000,
|
||||||
|
starting_price: 2550000,
|
||||||
|
from_time: 1703350800000,
|
||||||
|
to_time: 1703955600000,
|
||||||
|
status: 'coming',
|
||||||
|
specifications: '<table><tbody><tr><td style="text-align: center;"><strong>STT</strong></td><td style="text-align: center;"><strong>MÃ HÀNG</strong></td><td style="text-align: center;"><strong>TÊN HÀNG</strong></td><td style="text-align: center;"><strong>THỜI HẠN BẢO HÀNH</strong></td></tr><tr><td style="text-align: center;"><strong>1</strong></td><td style="text-align: center;"><strong>CPU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/cpu-intel-core-i7-13700kf">INTEL COREi7 13700KF up 5.4GHz | 16 CORE | 24 THREAD</a> </strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>2</strong></td><td style="text-align: center;"><strong>MAIN</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/mainboard-asrock-z690-steel-legend">ASROCK Z690 STEELLEGEND DDR4</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>3</strong></td><td style="text-align: center;"><strong>TẢN NHIỆT</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/cooler-master-masterliquid-360l-core-argb">COOLER MASTER MASTERLIQUIDML360L CORE ARGB</ahref=></strong></td><td style="text-align: center;"><strong>12 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>4</strong></td><td style="text-align: center;"><strong>RAM</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/ram-teamgroup-t-force-vulcan-z-16gb-red-3600">32GB DDR4 3600 MHz(2x16G)</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>5</strong></td><td style="text-align: center;"><strong>SSD</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/o-cung-ssd-lexar-nm620-512gb">LEXARNM620 512GB M.2 2280 PCIe 3.0x4 - RW 3500MB/s</a></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>6</strong></td><td style="text-align: center;"><span style="color: #000000;"><strong>VGA</strong></span></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vga-palit-geforce-rtx2060-super-dual-8gb-gddr6">PALIT GEFORCE RTX2060 SUPER DUAL 8GB GDDR6 256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>7</strong></td><td style="text-align: center;"><strong>PSU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/nguon-asus-tuf-gaming-750w">ASUS TUFGAMING 750W - 80 PLUS BRONZE</a></strong></td><td style="text-align: center;"><strong>72 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>8</strong></td><td style="text-align: center;"><strong>CASE</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vo-case-xigmatek-anubis-pro-4fx">XIGMATEK ANUBIS PRO 4FX - 4FAN</ahref=></strong></td><td style="text-align: center;"> </td></tr></tbody></table>',
|
||||||
|
}, {
|
||||||
|
productId: 4,
|
||||||
|
product_name: "HHPC 3D LUMION i9 13900K | 64G DDR5 | NVIDIA RTX 4090 24GB",
|
||||||
|
image: "https://hoanghapccdn.com/media/product/250_3738_hhpc_case_gank_360_ha3.jpg",
|
||||||
|
price: 91390000,
|
||||||
|
starting_price: 81390000,
|
||||||
|
from_time: 1703213170286,
|
||||||
|
to_time: 1703955600000,
|
||||||
|
status: 'started',
|
||||||
|
specifications: '<table><tbody><tr><td style="text-align: center;"><strong>STT</strong></td><td style="text-align: center;"><strong>MÃ HÀNG</strong></td><td style="text-align: center;"><strong>TÊN HÀNG</strong></td><td style="text-align: center;"><strong>THỜI HẠN BẢO HÀNH</strong></td></tr><tr><td style="text-align: center;"><strong>1</strong></td><td style="text-align: center;"><strong>CPU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/cpu-intel-core-i7-13700kf">INTEL COREi7 13700KF up 5.4GHz | 16 CORE | 24 THREAD</a> </strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>2</strong></td><td style="text-align: center;"><strong>MAIN</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/mainboard-asrock-z690-steel-legend">ASROCK Z690 STEELLEGEND DDR4</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>3</strong></td><td style="text-align: center;"><strong>TẢN NHIỆT</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/cooler-master-masterliquid-360l-core-argb">COOLER MASTER MASTERLIQUIDML360L CORE ARGB</ahref=></strong></td><td style="text-align: center;"><strong>12 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>4</strong></td><td style="text-align: center;"><strong>RAM</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/ram-teamgroup-t-force-vulcan-z-16gb-red-3600">32GB DDR4 3600 MHz(2x16G)</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>5</strong></td><td style="text-align: center;"><strong>SSD</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/o-cung-ssd-lexar-nm620-512gb">LEXARNM620 512GB M.2 2280 PCIe 3.0x4 - RW 3500MB/s</a></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>6</strong></td><td style="text-align: center;"><span style="color: #000000;"><strong>VGA</strong></span></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vga-palit-geforce-rtx2060-super-dual-8gb-gddr6">PALIT GEFORCE RTX2060 SUPER DUAL 8GB GDDR6 256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>7</strong></td><td style="text-align: center;"><strong>PSU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/nguon-asus-tuf-gaming-750w">ASUS TUFGAMING 750W - 80 PLUS BRONZE</a></strong></td><td style="text-align: center;"><strong>72 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>8</strong></td><td style="text-align: center;"><strong>CASE</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vo-case-xigmatek-anubis-pro-4fx">XIGMATEK ANUBIS PRO 4FX - 4FAN</ahref=></strong></td><td style="text-align: center;"> </td></tr></tbody></table>',
|
||||||
|
}, {
|
||||||
|
productId: 5,
|
||||||
|
product_name: "HHPC BLACK RGB i9 12900K | 32G | NVIDIA RTX 3060 12G",
|
||||||
|
image: "https://hoanghapccdn.com/media/product/250_3668_pc_anubius_pro_elite_360_v3_rgb_ha3.jpg",
|
||||||
|
price: 27850000,
|
||||||
|
starting_price: 25850000,
|
||||||
|
from_time: 1703213170286,
|
||||||
|
to_time: 1703955600000,
|
||||||
|
status: 'started',
|
||||||
|
specifications: '<table><tbody><tr><td style="text-align: center;"><strong>STT</strong></td><td style="text-align: center;"><strong>MÃ HÀNG</strong></td><td style="text-align: center;"><strong>TÊN HÀNG</strong></td><td style="text-align: center;"><strong>THỜI HẠN BẢO HÀNH</strong></td></tr><tr><td style="text-align: center;"><strong>1</strong></td><td style="text-align: center;"><strong>CPU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/cpu-intel-core-i7-13700kf">INTEL COREi7 13700KF up 5.4GHz | 16 CORE | 24 THREAD</a> </strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>2</strong></td><td style="text-align: center;"><strong>MAIN</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/mainboard-asrock-z690-steel-legend">ASROCK Z690 STEELLEGEND DDR4</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>3</strong></td><td style="text-align: center;"><strong>TẢN NHIỆT</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/cooler-master-masterliquid-360l-core-argb">COOLER MASTER MASTERLIQUIDML360L CORE ARGB</ahref=></strong></td><td style="text-align: center;"><strong>12 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>4</strong></td><td style="text-align: center;"><strong>RAM</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/ram-teamgroup-t-force-vulcan-z-16gb-red-3600">32GB DDR4 3600 MHz(2x16G)</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>5</strong></td><td style="text-align: center;"><strong>SSD</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/o-cung-ssd-lexar-nm620-512gb">LEXARNM620 512GB M.2 2280 PCIe 3.0x4 - RW 3500MB/s</a></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>6</strong></td><td style="text-align: center;"><span style="color: #000000;"><strong>VGA</strong></span></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vga-palit-geforce-rtx2060-super-dual-8gb-gddr6">PALIT GEFORCE RTX2060 SUPER DUAL 8GB GDDR6 256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>7</strong></td><td style="text-align: center;"><strong>PSU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/nguon-asus-tuf-gaming-750w">ASUS TUFGAMING 750W - 80 PLUS BRONZE</a></strong></td><td style="text-align: center;"><strong>72 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>8</strong></td><td style="text-align: center;"><strong>CASE</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vo-case-xigmatek-anubis-pro-4fx">XIGMATEK ANUBIS PRO 4FX - 4FAN</ahref=></strong></td><td style="text-align: center;"> </td></tr></tbody></table>',
|
||||||
|
}, {
|
||||||
|
productId: 6,
|
||||||
|
product_name: "HHHPC 3D LUMION i9 13900K | 32G | NVIDIA RTX 3060 12GB",
|
||||||
|
image: "https://hoanghapccdn.com/media/product/250_3735_hhpc_anubis_pro_4fx_ram_black_ha3.jpg",
|
||||||
|
price: 32290000,
|
||||||
|
starting_price: 22290000,
|
||||||
|
from_time: 1703213170286,
|
||||||
|
to_time: 1703955600000,
|
||||||
|
status: 'started',
|
||||||
|
specifications: '<table><tbody><tr><td style="text-align: center;"><strong>STT</strong></td><td style="text-align: center;"><strong>MÃ HÀNG</strong></td><td style="text-align: center;"><strong>TÊN HÀNG</strong></td><td style="text-align: center;"><strong>THỜI HẠN BẢO HÀNH</strong></td></tr><tr><td style="text-align: center;"><strong>1</strong></td><td style="text-align: center;"><strong>CPU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/cpu-intel-core-i7-13700kf">INTEL COREi7 13700KF up 5.4GHz | 16 CORE | 24 THREAD</a> </strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>2</strong></td><td style="text-align: center;"><strong>MAIN</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/mainboard-asrock-z690-steel-legend">ASROCK Z690 STEELLEGEND DDR4</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>3</strong></td><td style="text-align: center;"><strong>TẢN NHIỆT</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/cooler-master-masterliquid-360l-core-argb">COOLER MASTER MASTERLIQUIDML360L CORE ARGB</ahref=></strong></td><td style="text-align: center;"><strong>12 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>4</strong></td><td style="text-align: center;"><strong>RAM</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/ram-teamgroup-t-force-vulcan-z-16gb-red-3600">32GB DDR4 3600 MHz(2x16G)</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>5</strong></td><td style="text-align: center;"><strong>SSD</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/o-cung-ssd-lexar-nm620-512gb">LEXARNM620 512GB M.2 2280 PCIe 3.0x4 - RW 3500MB/s</a></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>6</strong></td><td style="text-align: center;"><span style="color: #000000;"><strong>VGA</strong></span></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vga-palit-geforce-rtx2060-super-dual-8gb-gddr6">PALIT GEFORCE RTX2060 SUPER DUAL 8GB GDDR6 256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>7</strong></td><td style="text-align: center;"><strong>PSU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/nguon-asus-tuf-gaming-750w">ASUS TUFGAMING 750W - 80 PLUS BRONZE</a></strong></td><td style="text-align: center;"><strong>72 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>8</strong></td><td style="text-align: center;"><strong>CASE</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vo-case-xigmatek-anubis-pro-4fx">XIGMATEK ANUBIS PRO 4FX - 4FAN</ahref=></strong></td><td style="text-align: center;"> </td></tr></tbody></table>',
|
||||||
|
}, {
|
||||||
|
productId: 7,
|
||||||
|
product_name: "HHPC ADOBE i7 13700KF | 32G | RTX 2060 SUPER 8G | 256 bit | GDDR6",
|
||||||
|
image: "https://hoanghapccdn.com/media/product/250_3756_pc_anubius_pro_elite_360_v3_black_ha4.jpg",
|
||||||
|
price: 26390000,
|
||||||
|
starting_price: 16390000,
|
||||||
|
from_time: 1703350800000,
|
||||||
|
to_time: 1703955600000,
|
||||||
|
status: 'coming',
|
||||||
|
specifications: '<table><tbody><tr><td style="text-align: center;"><strong>STT</strong></td><td style="text-align: center;"><strong>MÃ HÀNG</strong></td><td style="text-align: center;"><strong>TÊN HÀNG</strong></td><td style="text-align: center;"><strong>THỜI HẠN BẢO HÀNH</strong></td></tr><tr><td style="text-align: center;"><strong>1</strong></td><td style="text-align: center;"><strong>CPU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/cpu-intel-core-i7-13700kf">INTEL COREi7 13700KF up 5.4GHz | 16 CORE | 24 THREAD</a> </strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>2</strong></td><td style="text-align: center;"><strong>MAIN</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/mainboard-asrock-z690-steel-legend">ASROCK Z690 STEELLEGEND DDR4</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>3</strong></td><td style="text-align: center;"><strong>TẢN NHIỆT</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/cooler-master-masterliquid-360l-core-argb">COOLER MASTER MASTERLIQUIDML360L CORE ARGB</ahref=></strong></td><td style="text-align: center;"><strong>12 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>4</strong></td><td style="text-align: center;"><strong>RAM</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/ram-teamgroup-t-force-vulcan-z-16gb-red-3600">32GB DDR4 3600 MHz(2x16G)</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>5</strong></td><td style="text-align: center;"><strong>SSD</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/o-cung-ssd-lexar-nm620-512gb">LEXARNM620 512GB M.2 2280 PCIe 3.0x4 - RW 3500MB/s</a></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>6</strong></td><td style="text-align: center;"><span style="color: #000000;"><strong>VGA</strong></span></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vga-palit-geforce-rtx2060-super-dual-8gb-gddr6">PALIT GEFORCE RTX2060 SUPER DUAL 8GB GDDR6 256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>7</strong></td><td style="text-align: center;"><strong>PSU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/nguon-asus-tuf-gaming-750w">ASUS TUFGAMING 750W - 80 PLUS BRONZE</a></strong></td><td style="text-align: center;"><strong>72 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>8</strong></td><td style="text-align: center;"><strong>CASE</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vo-case-xigmatek-anubis-pro-4fx">XIGMATEK ANUBIS PRO 4FX - 4FAN</ahref=></strong></td><td style="text-align: center;"> </td></tr></tbody></table>',
|
||||||
|
}, {
|
||||||
|
productId: 8,
|
||||||
|
product_name: "Bàn phím cơ Gaming MSI Vigor GK50 Elite Black",
|
||||||
|
image: "https://hoanghapccdn.com/media/product/4807_msi_vigor_gk50_elite_black_ha1.jpg",
|
||||||
|
price: 1890000,
|
||||||
|
starting_price: 890000,
|
||||||
|
from_time: 1703264400000,
|
||||||
|
to_time: 1703215914798,
|
||||||
|
status: 'ended',
|
||||||
|
specifications: '<table><tbody><tr><td style="text-align: center;"><strong>STT</strong></td><td style="text-align: center;"><strong>MÃ HÀNG</strong></td><td style="text-align: center;"><strong>TÊN HÀNG</strong></td><td style="text-align: center;"><strong>THỜI HẠN BẢO HÀNH</strong></td></tr><tr><td style="text-align: center;"><strong>1</strong></td><td style="text-align: center;"><strong>CPU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/cpu-intel-core-i7-13700kf">INTEL COREi7 13700KF up 5.4GHz | 16 CORE | 24 THREAD</a> </strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>2</strong></td><td style="text-align: center;"><strong>MAIN</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/mainboard-asrock-z690-steel-legend">ASROCK Z690 STEELLEGEND DDR4</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>3</strong></td><td style="text-align: center;"><strong>TẢN NHIỆT</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/cooler-master-masterliquid-360l-core-argb">COOLER MASTER MASTERLIQUIDML360L CORE ARGB</ahref=></strong></td><td style="text-align: center;"><strong>12 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>4</strong></td><td style="text-align: center;"><strong>RAM</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/ram-teamgroup-t-force-vulcan-z-16gb-red-3600">32GB DDR4 3600 MHz(2x16G)</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>5</strong></td><td style="text-align: center;"><strong>SSD</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/o-cung-ssd-lexar-nm620-512gb">LEXARNM620 512GB M.2 2280 PCIe 3.0x4 - RW 3500MB/s</a></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>6</strong></td><td style="text-align: center;"><span style="color: #000000;"><strong>VGA</strong></span></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vga-palit-geforce-rtx2060-super-dual-8gb-gddr6">PALIT GEFORCE RTX2060 SUPER DUAL 8GB GDDR6 256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>7</strong></td><td style="text-align: center;"><strong>PSU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/nguon-asus-tuf-gaming-750w">ASUS TUFGAMING 750W - 80 PLUS BRONZE</a></strong></td><td style="text-align: center;"><strong>72 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>8</strong></td><td style="text-align: center;"><strong>CASE</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vo-case-xigmatek-anubis-pro-4fx">XIGMATEK ANUBIS PRO 4FX - 4FAN</ahref=></strong></td><td style="text-align: center;"> </td></tr></tbody></table>',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
const du_lieu_thongtindaugia = [
|
||||||
|
{
|
||||||
|
productId: 1,
|
||||||
|
listUser: [
|
||||||
|
{
|
||||||
|
userName: 'Mai phương',
|
||||||
|
price: 450000,
|
||||||
|
time: 1703132219576,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
userName: 'Quang Đỗ',
|
||||||
|
price: 360000,
|
||||||
|
time: 1703132219576,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
];
|
||||||
44
dist/detail.js
vendored
Normal file
44
dist/detail.js
vendored
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
"use strict";
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
function get_sp_tu_api() {
|
||||||
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
return resolve(listproduct_mau);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function show_info_product() {
|
||||||
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
const lay_thongtin_sp = yield get_sp_tu_api();
|
||||||
|
// code hien thi danh sach dang dien ra
|
||||||
|
show_product_detail(lay_thongtin_sp);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function GetURLParameter(sParam, url) {
|
||||||
|
var url_decode = decodeURIComponent(url);
|
||||||
|
var sPageURL = url_decode;
|
||||||
|
var sURLVariables = sPageURL.split('?');
|
||||||
|
for (var i = 0; i < sURLVariables.length; i++) {
|
||||||
|
var sParameterName = sURLVariables[i].split('=');
|
||||||
|
if (sParameterName[0] == sParam) {
|
||||||
|
return sParameterName[1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function show_product_detail(lay_thongtin_sp) {
|
||||||
|
const IdProduct = Number(GetURLParameter('id', window.location.href));
|
||||||
|
lay_thongtin_sp
|
||||||
|
.filter((product) => product.productId == IdProduct)
|
||||||
|
.forEach(function (product, keyIndex) {
|
||||||
|
console.log(product);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
show_info_product();
|
||||||
133
dist/main.js
vendored
Normal file
133
dist/main.js
vendored
Normal file
@@ -0,0 +1,133 @@
|
|||||||
|
"use strict";
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
function goi_sp_tu_api() {
|
||||||
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
return resolve(listproduct_mau);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function hienthi_sp() {
|
||||||
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
const lay_sp_tu_api = yield goi_sp_tu_api();
|
||||||
|
// code hien thi danh sach dang dien ra
|
||||||
|
// Usage example:
|
||||||
|
showListProductHome(lay_sp_tu_api, 'started', 'js-holder-list-started');
|
||||||
|
showListProductHome(lay_sp_tu_api, 'coming', 'js-holder-list-coming');
|
||||||
|
showListProductHome(lay_sp_tu_api, 'ended', 'js-holder-list-ended');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function showListProductHome(lay_sp_tu_api, status, holderId) {
|
||||||
|
const html = [];
|
||||||
|
const holder = document.getElementById(holderId);
|
||||||
|
lay_sp_tu_api
|
||||||
|
.filter((product) => product.status == status)
|
||||||
|
.forEach(function (product, keyIndex) {
|
||||||
|
html.push(xayhtml(product));
|
||||||
|
if (status != 'ended' || product.to_time > product.from_time) {
|
||||||
|
const countdownTime = (status == 'started') ? product.to_time : product.from_time;
|
||||||
|
countDown(`js-deal-time-${product.productId}`, countdownTime);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (holder) {
|
||||||
|
holder.innerHTML = html.join('');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function xayhtml(product) {
|
||||||
|
var Htmlcheckstatus = '';
|
||||||
|
if (product.status == 'started') {
|
||||||
|
Htmlcheckstatus = `<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Còn lại:</div>
|
||||||
|
<div class="product-time-holder js-deal-time-${product.productId}" data-time="${product.to_time}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="/auction_program/product-detail.html?id=${product.productId}" class="btn-auction">Đấu giá ngay</a>`;
|
||||||
|
}
|
||||||
|
else if (product.status == 'coming') {
|
||||||
|
Htmlcheckstatus = `<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Bắt đầu sau:</div>
|
||||||
|
<div class="product-time-holder js-deal-time-${product.productId}" data-time="${product.from_time}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="/auction_program/product-detail.html?id=${product.productId}" class="btn-auction">Xem chi tiết</a>`;
|
||||||
|
}
|
||||||
|
else if (product.to_time < Date.now()) {
|
||||||
|
Htmlcheckstatus = `<div class="starting-price">Thắng cuộc ${formatPrice(product.starting_price)}<u>đ</u></div>
|
||||||
|
<div class="deal-time-holder d-flex align-items space-center end">
|
||||||
|
<div class="txt">Đã kết thúc</div>
|
||||||
|
</div>
|
||||||
|
<a href="/auction_program/product-detail.html?id=${product.productId}" class="btn-auction">Xem chi tiết</a>`;
|
||||||
|
}
|
||||||
|
return `<div class="product-item">
|
||||||
|
<a href="/product-detail.html?id=${product.productId}" class="product-image">
|
||||||
|
<img src="${product.image}" alt="${product.product_name}">
|
||||||
|
</a>
|
||||||
|
<div class="info-product">
|
||||||
|
<a href="" class="product-name line-clamp-2">${product.product_name}</a>
|
||||||
|
<div class="product-cost">
|
||||||
|
Giá gốc: ${formatPrice(product.price)}đ
|
||||||
|
</div>
|
||||||
|
${Htmlcheckstatus}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
function formatPrice(price) {
|
||||||
|
var b = price.toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1.").toString();
|
||||||
|
var len = b.length;
|
||||||
|
b = b.substring(0, len - 3);
|
||||||
|
return b;
|
||||||
|
}
|
||||||
|
function countDown(iid, endTime) {
|
||||||
|
const updateCountdown = () => {
|
||||||
|
const now = Date.now();
|
||||||
|
const distance = endTime - now;
|
||||||
|
if (distance > 0) {
|
||||||
|
const [days, hours, minutes, seconds] = getTimeComponents(distance);
|
||||||
|
displayCountdown(iid, days, hours, minutes, seconds);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
clearInterval(timer);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Initial update to avoid delay
|
||||||
|
updateCountdown();
|
||||||
|
const timer = setInterval(updateCountdown, 1000);
|
||||||
|
}
|
||||||
|
function getTimeComponents(distance) {
|
||||||
|
const days = Math.floor(distance / (1000 * 60 * 60 * 24));
|
||||||
|
const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
|
||||||
|
const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
|
||||||
|
const seconds = Math.floor((distance % (1000 * 60)) / 1000);
|
||||||
|
return [days, hours, minutes, seconds];
|
||||||
|
}
|
||||||
|
function displayCountdown(iid, days, hours, minutes, seconds) {
|
||||||
|
const element = document.querySelector(`.${iid}`);
|
||||||
|
if (element) {
|
||||||
|
if (days > 0) {
|
||||||
|
element.innerHTML = `
|
||||||
|
<div class='item-time'><b>${formatTimeComponent(days)}</b></div>
|
||||||
|
<div class='item-time'><b>${formatTimeComponent(hours)}</b></div>
|
||||||
|
<div class='item-time'><b>${formatTimeComponent(minutes)}</b></div>
|
||||||
|
<div class='item-time'><b>${formatTimeComponent(seconds)}</b></div>`;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
element.innerHTML = `
|
||||||
|
<div class='item-time'><b>${formatTimeComponent(hours)}</b></div>
|
||||||
|
<div class='item-time'><b>${formatTimeComponent(minutes)}</b></div>
|
||||||
|
<div class='item-time'><b>${formatTimeComponent(seconds)}</b></div>`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function formatTimeComponent(component) {
|
||||||
|
return component <= 9 ? '0' + component : component.toString();
|
||||||
|
}
|
||||||
|
hienthi_sp();
|
||||||
513
index.html
Normal file
513
index.html
Normal file
@@ -0,0 +1,513 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Chương trình đấu giá trực tuyết</title>
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css">
|
||||||
|
<link rel="stylesheet" href="./assets/css/style.css">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="header">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content-header d-flex align-items space-between">
|
||||||
|
<a href="/" class="logo">
|
||||||
|
<img src="./assets/images/logo.png" width="174" height="43" alt="logo">
|
||||||
|
</a>
|
||||||
|
<a href="/login" class="box-user">
|
||||||
|
<span class="txt">Chào phương !</span>
|
||||||
|
<i class="fa fa-user-circle-o"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="homepage">
|
||||||
|
<div class="banner">
|
||||||
|
<a href="" class="item">
|
||||||
|
<img src="./assets/images/banner.png" width="100%" height="503" alt="banner">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="container">
|
||||||
|
<div class="ground-list-product">
|
||||||
|
<div class="box-list-product">
|
||||||
|
<h2 class="title">Đang diễn ra</h2>
|
||||||
|
<div class="list-product d-flex flex-wrap" id="js-holder-list-started">
|
||||||
|
<div class="product-item">
|
||||||
|
<a href="" class="product-image">
|
||||||
|
<img src="./assets/images/product-1.png" alt="">
|
||||||
|
</a>
|
||||||
|
<div class="info-product">
|
||||||
|
<a href="" class="product-name line-clamp-2">Máy tính bảng TCL Tab 11 WIFI 4GB 128GB</a>
|
||||||
|
<div class="product-cost">
|
||||||
|
Giá gốc 4.990.000đ
|
||||||
|
</div>
|
||||||
|
<div class="starting-price">Khởi điểm 2.350.000<u>đ</u></div>
|
||||||
|
<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Còn lại:</div>
|
||||||
|
<div class="product-time-holder js-deal-time" data-time="">
|
||||||
|
<div class='item-time'><b>20</b></div>
|
||||||
|
<div class='item-time'><b>11</b></div>
|
||||||
|
<div class='item-time'><b>30</b></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0)" class="btn-auction">Đấu giá ngay</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="product-item">
|
||||||
|
<a href="" class="product-image">
|
||||||
|
<img src="./assets/images/product-1.png" alt="">
|
||||||
|
</a>
|
||||||
|
<div class="info-product">
|
||||||
|
<a href="" class="product-name line-clamp-2">Máy tính bảng TCL Tab 11 WIFI 4GB 128GB</a>
|
||||||
|
<div class="product-cost">
|
||||||
|
Giá gốc 4.990.000đ
|
||||||
|
</div>
|
||||||
|
<div class="starting-price">Khởi điểm 2.350.000<u>đ</u></div>
|
||||||
|
<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Còn lại:</div>
|
||||||
|
<div class="product-time-holder js-deal-time" data-time="">
|
||||||
|
<div class='item-time'><b>20</b></div>
|
||||||
|
<div class='item-time'><b>11</b></div>
|
||||||
|
<div class='item-time'><b>30</b></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0)" class="btn-auction">Đấu giá ngay</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="product-item">
|
||||||
|
<a href="" class="product-image">
|
||||||
|
<img src="./assets/images/product-1.png" alt="">
|
||||||
|
</a>
|
||||||
|
<div class="info-product">
|
||||||
|
<a href="" class="product-name line-clamp-2">Máy tính bảng TCL Tab 11 WIFI 4GB 128GB</a>
|
||||||
|
<div class="product-cost">
|
||||||
|
Giá gốc 4.990.000đ
|
||||||
|
</div>
|
||||||
|
<div class="starting-price">Khởi điểm 2.350.000<u>đ</u></div>
|
||||||
|
<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Còn lại:</div>
|
||||||
|
<div class="product-time-holder js-deal-time" data-time="">
|
||||||
|
<div class='item-time'><b>20</b></div>
|
||||||
|
<div class='item-time'><b>11</b></div>
|
||||||
|
<div class='item-time'><b>30</b></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0)" class="btn-auction">Đấu giá ngay</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="product-item">
|
||||||
|
<a href="" class="product-image">
|
||||||
|
<img src="./assets/images/product-1.png" alt="">
|
||||||
|
</a>
|
||||||
|
<div class="info-product">
|
||||||
|
<a href="" class="product-name line-clamp-2">Máy tính bảng TCL Tab 11 WIFI 4GB 128GB</a>
|
||||||
|
<div class="product-cost">
|
||||||
|
Giá gốc 4.990.000đ
|
||||||
|
</div>
|
||||||
|
<div class="starting-price">Khởi điểm 2.350.000<u>đ</u></div>
|
||||||
|
<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Còn lại:</div>
|
||||||
|
<div class="product-time-holder js-deal-time" data-time="">
|
||||||
|
<div class='item-time'><b>20</b></div>
|
||||||
|
<div class='item-time'><b>11</b></div>
|
||||||
|
<div class='item-time'><b>30</b></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0)" class="btn-auction">Đấu giá ngay</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="product-item">
|
||||||
|
<a href="" class="product-image">
|
||||||
|
<img src="./assets/images/product-1.png" alt="">
|
||||||
|
</a>
|
||||||
|
<div class="info-product">
|
||||||
|
<a href="" class="product-name line-clamp-2">Máy tính bảng TCL Tab 11 WIFI 4GB 128GB</a>
|
||||||
|
<div class="product-cost">
|
||||||
|
Giá gốc 4.990.000đ
|
||||||
|
</div>
|
||||||
|
<div class="starting-price">Khởi điểm 2.350.000<u>đ</u></div>
|
||||||
|
<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Còn lại:</div>
|
||||||
|
<div class="product-time-holder js-deal-time" data-time="">
|
||||||
|
<div class='item-time'><b>20</b></div>
|
||||||
|
<div class='item-time'><b>11</b></div>
|
||||||
|
<div class='item-time'><b>30</b></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0)" class="btn-auction">Đấu giá ngay</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="product-item">
|
||||||
|
<a href="" class="product-image">
|
||||||
|
<img src="./assets/images/product-1.png" alt="">
|
||||||
|
</a>
|
||||||
|
<div class="info-product">
|
||||||
|
<a href="" class="product-name line-clamp-2">Máy tính bảng TCL Tab 11 WIFI 4GB 128GB</a>
|
||||||
|
<div class="product-cost">
|
||||||
|
Giá gốc 4.990.000đ
|
||||||
|
</div>
|
||||||
|
<div class="starting-price">Khởi điểm 2.350.000<u>đ</u></div>
|
||||||
|
<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Còn lại:</div>
|
||||||
|
<div class="product-time-holder js-deal-time" data-time="">
|
||||||
|
<div class='item-time'><b>20</b></div>
|
||||||
|
<div class='item-time'><b>11</b></div>
|
||||||
|
<div class='item-time'><b>30</b></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0)" class="btn-auction">Đấu giá ngay</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="box-list-product">
|
||||||
|
<h2 class="title">Sắp diễn ra</h2>
|
||||||
|
<div class="list-product d-flex flex-wrap" id="js-holder-list-coming">
|
||||||
|
<div class="product-item">
|
||||||
|
<a href="" class="product-image">
|
||||||
|
<img src="./assets/images/product-1.png" alt="">
|
||||||
|
</a>
|
||||||
|
<div class="info-product">
|
||||||
|
<a href="" class="product-name line-clamp-2">Máy tính bảng TCL Tab 11 WIFI 4GB 128GB</a>
|
||||||
|
<div class="product-cost">
|
||||||
|
Giá gốc 4.990.000đ
|
||||||
|
</div>
|
||||||
|
<div class="starting-price">Khởi điểm 2.350.000<u>đ</u></div>
|
||||||
|
<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Còn lại:</div>
|
||||||
|
<div class="product-time-holder js-deal-time" data-time="">
|
||||||
|
<div class='item-time'><b>20</b></div>
|
||||||
|
<div class='item-time'><b>11</b></div>
|
||||||
|
<div class='item-time'><b>30</b></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0)" class="btn-auction">Đấu giá ngay</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="product-item">
|
||||||
|
<a href="" class="product-image">
|
||||||
|
<img src="./assets/images/product-1.png" alt="">
|
||||||
|
</a>
|
||||||
|
<div class="info-product">
|
||||||
|
<a href="" class="product-name line-clamp-2">Máy tính bảng TCL Tab 11 WIFI 4GB 128GB</a>
|
||||||
|
<div class="product-cost">
|
||||||
|
Giá gốc 4.990.000đ
|
||||||
|
</div>
|
||||||
|
<div class="starting-price">Khởi điểm 2.350.000<u>đ</u></div>
|
||||||
|
<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Còn lại:</div>
|
||||||
|
<div class="product-time-holder js-deal-time" data-time="">
|
||||||
|
<div class='item-time'><b>20</b></div>
|
||||||
|
<div class='item-time'><b>11</b></div>
|
||||||
|
<div class='item-time'><b>30</b></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0)" class="btn-auction">Đấu giá ngay</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="product-item">
|
||||||
|
<a href="" class="product-image">
|
||||||
|
<img src="./assets/images/product-1.png" alt="">
|
||||||
|
</a>
|
||||||
|
<div class="info-product">
|
||||||
|
<a href="" class="product-name line-clamp-2">Máy tính bảng TCL Tab 11 WIFI 4GB 128GB</a>
|
||||||
|
<div class="product-cost">
|
||||||
|
Giá gốc 4.990.000đ
|
||||||
|
</div>
|
||||||
|
<div class="starting-price">Khởi điểm 2.350.000<u>đ</u></div>
|
||||||
|
<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Còn lại:</div>
|
||||||
|
<div class="product-time-holder js-deal-time" data-time="">
|
||||||
|
<div class='item-time'><b>20</b></div>
|
||||||
|
<div class='item-time'><b>11</b></div>
|
||||||
|
<div class='item-time'><b>30</b></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0)" class="btn-auction">Đấu giá ngay</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="product-item">
|
||||||
|
<a href="" class="product-image">
|
||||||
|
<img src="./assets/images/product-1.png" alt="">
|
||||||
|
</a>
|
||||||
|
<div class="info-product">
|
||||||
|
<a href="" class="product-name line-clamp-2">Máy tính bảng TCL Tab 11 WIFI 4GB 128GB</a>
|
||||||
|
<div class="product-cost">
|
||||||
|
Giá gốc 4.990.000đ
|
||||||
|
</div>
|
||||||
|
<div class="starting-price">Khởi điểm 2.350.000<u>đ</u></div>
|
||||||
|
<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Còn lại:</div>
|
||||||
|
<div class="product-time-holder js-deal-time" data-time="">
|
||||||
|
<div class='item-time'><b>20</b></div>
|
||||||
|
<div class='item-time'><b>11</b></div>
|
||||||
|
<div class='item-time'><b>30</b></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0)" class="btn-auction">Đấu giá ngay</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="product-item">
|
||||||
|
<a href="" class="product-image">
|
||||||
|
<img src="./assets/images/product-1.png" alt="">
|
||||||
|
</a>
|
||||||
|
<div class="info-product">
|
||||||
|
<a href="" class="product-name line-clamp-2">Máy tính bảng TCL Tab 11 WIFI 4GB 128GB</a>
|
||||||
|
<div class="product-cost">
|
||||||
|
Giá gốc 4.990.000đ
|
||||||
|
</div>
|
||||||
|
<div class="starting-price">Khởi điểm 2.350.000<u>đ</u></div>
|
||||||
|
<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Còn lại:</div>
|
||||||
|
<div class="product-time-holder js-deal-time" data-time="">
|
||||||
|
<div class='item-time'><b>20</b></div>
|
||||||
|
<div class='item-time'><b>11</b></div>
|
||||||
|
<div class='item-time'><b>30</b></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0)" class="btn-auction">Đấu giá ngay</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="product-item">
|
||||||
|
<a href="" class="product-image">
|
||||||
|
<img src="./assets/images/product-1.png" alt="">
|
||||||
|
</a>
|
||||||
|
<div class="info-product">
|
||||||
|
<a href="" class="product-name line-clamp-2">Máy tính bảng TCL Tab 11 WIFI 4GB 128GB</a>
|
||||||
|
<div class="product-cost">
|
||||||
|
Giá gốc 4.990.000đ
|
||||||
|
</div>
|
||||||
|
<div class="starting-price">Khởi điểm 2.350.000<u>đ</u></div>
|
||||||
|
<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Còn lại:</div>
|
||||||
|
<div class="product-time-holder js-deal-time" data-time="">
|
||||||
|
<div class='item-time'><b>20</b></div>
|
||||||
|
<div class='item-time'><b>11</b></div>
|
||||||
|
<div class='item-time'><b>30</b></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0)" class="btn-auction">Đấu giá ngay</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="box-list-product">
|
||||||
|
<h2 class="title">Đã kết thúc</h2>
|
||||||
|
<div class="list-product d-flex flex-wrap" id="js-holder-list-ended">
|
||||||
|
<div class="product-item">
|
||||||
|
<a href="" class="product-image">
|
||||||
|
<img src="./assets/images/product-1.png" alt="">
|
||||||
|
</a>
|
||||||
|
<div class="info-product">
|
||||||
|
<a href="" class="product-name line-clamp-2">Máy tính bảng TCL Tab 11 WIFI 4GB 128GB</a>
|
||||||
|
<div class="product-cost">
|
||||||
|
Giá gốc 4.990.000đ
|
||||||
|
</div>
|
||||||
|
<div class="starting-price">Khởi điểm 2.350.000<u>đ</u></div>
|
||||||
|
<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Còn lại:</div>
|
||||||
|
<div class="product-time-holder js-deal-time" data-time="">
|
||||||
|
<div class='item-time'><b>20</b></div>
|
||||||
|
<div class='item-time'><b>11</b></div>
|
||||||
|
<div class='item-time'><b>30</b></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0)" class="btn-auction">Đấu giá ngay</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="product-item">
|
||||||
|
<a href="" class="product-image">
|
||||||
|
<img src="./assets/images/product-1.png" alt="">
|
||||||
|
</a>
|
||||||
|
<div class="info-product">
|
||||||
|
<a href="" class="product-name line-clamp-2">Máy tính bảng TCL Tab 11 WIFI 4GB 128GB</a>
|
||||||
|
<div class="product-cost">
|
||||||
|
Giá gốc 4.990.000đ
|
||||||
|
</div>
|
||||||
|
<div class="starting-price">Khởi điểm 2.350.000<u>đ</u></div>
|
||||||
|
<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Còn lại:</div>
|
||||||
|
<div class="product-time-holder js-deal-time" data-time="">
|
||||||
|
<div class='item-time'><b>20</b></div>
|
||||||
|
<div class='item-time'><b>11</b></div>
|
||||||
|
<div class='item-time'><b>30</b></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0)" class="btn-auction">Đấu giá ngay</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="product-item">
|
||||||
|
<a href="" class="product-image">
|
||||||
|
<img src="./assets/images/product-1.png" alt="">
|
||||||
|
</a>
|
||||||
|
<div class="info-product">
|
||||||
|
<a href="" class="product-name line-clamp-2">Máy tính bảng TCL Tab 11 WIFI 4GB 128GB</a>
|
||||||
|
<div class="product-cost">
|
||||||
|
Giá gốc 4.990.000đ
|
||||||
|
</div>
|
||||||
|
<div class="starting-price">Khởi điểm 2.350.000<u>đ</u></div>
|
||||||
|
<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Còn lại:</div>
|
||||||
|
<div class="product-time-holder js-deal-time" data-time="">
|
||||||
|
<div class='item-time'><b>20</b></div>
|
||||||
|
<div class='item-time'><b>11</b></div>
|
||||||
|
<div class='item-time'><b>30</b></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0)" class="btn-auction">Đấu giá ngay</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="product-item">
|
||||||
|
<a href="" class="product-image">
|
||||||
|
<img src="./assets/images/product-1.png" alt="">
|
||||||
|
</a>
|
||||||
|
<div class="info-product">
|
||||||
|
<a href="" class="product-name line-clamp-2">Máy tính bảng TCL Tab 11 WIFI 4GB 128GB</a>
|
||||||
|
<div class="product-cost">
|
||||||
|
Giá gốc 4.990.000đ
|
||||||
|
</div>
|
||||||
|
<div class="starting-price">Khởi điểm 2.350.000<u>đ</u></div>
|
||||||
|
<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Còn lại:</div>
|
||||||
|
<div class="product-time-holder js-deal-time" data-time="">
|
||||||
|
<div class='item-time'><b>20</b></div>
|
||||||
|
<div class='item-time'><b>11</b></div>
|
||||||
|
<div class='item-time'><b>30</b></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0)" class="btn-auction">Đấu giá ngay</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="product-item">
|
||||||
|
<a href="" class="product-image">
|
||||||
|
<img src="./assets/images/product-1.png" alt="">
|
||||||
|
</a>
|
||||||
|
<div class="info-product">
|
||||||
|
<a href="" class="product-name line-clamp-2">Máy tính bảng TCL Tab 11 WIFI 4GB 128GB</a>
|
||||||
|
<div class="product-cost">
|
||||||
|
Giá gốc 4.990.000đ
|
||||||
|
</div>
|
||||||
|
<div class="starting-price">Khởi điểm 2.350.000<u>đ</u></div>
|
||||||
|
<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Còn lại:</div>
|
||||||
|
<div class="product-time-holder js-deal-time" data-time="">
|
||||||
|
<div class='item-time'><b>20</b></div>
|
||||||
|
<div class='item-time'><b>11</b></div>
|
||||||
|
<div class='item-time'><b>30</b></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0)" class="btn-auction">Đấu giá ngay</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="product-item">
|
||||||
|
<a href="" class="product-image">
|
||||||
|
<img src="./assets/images/product-1.png" alt="">
|
||||||
|
</a>
|
||||||
|
<div class="info-product">
|
||||||
|
<a href="" class="product-name line-clamp-2">Máy tính bảng TCL Tab 11 WIFI 4GB 128GB</a>
|
||||||
|
<div class="product-cost">
|
||||||
|
Giá gốc 4.990.000đ
|
||||||
|
</div>
|
||||||
|
<div class="starting-price">Khởi điểm 2.350.000<u>đ</u></div>
|
||||||
|
<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Còn lại:</div>
|
||||||
|
<div class="product-time-holder js-deal-time" data-time="">
|
||||||
|
<div class='item-time'><b>20</b></div>
|
||||||
|
<div class='item-time'><b>11</b></div>
|
||||||
|
<div class='item-time'><b>30</b></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0)" class="btn-auction">Đấu giá ngay</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="box-questions">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content-questions">
|
||||||
|
<h2 class="title">Câu hỏi thường gặp</h2>
|
||||||
|
<div class="content" id="accordion">
|
||||||
|
<div class="card">
|
||||||
|
<a href="#" class="card-link collapsed" data-toggle="collapse" data-target="#question-1"
|
||||||
|
aria-expanded="false">
|
||||||
|
<div class="card-header d-flex align-items space-between">
|
||||||
|
<span>Đấu giá trực tuyến có phức tạp không ?</span>
|
||||||
|
<i class="fa"></i>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
<div id="question-1" class="collapse" data-parent="#accordion">
|
||||||
|
<div class="card-body">
|
||||||
|
Rất dễ dàng, ,tham gia mọi lúc mọi nơi chỉ cần có smartphone và internet
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card">
|
||||||
|
<a href="#" class="card-link collapsed" data-toggle="collapse" data-target="#question-2"
|
||||||
|
aria-expanded="false">
|
||||||
|
<div class="card-header d-flex align-items space-between">
|
||||||
|
<span>Tại sao nên chọn đấu giá trực tuyến tại Hoàng Hà PC?</span>
|
||||||
|
<i class="fa fa-angle-right"></i>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
<div id="question-2" class="collapse" data-parent="#accordion">
|
||||||
|
<div class="card-body">
|
||||||
|
Rất dễ dàng, ,tham gia mọi lúc mọi nơi chỉ cần có smartphone và internet
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card">
|
||||||
|
<a href="#" class="card-link collapsed" data-toggle="collapse" data-target="#question-3"
|
||||||
|
aria-expanded="false">
|
||||||
|
<div class="card-header d-flex align-items space-between">
|
||||||
|
<span>Đấu giá trực tuyến có phức tạp không ?</span>
|
||||||
|
<i class="fa fa-angle-right"></i>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
<div id="question-3" class="collapse" data-parent="#accordion">
|
||||||
|
<div class="card-body">
|
||||||
|
Rất dễ dàng, ,tham gia mọi lúc mọi nơi chỉ cần có smartphone và internet
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="footer">
|
||||||
|
<div class="container">
|
||||||
|
<div class="main-content-footer d-flex align-items space-between">
|
||||||
|
<div class="footer-left">
|
||||||
|
<h3>CÔNG TY TNHH DỊCH VỤ VÀ CÔNG NGHỆ HOÀNG HÀ ©</h3>
|
||||||
|
<p>
|
||||||
|
2008 - 2020 - Công ty TNHH Dịch Vụ Và Công Nghệ Hoàng Hà / GPKD số:0107406972 Do Sở Kế Hoạch Và
|
||||||
|
Đầu
|
||||||
|
Tư Thành Phố Hà Nội Cấp Bản Quyền Thuộc Về hoanghapc.vn
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="footer-right">
|
||||||
|
<a href="tel:1800" class="d-flex align-items space-between">
|
||||||
|
<div class="txt text-center">
|
||||||
|
<span>Tổng đài hỗ trợ miễn phí</span>
|
||||||
|
<span>1800.xxxx</span>
|
||||||
|
</div>
|
||||||
|
<img src="./assets/images/icon-phone.png" width="50px" height="50px" alt="phone">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
<script src=" https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
|
||||||
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
|
||||||
|
<script src="./dist/data.js"></script>
|
||||||
|
<script src="./dist/main.js"></script>
|
||||||
|
|
||||||
|
</html>
|
||||||
445
product-detail.html
Normal file
445
product-detail.html
Normal file
@@ -0,0 +1,445 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Chương trình đấu giá trực tuyết</title>
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" />
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css">
|
||||||
|
<link rel="stylesheet" href="./assets/css/style.css">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="header">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content-header d-flex align-items space-between">
|
||||||
|
<a href="/" class="logo">
|
||||||
|
<img src="./assets/images/logo.png" width="174" height="43" alt="logo">
|
||||||
|
</a>
|
||||||
|
<a href="/login" class="box-user">
|
||||||
|
<span class="txt">Chào phương !</span>
|
||||||
|
<i class="fa fa-user-circle-o"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="page-product-detail">
|
||||||
|
<div class="container">
|
||||||
|
<div class="breadcrumb">
|
||||||
|
<ol itemscope="" itemtype="http://schema.org/BreadcrumbList" class="ul clearfix">
|
||||||
|
<li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
|
||||||
|
<a href="/" itemprop="item" class="nopad-l">
|
||||||
|
<span itemprop="name">Trang chủ</span>
|
||||||
|
</a> <i class="fa fa-angle-right"></i>
|
||||||
|
<meta itemprop="position" content="1">
|
||||||
|
</li>
|
||||||
|
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
||||||
|
<a itemprop="item" href="">
|
||||||
|
<span itemprop="name">Đang diễn ra</span>
|
||||||
|
</a>
|
||||||
|
<meta itemprop="position" content="2">
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
<div class="clearfix"></div>
|
||||||
|
|
||||||
|
<div class="box-product-info d-flex">
|
||||||
|
<div class="product-image">
|
||||||
|
<a href="">
|
||||||
|
<img src="./assets/images/product-1.png" alt="">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="info-right">
|
||||||
|
<h1 class="name">Máy tính bảng TCL Tab 11 WIFI 4GB 128GB</h1>
|
||||||
|
<div class="d-flex align-items space-between box-price-normal">
|
||||||
|
<div class="price d-flex align-items">
|
||||||
|
<div class="name-price">Khởi điểm:</div>
|
||||||
|
<b>2.350.000<u>đ</u></b>
|
||||||
|
</div>
|
||||||
|
<div class="price-step d-flex align-items">
|
||||||
|
<div class="name-price">Bước giá:</div>
|
||||||
|
<b>2.350.000<u>đ</u></b>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="current-highest-price d-flex align-items">
|
||||||
|
<div class="name-price">Giá cao nhất hiện tại:</div>
|
||||||
|
<b>4.500.000<u>đ</u></b>
|
||||||
|
</div>
|
||||||
|
<div class="qt-view">Số người đang tham gia: <b>200 người</b></div>
|
||||||
|
<div class="box-time d-flex align-items">
|
||||||
|
<span>Thời gian còn lại:</span>
|
||||||
|
<div class="product-time-holder js-deal-time d-flex align-items" data-time="">
|
||||||
|
<div class='item-time'><b>20</b></div>
|
||||||
|
<div class='item-time'><b>11</b></div>
|
||||||
|
<div class='item-time'><b>30</b></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="box-input-price d-flex align-items">
|
||||||
|
<span>Nhập giá đấu của bạn</span>
|
||||||
|
<input type="text" class="input-price" value="4.800.000">
|
||||||
|
<a href="javascript:;" class="minus-price"><i class="fa fa-minus"></i></a>
|
||||||
|
<a href="javascript:;" class="plus-price"><i class="fa fa-plus"></i></a>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0)" class="btn-add-auction">
|
||||||
|
Đấu giá ngay
|
||||||
|
</a>
|
||||||
|
<div class="box-participant-list background-white">
|
||||||
|
<h2 class="title">Diễn biến đấu giá</h2>
|
||||||
|
<div class="content">
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="d-flex align-items">
|
||||||
|
<img src="./assets/images/icon_paint.png" width="14px" height="20px" alt="">
|
||||||
|
<span>Mai phương</span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
4.500.000đ
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
14:30:40 15/12/2023
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<span>Mai phương</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
4.500.000đ
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
14:30:40 15/12/2023
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<span>Mai phương</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
4.500.000đ
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
14:30:40 15/12/2023
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<span>Mai phương</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
4.500.000đ
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
14:30:40 15/12/2023
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<span>Mai phương</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
4.500.000đ
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
14:30:40 15/12/2023
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<span>Mai phương</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
4.500.000đ
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
14:30:40 15/12/2023
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<span>Mai phương</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
4.500.000đ
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
14:30:40 15/12/2023
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<span>Mai phương</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
4.500.000đ
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
14:30:40 15/12/2023
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<span>Mai phương</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
4.500.000đ
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
14:30:40 15/12/2023
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<span>Mai phương</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
4.500.000đ
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
14:30:40 15/12/2023
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="box-spec-deposit d-flex">
|
||||||
|
<div class="box-specification background-white">
|
||||||
|
<h2 class="title">Thông tin sản phẩm</h2>
|
||||||
|
<div class="content">
|
||||||
|
<table>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center;"><strong>STT</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>MÃ HÀNG</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>TÊN HÀNG</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>THỜI HẠN BẢO HÀNH</strong></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center;"><strong>1</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>CPU</strong></td>
|
||||||
|
<td style="text-align: center;"><strong><a
|
||||||
|
href="https://hoanghapc.vn/cpu-intel-core-i7-13700kf">INTEL
|
||||||
|
COREi7 13700KF up 5.4GHz | 16 CORE | 24
|
||||||
|
THREAD</a> </strong></td>
|
||||||
|
<td style="text-align: center;"><strong>36 THÁNG</strong></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center;"><strong>2</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>MAIN</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>
|
||||||
|
<ahref="https: //hoanghapc.vn/mainboard-asrock-z690-steel-legend">ASROCK
|
||||||
|
Z690 STEELLEGEND DDR4
|
||||||
|
</ahref=>
|
||||||
|
</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>36 THÁNG</strong></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center;"><strong>3</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>TẢN NHIỆT</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>
|
||||||
|
<ahref="https: //hoanghapc.vn/cooler-master-masterliquid-360l-core-argb">
|
||||||
|
COOLER MASTER
|
||||||
|
MASTERLIQUIDML360L CORE ARGB</ahref=>
|
||||||
|
</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>12 THÁNG</strong></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center;"><strong>4</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>RAM</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>
|
||||||
|
<ahref="https: //hoanghapc.vn/ram-teamgroup-t-force-vulcan-z-16gb-red-3600">
|
||||||
|
32GB DDR4 3600
|
||||||
|
MHz(2x16G)</ahref=>
|
||||||
|
</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>36 THÁNG</strong></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center;"><strong>5</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>SSD</strong></td>
|
||||||
|
<td style="text-align: center;"><strong><a
|
||||||
|
href="https://hoanghapc.vn/o-cung-ssd-lexar-nm620-512gb">LEXARNM620
|
||||||
|
512GB M.2 2280 PCIe 3.0x4 -
|
||||||
|
RW 3500MB/s</a></strong></td>
|
||||||
|
<td style="text-align: center;"><strong>36 THÁNG</strong></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center;"><strong>6</strong></td>
|
||||||
|
<td style="text-align: center;"><span
|
||||||
|
style="color: #000000;"><strong>VGA</strong></span></td>
|
||||||
|
<td style="text-align: center;"><strong>
|
||||||
|
<ahref="https:
|
||||||
|
//hoanghapc.vn/vga-palit-geforce-rtx2060-super-dual-8gb-gddr6">PALIT
|
||||||
|
GEFORCE RTX2060
|
||||||
|
SUPER DUAL 8GB GDDR6 256-bit</ahref=>
|
||||||
|
</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>36 THÁNG</strong></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center;"><strong>7</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>PSU</strong></td>
|
||||||
|
<td style="text-align: center;"><strong><a
|
||||||
|
href="https://hoanghapc.vn/nguon-asus-tuf-gaming-750w">ASUS
|
||||||
|
TUFGAMING 750W - 80 PLUS BRONZE</a></strong></td>
|
||||||
|
<td style="text-align: center;"><strong>72 THÁNG</strong></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center;"><strong>8</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>CASE</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>
|
||||||
|
<ahref="https: //hoanghapc.vn/vo-case-xigmatek-anubis-pro-4fx">XIGMATEK
|
||||||
|
ANUBIS PRO 4FX - 4FAN
|
||||||
|
</ahref=>
|
||||||
|
</strong></td>
|
||||||
|
<td style="text-align: center;"> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center;"><strong>6</strong></td>
|
||||||
|
<td style="text-align: center;"><span
|
||||||
|
style="color: #000000;"><strong>VGA</strong></span></td>
|
||||||
|
<td style="text-align: center;"><strong>
|
||||||
|
<ahref="https:
|
||||||
|
//hoanghapc.vn/vga-palit-geforce-rtx2060-super-dual-8gb-gddr6">PALIT
|
||||||
|
GEFORCE RTX2060
|
||||||
|
SUPER DUAL 8GB GDDR6 256-bit</ahref=>
|
||||||
|
</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>36 THÁNG</strong></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center;"><strong>7</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>PSU</strong></td>
|
||||||
|
<td style="text-align: center;"><strong><a
|
||||||
|
href="https://hoanghapc.vn/nguon-asus-tuf-gaming-750w">ASUS
|
||||||
|
TUFGAMING 750W - 80 PLUS BRONZE</a></strong></td>
|
||||||
|
<td style="text-align: center;"><strong>72 THÁNG</strong></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center;"><strong>8</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>CASE</strong></td>
|
||||||
|
<td style="text-align: center;"><strong>
|
||||||
|
<ahref="https: //hoanghapc.vn/vo-case-xigmatek-anubis-pro-4fx">XIGMATEK
|
||||||
|
ANUBIS PRO 4FX - 4FAN
|
||||||
|
</ahref=>
|
||||||
|
</strong></td>
|
||||||
|
<td style="text-align: center;"> </td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<a href="" class="more">Xem thêm</a>
|
||||||
|
</div>
|
||||||
|
<div class="box-auction-deposit background-white">
|
||||||
|
<h2 class="title">Thông tin đặt cọc đấu giá</h2>
|
||||||
|
<div class="content">
|
||||||
|
<p>Quý khách vui lòng làm theo các bước sau đây.</p>
|
||||||
|
<div>
|
||||||
|
<b>Bước 1:</b>
|
||||||
|
<span>Đặt cọc <b>500.000 VND</b> vào STK bên dưới</span>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<b>Bước 2:</b>
|
||||||
|
<span><b>Kiểm tra email</b> để nhận thông tin xác nhận đặt cọc thành công từ Hoàng Hà PC gửi
|
||||||
|
đến (Lưu ý: kiểm tra tất cả các hộp thư bao gồm cả thư
|
||||||
|
rác) Trường hợp nếu không nhận được email, quý khách vui lòng gửi hình ảnh giao dịch qua
|
||||||
|
<b>Zalo: 0909000000</b> để được hỗ trợ nhanh nhất.
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<b style="display: block;margin: 10px 0;">Thông tin tài khoản nhận cọc:</b>
|
||||||
|
<div class="d-flex">
|
||||||
|
<img src="./assets/images/qr-code.png" alt="">
|
||||||
|
<div class="cnt-right">
|
||||||
|
<b>CÔNG TY CP THƯƠNG MẠI DỊCH VỤ ACB</b>
|
||||||
|
<p>Ngân hàng: Techcombank</p>
|
||||||
|
<p>Số tài khoản: 9999998888</p>
|
||||||
|
<p>Nội dung thanh toán: [ID tài khoản] - [Mã SP cọc]</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="box-questions">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content-questions">
|
||||||
|
<h2 class="title">Câu hỏi thường gặp</h2>
|
||||||
|
<div class="content" id="accordion">
|
||||||
|
<div class="card">
|
||||||
|
<a href="#" class="card-link collapsed" data-toggle="collapse" data-target="#question-1"
|
||||||
|
aria-expanded="false">
|
||||||
|
<div class="card-header d-flex align-items space-between">
|
||||||
|
<span>Đấu giá trực tuyến có phức tạp không ?</span>
|
||||||
|
<i class="fa"></i>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
<div id="question-1" class="collapse" data-parent="#accordion">
|
||||||
|
<div class="card-body">
|
||||||
|
Rất dễ dàng, ,tham gia mọi lúc mọi nơi chỉ cần có smartphone và internet
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card">
|
||||||
|
<a href="#" class="card-link collapsed" data-toggle="collapse" data-target="#question-2"
|
||||||
|
aria-expanded="false">
|
||||||
|
<div class="card-header d-flex align-items space-between">
|
||||||
|
<span>Tại sao nên chọn đấu giá trực tuyến tại Hoàng Hà PC?</span>
|
||||||
|
<i class="fa fa-angle-right"></i>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
<div id="question-2" class="collapse" data-parent="#accordion">
|
||||||
|
<div class="card-body">
|
||||||
|
Rất dễ dàng, ,tham gia mọi lúc mọi nơi chỉ cần có smartphone và internet
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card">
|
||||||
|
<a href="#" class="card-link collapsed" data-toggle="collapse" data-target="#question-3"
|
||||||
|
aria-expanded="false">
|
||||||
|
<div class="card-header d-flex align-items space-between">
|
||||||
|
<span>Đấu giá trực tuyến có phức tạp không ?</span>
|
||||||
|
<i class="fa fa-angle-right"></i>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
<div id="question-3" class="collapse" data-parent="#accordion">
|
||||||
|
<div class="card-body">
|
||||||
|
Rất dễ dàng, ,tham gia mọi lúc mọi nơi chỉ cần có smartphone và internet
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="footer">
|
||||||
|
<div class="container">
|
||||||
|
<div class="main-content-footer d-flex align-items space-between">
|
||||||
|
<div class="footer-left">
|
||||||
|
<h3>CÔNG TY TNHH DỊCH VỤ VÀ CÔNG NGHỆ HOÀNG HÀ ©</h3>
|
||||||
|
<p>
|
||||||
|
2008 - 2020 - Công ty TNHH Dịch Vụ Và Công Nghệ Hoàng Hà / GPKD số:0107406972 Do Sở Kế Hoạch Và
|
||||||
|
Đầu
|
||||||
|
Tư Thành Phố Hà Nội Cấp Bản Quyền Thuộc Về hoanghapc.vn
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="footer-right">
|
||||||
|
<a href="tel:1800" class="d-flex align-items space-between">
|
||||||
|
<div class="txt text-center">
|
||||||
|
<span>Tổng đài hỗ trợ miễn phí</span>
|
||||||
|
<span>1800.xxxx</span>
|
||||||
|
</div>
|
||||||
|
<img src="./assets/images/icon-phone.png" width="50px" height="50px" alt="phone">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
<script src=" https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
|
||||||
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
|
||||||
|
<script src="./dist/data.js"></script>
|
||||||
|
<script src="./dist/detail.js"></script>
|
||||||
|
|
||||||
|
</html>
|
||||||
131
src/data.ts
Normal file
131
src/data.ts
Normal file
@@ -0,0 +1,131 @@
|
|||||||
|
|
||||||
|
//---- dinh nghia
|
||||||
|
|
||||||
|
type ProductInfo = {
|
||||||
|
productId: number,
|
||||||
|
product_name: string;
|
||||||
|
image: string;
|
||||||
|
price: number;
|
||||||
|
starting_price: number;
|
||||||
|
from_time: number;
|
||||||
|
to_time: number;
|
||||||
|
status: string;
|
||||||
|
specifications: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
type infoUser = {
|
||||||
|
userName: string,
|
||||||
|
price: number,
|
||||||
|
time: number,
|
||||||
|
}
|
||||||
|
type thongtinkhachhangdaugia = {
|
||||||
|
productId: number,
|
||||||
|
listUser: infoUser[]
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----
|
||||||
|
|
||||||
|
// du lieu danh sach san pham
|
||||||
|
const listproduct_mau: ProductInfo[] = [
|
||||||
|
{
|
||||||
|
productId: 1,
|
||||||
|
product_name: "HHPC 3D i7 13700KF | 32G | RTX 2060 SUPER 8G | 256 bit | GDDR6",
|
||||||
|
image: "https://hoanghapccdn.com/media/product/250_3765_pc_anubius_pro_elite_360_v3_black_ha1.jpg",
|
||||||
|
price: 26390000,
|
||||||
|
starting_price: 2350000,
|
||||||
|
from_time: 1703213170286,
|
||||||
|
to_time: 1703955600000,
|
||||||
|
status: 'started',
|
||||||
|
specifications: '<table><tbody><tr><td style="text-align: center;"><strong>STT</strong></td><td style="text-align: center;"><strong>MÃ HÀNG</strong></td><td style="text-align: center;"><strong>TÊN HÀNG</strong></td><td style="text-align: center;"><strong>THỜI HẠN BẢO HÀNH</strong></td></tr><tr><td style="text-align: center;"><strong>1</strong></td><td style="text-align: center;"><strong>CPU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/cpu-intel-core-i7-13700kf">INTEL COREi7 13700KF up 5.4GHz | 16 CORE | 24 THREAD</a> </strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>2</strong></td><td style="text-align: center;"><strong>MAIN</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/mainboard-asrock-z690-steel-legend">ASROCK Z690 STEELLEGEND DDR4</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>3</strong></td><td style="text-align: center;"><strong>TẢN NHIỆT</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/cooler-master-masterliquid-360l-core-argb">COOLER MASTER MASTERLIQUIDML360L CORE ARGB</ahref=></strong></td><td style="text-align: center;"><strong>12 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>4</strong></td><td style="text-align: center;"><strong>RAM</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/ram-teamgroup-t-force-vulcan-z-16gb-red-3600">32GB DDR4 3600 MHz(2x16G)</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>5</strong></td><td style="text-align: center;"><strong>SSD</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/o-cung-ssd-lexar-nm620-512gb">LEXARNM620 512GB M.2 2280 PCIe 3.0x4 - RW 3500MB/s</a></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>6</strong></td><td style="text-align: center;"><span style="color: #000000;"><strong>VGA</strong></span></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vga-palit-geforce-rtx2060-super-dual-8gb-gddr6">PALIT GEFORCE RTX2060 SUPER DUAL 8GB GDDR6 256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>7</strong></td><td style="text-align: center;"><strong>PSU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/nguon-asus-tuf-gaming-750w">ASUS TUFGAMING 750W - 80 PLUS BRONZE</a></strong></td><td style="text-align: center;"><strong>72 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>8</strong></td><td style="text-align: center;"><strong>CASE</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vo-case-xigmatek-anubis-pro-4fx">XIGMATEK ANUBIS PRO 4FX - 4FAN</ahref=></strong></td><td style="text-align: center;"> </td></tr></tbody></table>',
|
||||||
|
}, {
|
||||||
|
productId: 2,
|
||||||
|
product_name: "HHPC 3D LUMION i7 13700KF | 32G | NVIDIA RTX 3070 8G",
|
||||||
|
image: "https://hoanghapccdn.com/media/product/250_3762_pc_anubius_pro_elite_360_v3_black_ha3.jpg",
|
||||||
|
price: 29890000,
|
||||||
|
starting_price: 2250000,
|
||||||
|
from_time: 1703213170286,
|
||||||
|
to_time: 1703869200000,
|
||||||
|
status: 'started',
|
||||||
|
specifications: '<table><tbody><tr><td style="text-align: center;"><strong>STT</strong></td><td style="text-align: center;"><strong>MÃ HÀNG</strong></td><td style="text-align: center;"><strong>TÊN HÀNG</strong></td><td style="text-align: center;"><strong>THỜI HẠN BẢO HÀNH</strong></td></tr><tr><td style="text-align: center;"><strong>1</strong></td><td style="text-align: center;"><strong>CPU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/cpu-intel-core-i7-13700kf">INTEL COREi7 13700KF up 5.4GHz | 16 CORE | 24 THREAD</a> </strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>2</strong></td><td style="text-align: center;"><strong>MAIN</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/mainboard-asrock-z690-steel-legend">ASROCK Z690 STEELLEGEND DDR4</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>3</strong></td><td style="text-align: center;"><strong>TẢN NHIỆT</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/cooler-master-masterliquid-360l-core-argb">COOLER MASTER MASTERLIQUIDML360L CORE ARGB</ahref=></strong></td><td style="text-align: center;"><strong>12 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>4</strong></td><td style="text-align: center;"><strong>RAM</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/ram-teamgroup-t-force-vulcan-z-16gb-red-3600">32GB DDR4 3600 MHz(2x16G)</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>5</strong></td><td style="text-align: center;"><strong>SSD</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/o-cung-ssd-lexar-nm620-512gb">LEXARNM620 512GB M.2 2280 PCIe 3.0x4 - RW 3500MB/s</a></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>6</strong></td><td style="text-align: center;"><span style="color: #000000;"><strong>VGA</strong></span></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vga-palit-geforce-rtx2060-super-dual-8gb-gddr6">PALIT GEFORCE RTX2060 SUPER DUAL 8GB GDDR6 256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>7</strong></td><td style="text-align: center;"><strong>PSU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/nguon-asus-tuf-gaming-750w">ASUS TUFGAMING 750W - 80 PLUS BRONZE</a></strong></td><td style="text-align: center;"><strong>72 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>8</strong></td><td style="text-align: center;"><strong>CASE</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vo-case-xigmatek-anubis-pro-4fx">XIGMATEK ANUBIS PRO 4FX - 4FAN</ahref=></strong></td><td style="text-align: center;"> </td></tr></tbody></table>',
|
||||||
|
}, {
|
||||||
|
productId: 3,
|
||||||
|
product_name: "HHPC 3D i7 13700KF | 32G | NVIDIA RTX 3060 12G",
|
||||||
|
image: "https://hoanghapccdn.com/media/product/250_3761_pc_anubius_pro_elite_360_v3_black_ha3.jpg",
|
||||||
|
price: 27390000,
|
||||||
|
starting_price: 2550000,
|
||||||
|
from_time: 1703350800000,
|
||||||
|
to_time: 1703955600000,
|
||||||
|
status: 'coming',
|
||||||
|
specifications: '<table><tbody><tr><td style="text-align: center;"><strong>STT</strong></td><td style="text-align: center;"><strong>MÃ HÀNG</strong></td><td style="text-align: center;"><strong>TÊN HÀNG</strong></td><td style="text-align: center;"><strong>THỜI HẠN BẢO HÀNH</strong></td></tr><tr><td style="text-align: center;"><strong>1</strong></td><td style="text-align: center;"><strong>CPU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/cpu-intel-core-i7-13700kf">INTEL COREi7 13700KF up 5.4GHz | 16 CORE | 24 THREAD</a> </strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>2</strong></td><td style="text-align: center;"><strong>MAIN</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/mainboard-asrock-z690-steel-legend">ASROCK Z690 STEELLEGEND DDR4</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>3</strong></td><td style="text-align: center;"><strong>TẢN NHIỆT</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/cooler-master-masterliquid-360l-core-argb">COOLER MASTER MASTERLIQUIDML360L CORE ARGB</ahref=></strong></td><td style="text-align: center;"><strong>12 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>4</strong></td><td style="text-align: center;"><strong>RAM</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/ram-teamgroup-t-force-vulcan-z-16gb-red-3600">32GB DDR4 3600 MHz(2x16G)</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>5</strong></td><td style="text-align: center;"><strong>SSD</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/o-cung-ssd-lexar-nm620-512gb">LEXARNM620 512GB M.2 2280 PCIe 3.0x4 - RW 3500MB/s</a></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>6</strong></td><td style="text-align: center;"><span style="color: #000000;"><strong>VGA</strong></span></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vga-palit-geforce-rtx2060-super-dual-8gb-gddr6">PALIT GEFORCE RTX2060 SUPER DUAL 8GB GDDR6 256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>7</strong></td><td style="text-align: center;"><strong>PSU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/nguon-asus-tuf-gaming-750w">ASUS TUFGAMING 750W - 80 PLUS BRONZE</a></strong></td><td style="text-align: center;"><strong>72 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>8</strong></td><td style="text-align: center;"><strong>CASE</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vo-case-xigmatek-anubis-pro-4fx">XIGMATEK ANUBIS PRO 4FX - 4FAN</ahref=></strong></td><td style="text-align: center;"> </td></tr></tbody></table>',
|
||||||
|
}, {
|
||||||
|
productId: 4,
|
||||||
|
product_name: "HHPC 3D LUMION i9 13900K | 64G DDR5 | NVIDIA RTX 4090 24GB",
|
||||||
|
image: "https://hoanghapccdn.com/media/product/250_3738_hhpc_case_gank_360_ha3.jpg",
|
||||||
|
price: 91390000,
|
||||||
|
starting_price: 81390000,
|
||||||
|
from_time: 1703213170286,
|
||||||
|
to_time: 1703955600000,
|
||||||
|
status: 'started',
|
||||||
|
specifications: '<table><tbody><tr><td style="text-align: center;"><strong>STT</strong></td><td style="text-align: center;"><strong>MÃ HÀNG</strong></td><td style="text-align: center;"><strong>TÊN HÀNG</strong></td><td style="text-align: center;"><strong>THỜI HẠN BẢO HÀNH</strong></td></tr><tr><td style="text-align: center;"><strong>1</strong></td><td style="text-align: center;"><strong>CPU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/cpu-intel-core-i7-13700kf">INTEL COREi7 13700KF up 5.4GHz | 16 CORE | 24 THREAD</a> </strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>2</strong></td><td style="text-align: center;"><strong>MAIN</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/mainboard-asrock-z690-steel-legend">ASROCK Z690 STEELLEGEND DDR4</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>3</strong></td><td style="text-align: center;"><strong>TẢN NHIỆT</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/cooler-master-masterliquid-360l-core-argb">COOLER MASTER MASTERLIQUIDML360L CORE ARGB</ahref=></strong></td><td style="text-align: center;"><strong>12 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>4</strong></td><td style="text-align: center;"><strong>RAM</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/ram-teamgroup-t-force-vulcan-z-16gb-red-3600">32GB DDR4 3600 MHz(2x16G)</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>5</strong></td><td style="text-align: center;"><strong>SSD</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/o-cung-ssd-lexar-nm620-512gb">LEXARNM620 512GB M.2 2280 PCIe 3.0x4 - RW 3500MB/s</a></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>6</strong></td><td style="text-align: center;"><span style="color: #000000;"><strong>VGA</strong></span></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vga-palit-geforce-rtx2060-super-dual-8gb-gddr6">PALIT GEFORCE RTX2060 SUPER DUAL 8GB GDDR6 256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>7</strong></td><td style="text-align: center;"><strong>PSU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/nguon-asus-tuf-gaming-750w">ASUS TUFGAMING 750W - 80 PLUS BRONZE</a></strong></td><td style="text-align: center;"><strong>72 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>8</strong></td><td style="text-align: center;"><strong>CASE</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vo-case-xigmatek-anubis-pro-4fx">XIGMATEK ANUBIS PRO 4FX - 4FAN</ahref=></strong></td><td style="text-align: center;"> </td></tr></tbody></table>',
|
||||||
|
}, {
|
||||||
|
productId: 5,
|
||||||
|
product_name: "HHPC BLACK RGB i9 12900K | 32G | NVIDIA RTX 3060 12G",
|
||||||
|
image: "https://hoanghapccdn.com/media/product/250_3668_pc_anubius_pro_elite_360_v3_rgb_ha3.jpg",
|
||||||
|
price: 27850000,
|
||||||
|
starting_price: 25850000,
|
||||||
|
from_time: 1703213170286,
|
||||||
|
to_time: 1703955600000,
|
||||||
|
status: 'started',
|
||||||
|
specifications: '<table><tbody><tr><td style="text-align: center;"><strong>STT</strong></td><td style="text-align: center;"><strong>MÃ HÀNG</strong></td><td style="text-align: center;"><strong>TÊN HÀNG</strong></td><td style="text-align: center;"><strong>THỜI HẠN BẢO HÀNH</strong></td></tr><tr><td style="text-align: center;"><strong>1</strong></td><td style="text-align: center;"><strong>CPU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/cpu-intel-core-i7-13700kf">INTEL COREi7 13700KF up 5.4GHz | 16 CORE | 24 THREAD</a> </strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>2</strong></td><td style="text-align: center;"><strong>MAIN</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/mainboard-asrock-z690-steel-legend">ASROCK Z690 STEELLEGEND DDR4</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>3</strong></td><td style="text-align: center;"><strong>TẢN NHIỆT</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/cooler-master-masterliquid-360l-core-argb">COOLER MASTER MASTERLIQUIDML360L CORE ARGB</ahref=></strong></td><td style="text-align: center;"><strong>12 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>4</strong></td><td style="text-align: center;"><strong>RAM</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/ram-teamgroup-t-force-vulcan-z-16gb-red-3600">32GB DDR4 3600 MHz(2x16G)</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>5</strong></td><td style="text-align: center;"><strong>SSD</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/o-cung-ssd-lexar-nm620-512gb">LEXARNM620 512GB M.2 2280 PCIe 3.0x4 - RW 3500MB/s</a></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>6</strong></td><td style="text-align: center;"><span style="color: #000000;"><strong>VGA</strong></span></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vga-palit-geforce-rtx2060-super-dual-8gb-gddr6">PALIT GEFORCE RTX2060 SUPER DUAL 8GB GDDR6 256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>7</strong></td><td style="text-align: center;"><strong>PSU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/nguon-asus-tuf-gaming-750w">ASUS TUFGAMING 750W - 80 PLUS BRONZE</a></strong></td><td style="text-align: center;"><strong>72 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>8</strong></td><td style="text-align: center;"><strong>CASE</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vo-case-xigmatek-anubis-pro-4fx">XIGMATEK ANUBIS PRO 4FX - 4FAN</ahref=></strong></td><td style="text-align: center;"> </td></tr></tbody></table>',
|
||||||
|
}, {
|
||||||
|
productId: 6,
|
||||||
|
product_name: "HHHPC 3D LUMION i9 13900K | 32G | NVIDIA RTX 3060 12GB",
|
||||||
|
image: "https://hoanghapccdn.com/media/product/250_3735_hhpc_anubis_pro_4fx_ram_black_ha3.jpg",
|
||||||
|
price: 32290000,
|
||||||
|
starting_price: 22290000,
|
||||||
|
from_time: 1703213170286,
|
||||||
|
to_time: 1703955600000,
|
||||||
|
status: 'started',
|
||||||
|
specifications: '<table><tbody><tr><td style="text-align: center;"><strong>STT</strong></td><td style="text-align: center;"><strong>MÃ HÀNG</strong></td><td style="text-align: center;"><strong>TÊN HÀNG</strong></td><td style="text-align: center;"><strong>THỜI HẠN BẢO HÀNH</strong></td></tr><tr><td style="text-align: center;"><strong>1</strong></td><td style="text-align: center;"><strong>CPU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/cpu-intel-core-i7-13700kf">INTEL COREi7 13700KF up 5.4GHz | 16 CORE | 24 THREAD</a> </strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>2</strong></td><td style="text-align: center;"><strong>MAIN</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/mainboard-asrock-z690-steel-legend">ASROCK Z690 STEELLEGEND DDR4</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>3</strong></td><td style="text-align: center;"><strong>TẢN NHIỆT</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/cooler-master-masterliquid-360l-core-argb">COOLER MASTER MASTERLIQUIDML360L CORE ARGB</ahref=></strong></td><td style="text-align: center;"><strong>12 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>4</strong></td><td style="text-align: center;"><strong>RAM</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/ram-teamgroup-t-force-vulcan-z-16gb-red-3600">32GB DDR4 3600 MHz(2x16G)</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>5</strong></td><td style="text-align: center;"><strong>SSD</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/o-cung-ssd-lexar-nm620-512gb">LEXARNM620 512GB M.2 2280 PCIe 3.0x4 - RW 3500MB/s</a></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>6</strong></td><td style="text-align: center;"><span style="color: #000000;"><strong>VGA</strong></span></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vga-palit-geforce-rtx2060-super-dual-8gb-gddr6">PALIT GEFORCE RTX2060 SUPER DUAL 8GB GDDR6 256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>7</strong></td><td style="text-align: center;"><strong>PSU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/nguon-asus-tuf-gaming-750w">ASUS TUFGAMING 750W - 80 PLUS BRONZE</a></strong></td><td style="text-align: center;"><strong>72 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>8</strong></td><td style="text-align: center;"><strong>CASE</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vo-case-xigmatek-anubis-pro-4fx">XIGMATEK ANUBIS PRO 4FX - 4FAN</ahref=></strong></td><td style="text-align: center;"> </td></tr></tbody></table>',
|
||||||
|
}, {
|
||||||
|
productId: 7,
|
||||||
|
product_name: "HHPC ADOBE i7 13700KF | 32G | RTX 2060 SUPER 8G | 256 bit | GDDR6",
|
||||||
|
image: "https://hoanghapccdn.com/media/product/250_3756_pc_anubius_pro_elite_360_v3_black_ha4.jpg",
|
||||||
|
price: 26390000,
|
||||||
|
starting_price: 16390000,
|
||||||
|
from_time: 1703350800000,
|
||||||
|
to_time: 1703955600000,
|
||||||
|
status: 'coming',
|
||||||
|
specifications: '<table><tbody><tr><td style="text-align: center;"><strong>STT</strong></td><td style="text-align: center;"><strong>MÃ HÀNG</strong></td><td style="text-align: center;"><strong>TÊN HÀNG</strong></td><td style="text-align: center;"><strong>THỜI HẠN BẢO HÀNH</strong></td></tr><tr><td style="text-align: center;"><strong>1</strong></td><td style="text-align: center;"><strong>CPU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/cpu-intel-core-i7-13700kf">INTEL COREi7 13700KF up 5.4GHz | 16 CORE | 24 THREAD</a> </strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>2</strong></td><td style="text-align: center;"><strong>MAIN</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/mainboard-asrock-z690-steel-legend">ASROCK Z690 STEELLEGEND DDR4</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>3</strong></td><td style="text-align: center;"><strong>TẢN NHIỆT</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/cooler-master-masterliquid-360l-core-argb">COOLER MASTER MASTERLIQUIDML360L CORE ARGB</ahref=></strong></td><td style="text-align: center;"><strong>12 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>4</strong></td><td style="text-align: center;"><strong>RAM</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/ram-teamgroup-t-force-vulcan-z-16gb-red-3600">32GB DDR4 3600 MHz(2x16G)</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>5</strong></td><td style="text-align: center;"><strong>SSD</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/o-cung-ssd-lexar-nm620-512gb">LEXARNM620 512GB M.2 2280 PCIe 3.0x4 - RW 3500MB/s</a></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>6</strong></td><td style="text-align: center;"><span style="color: #000000;"><strong>VGA</strong></span></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vga-palit-geforce-rtx2060-super-dual-8gb-gddr6">PALIT GEFORCE RTX2060 SUPER DUAL 8GB GDDR6 256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>7</strong></td><td style="text-align: center;"><strong>PSU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/nguon-asus-tuf-gaming-750w">ASUS TUFGAMING 750W - 80 PLUS BRONZE</a></strong></td><td style="text-align: center;"><strong>72 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>8</strong></td><td style="text-align: center;"><strong>CASE</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vo-case-xigmatek-anubis-pro-4fx">XIGMATEK ANUBIS PRO 4FX - 4FAN</ahref=></strong></td><td style="text-align: center;"> </td></tr></tbody></table>',
|
||||||
|
}, {
|
||||||
|
productId: 8,
|
||||||
|
product_name: "Bàn phím cơ Gaming MSI Vigor GK50 Elite Black",
|
||||||
|
image: "https://hoanghapccdn.com/media/product/4807_msi_vigor_gk50_elite_black_ha1.jpg",
|
||||||
|
price: 1890000,
|
||||||
|
starting_price: 890000,
|
||||||
|
from_time: 1703264400000,
|
||||||
|
to_time: 1703215914798,
|
||||||
|
status: 'ended',
|
||||||
|
specifications: '<table><tbody><tr><td style="text-align: center;"><strong>STT</strong></td><td style="text-align: center;"><strong>MÃ HÀNG</strong></td><td style="text-align: center;"><strong>TÊN HÀNG</strong></td><td style="text-align: center;"><strong>THỜI HẠN BẢO HÀNH</strong></td></tr><tr><td style="text-align: center;"><strong>1</strong></td><td style="text-align: center;"><strong>CPU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/cpu-intel-core-i7-13700kf">INTEL COREi7 13700KF up 5.4GHz | 16 CORE | 24 THREAD</a> </strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>2</strong></td><td style="text-align: center;"><strong>MAIN</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/mainboard-asrock-z690-steel-legend">ASROCK Z690 STEELLEGEND DDR4</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>3</strong></td><td style="text-align: center;"><strong>TẢN NHIỆT</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/cooler-master-masterliquid-360l-core-argb">COOLER MASTER MASTERLIQUIDML360L CORE ARGB</ahref=></strong></td><td style="text-align: center;"><strong>12 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>4</strong></td><td style="text-align: center;"><strong>RAM</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/ram-teamgroup-t-force-vulcan-z-16gb-red-3600">32GB DDR4 3600 MHz(2x16G)</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>5</strong></td><td style="text-align: center;"><strong>SSD</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/o-cung-ssd-lexar-nm620-512gb">LEXARNM620 512GB M.2 2280 PCIe 3.0x4 - RW 3500MB/s</a></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>6</strong></td><td style="text-align: center;"><span style="color: #000000;"><strong>VGA</strong></span></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vga-palit-geforce-rtx2060-super-dual-8gb-gddr6">PALIT GEFORCE RTX2060 SUPER DUAL 8GB GDDR6 256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>7</strong></td><td style="text-align: center;"><strong>PSU</strong></td><td style="text-align: center;"><strong><a href="https://hoanghapc.vn/nguon-asus-tuf-gaming-750w">ASUS TUFGAMING 750W - 80 PLUS BRONZE</a></strong></td><td style="text-align: center;"><strong>72 THÁNG</strong></td></tr><tr><td style="text-align: center;"><strong>8</strong></td><td style="text-align: center;"><strong>CASE</strong></td><td style="text-align: center;"><strong><ahref="https://hoanghapc.vn/vo-case-xigmatek-anubis-pro-4fx">XIGMATEK ANUBIS PRO 4FX - 4FAN</ahref=></strong></td><td style="text-align: center;"> </td></tr></tbody></table>',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const du_lieu_thongtindaugia: thongtinkhachhangdaugia[] = [
|
||||||
|
{
|
||||||
|
productId: 1,
|
||||||
|
listUser: [
|
||||||
|
{
|
||||||
|
userName: 'Mai phương',
|
||||||
|
price: 450000,
|
||||||
|
time: 1703132219576,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
userName: 'Quang Đỗ',
|
||||||
|
price: 360000,
|
||||||
|
time: 1703132219576,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
40
src/detail.ts
Normal file
40
src/detail.ts
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
async function get_sp_tu_api(): Promise<ProductInfo[]> {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
return resolve(listproduct_mau);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
async function show_info_product() {
|
||||||
|
const lay_thongtin_sp: ProductInfo[] = await get_sp_tu_api();
|
||||||
|
|
||||||
|
// code hien thi danh sach dang dien ra
|
||||||
|
show_product_detail(lay_thongtin_sp);
|
||||||
|
}
|
||||||
|
|
||||||
|
function GetURLParameter(sParam: string, url: string) {
|
||||||
|
var url_decode = decodeURIComponent(url);
|
||||||
|
var sPageURL = url_decode;
|
||||||
|
var sURLVariables = sPageURL.split('?');
|
||||||
|
for (var i = 0; i < sURLVariables.length; i++) {
|
||||||
|
var sParameterName = sURLVariables[i].split('=');
|
||||||
|
if (sParameterName[0] == sParam) {
|
||||||
|
return sParameterName[1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function show_product_detail(lay_thongtin_sp: ProductInfo[]) {
|
||||||
|
const IdProduct: number = Number(GetURLParameter('id', window.location.href));
|
||||||
|
|
||||||
|
|
||||||
|
lay_thongtin_sp
|
||||||
|
.filter((product: ProductInfo) => product.productId == IdProduct)
|
||||||
|
.forEach(function (product, keyIndex) {
|
||||||
|
console.log(product)
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
show_info_product()
|
||||||
140
src/main.ts
Normal file
140
src/main.ts
Normal file
@@ -0,0 +1,140 @@
|
|||||||
|
|
||||||
|
async function goi_sp_tu_api(): Promise<ProductInfo[]> {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
return resolve(listproduct_mau);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
async function hienthi_sp() {
|
||||||
|
const lay_sp_tu_api: ProductInfo[] = await goi_sp_tu_api();
|
||||||
|
|
||||||
|
// code hien thi danh sach dang dien ra
|
||||||
|
// Usage example:
|
||||||
|
showListProductHome(lay_sp_tu_api, 'started', 'js-holder-list-started');
|
||||||
|
showListProductHome(lay_sp_tu_api, 'coming', 'js-holder-list-coming');
|
||||||
|
showListProductHome(lay_sp_tu_api, 'ended', 'js-holder-list-ended');
|
||||||
|
}
|
||||||
|
|
||||||
|
function showListProductHome(lay_sp_tu_api: ProductInfo[], status: string, holderId: string) {
|
||||||
|
const html: string[] = [];
|
||||||
|
const holder = document.getElementById(holderId);
|
||||||
|
|
||||||
|
lay_sp_tu_api
|
||||||
|
.filter((product: ProductInfo) => product.status == status)
|
||||||
|
.forEach(function (product, keyIndex) {
|
||||||
|
html.push(
|
||||||
|
xayhtml(product)
|
||||||
|
);
|
||||||
|
if (status != 'ended' || product.to_time > product.from_time) {
|
||||||
|
const countdownTime = (status == 'started') ? product.to_time : product.from_time;
|
||||||
|
countDown(`js-deal-time-${product.productId}`, countdownTime);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (holder) {
|
||||||
|
holder.innerHTML = html.join('');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function xayhtml(product: ProductInfo) {
|
||||||
|
var Htmlcheckstatus: string = ''
|
||||||
|
if (product.status == 'started') {
|
||||||
|
Htmlcheckstatus = `<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Còn lại:</div>
|
||||||
|
<div class="product-time-holder js-deal-time-${product.productId}" data-time="${product.to_time}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="/auction_program/product-detail.html?id=${product.productId}" class="btn-auction">Đấu giá ngay</a>`;
|
||||||
|
} else if (product.status == 'coming') {
|
||||||
|
Htmlcheckstatus = `<div class="deal-time-holder d-flex align-items space-center">
|
||||||
|
<div class="txt">Bắt đầu sau:</div>
|
||||||
|
<div class="product-time-holder js-deal-time-${product.productId}" data-time="${product.from_time}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="/auction_program/product-detail.html?id=${product.productId}" class="btn-auction">Xem chi tiết</a>`;
|
||||||
|
} else if (product.to_time < Date.now()) {
|
||||||
|
Htmlcheckstatus = `<div class="starting-price">Thắng cuộc ${formatPrice(product.starting_price)}<u>đ</u></div>
|
||||||
|
<div class="deal-time-holder d-flex align-items space-center end">
|
||||||
|
<div class="txt">Đã kết thúc</div>
|
||||||
|
</div>
|
||||||
|
<a href="/auction_program/product-detail.html?id=${product.productId}" class="btn-auction">Xem chi tiết</a>`;
|
||||||
|
}
|
||||||
|
return `<div class="product-item">
|
||||||
|
<a href="/product-detail.html?id=${product.productId}" class="product-image">
|
||||||
|
<img src="${product.image}" alt="${product.product_name}">
|
||||||
|
</a>
|
||||||
|
<div class="info-product">
|
||||||
|
<a href="" class="product-name line-clamp-2">${product.product_name}</a>
|
||||||
|
<div class="product-cost">
|
||||||
|
Giá gốc: ${formatPrice(product.price)}đ
|
||||||
|
</div>
|
||||||
|
${Htmlcheckstatus}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
|
||||||
|
function formatPrice(price: number) {
|
||||||
|
var b = price.toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1.").toString();
|
||||||
|
var len = b.length;
|
||||||
|
b = b.substring(0, len - 3);
|
||||||
|
return b;
|
||||||
|
}
|
||||||
|
|
||||||
|
function countDown(iid: string, endTime: number): void {
|
||||||
|
|
||||||
|
const updateCountdown = () => {
|
||||||
|
const now: number = Date.now();
|
||||||
|
const distance: number = endTime - now;
|
||||||
|
|
||||||
|
if (distance > 0) {
|
||||||
|
const [days, hours, minutes, seconds] = getTimeComponents(distance);
|
||||||
|
displayCountdown(iid, days, hours, minutes, seconds);
|
||||||
|
} else {
|
||||||
|
clearInterval(timer);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Initial update to avoid delay
|
||||||
|
updateCountdown();
|
||||||
|
|
||||||
|
const timer: NodeJS.Timeout = setInterval(updateCountdown, 1000);
|
||||||
|
}
|
||||||
|
|
||||||
|
function getTimeComponents(distance: number): [number, number, number, number] {
|
||||||
|
const days: number = Math.floor(distance / (1000 * 60 * 60 * 24));
|
||||||
|
const hours: number = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
|
||||||
|
const minutes: number = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
|
||||||
|
const seconds: number = Math.floor((distance % (1000 * 60)) / 1000);
|
||||||
|
|
||||||
|
return [days, hours, minutes, seconds];
|
||||||
|
}
|
||||||
|
|
||||||
|
function displayCountdown(iid: string, days: number, hours: number, minutes: number, seconds: number): void {
|
||||||
|
const element: HTMLElement | null = document.querySelector(`.${iid}`);
|
||||||
|
if (element) {
|
||||||
|
if (days > 0) {
|
||||||
|
element.innerHTML = `
|
||||||
|
<div class='item-time'><b>${formatTimeComponent(days)}</b></div>
|
||||||
|
<div class='item-time'><b>${formatTimeComponent(hours)}</b></div>
|
||||||
|
<div class='item-time'><b>${formatTimeComponent(minutes)}</b></div>
|
||||||
|
<div class='item-time'><b>${formatTimeComponent(seconds)}</b></div>`;
|
||||||
|
} else {
|
||||||
|
element.innerHTML = `
|
||||||
|
<div class='item-time'><b>${formatTimeComponent(hours)}</b></div>
|
||||||
|
<div class='item-time'><b>${formatTimeComponent(minutes)}</b></div>
|
||||||
|
<div class='item-time'><b>${formatTimeComponent(seconds)}</b></div>`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function formatTimeComponent(component: number): string {
|
||||||
|
return component <= 9 ? '0' + component : component.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
hienthi_sp();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user