up
This commit is contained in:
614
assets/css/style-global-mb.css
Normal file
614
assets/css/style-global-mb.css
Normal file
@@ -0,0 +1,614 @@
|
||||
@import url("https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
|
||||
|
||||
/* thay đổi màu sắc */
|
||||
:root {
|
||||
--main-color: #166dd8; /* màu chính */
|
||||
--color-bg-title-1: #ea3e00; /* màu nền chữ đỏ */
|
||||
--color-bg-title-2: #f1b510; /* màu nền chữ vàng */
|
||||
--color-box-auction: #166dd8; /* màu nền đấu giá kịch tính */
|
||||
--color-bg-footer: #110e83; /* màu nền footer */
|
||||
--bg-header: #166dd8; /* màu nền header */
|
||||
--bg-top-auction: #ea3e00; /* màu nền tiêu đề top đấu giá sôi động */
|
||||
--bg-list-auction: #166dd8; /* màu nền danh sách đấu giá */
|
||||
--color-list-auction: #f1b510; /* màu nền tiều đề danh sách đấu giá */
|
||||
--bg-deal: #ea3e00; /* màu nền box deal */
|
||||
--border-faq: #110e83; /* màu border câu hỏi thường gặp */
|
||||
--color-faq: #110e83; /* màu tiêu đề câu hỏi thường gặp */
|
||||
--title-faq: #f8f8f8; /* màu tiêu đề faq */
|
||||
--bg-time-auction: #166dd8; /* màu nền ngày hội đấu giá */
|
||||
--bg-timeout-detail: #ea3e00; /* màu nền thời gian đếm ngược đấu giá */
|
||||
--bg-user-win: #ffe0ac; /* màu nền người chiến thắng đấu giá */
|
||||
--bg-btn-auction: #f00000; /* màu nền nút tham gia đấu giá */
|
||||
--bg-time-deal: #ee4d2d; /* màu nền thời gian đếm ngược deal */
|
||||
--bg-btn-deal: #166dd8; /* màu nền nút mua sp deal */
|
||||
--bg-list-deal-ongoing: #ee4d2d; /* màu nền danh sách sản phẩm đang diễn ra chi tiết deal */
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background-color: #f5f5f5;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width: 7px;
|
||||
height: 5px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #a4a4a4;
|
||||
border-radius: 20px;
|
||||
background-image: -webkit-gradient(
|
||||
linear,
|
||||
0 0,
|
||||
0 100%,
|
||||
color-stop(0.7, #a4a4a4),
|
||||
color-stop(0.5, transparent),
|
||||
to(transparent)
|
||||
);
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-family: "Kanit", sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
color: #222;
|
||||
font-family: "Kanit", sans-serif;
|
||||
font-size: 15px;
|
||||
margin: 0 auto;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
html {
|
||||
font-size: 100%;
|
||||
font-family: "Kanit", sans-serif;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.clearfix {
|
||||
content: "";
|
||||
clear: both;
|
||||
}
|
||||
|
||||
li,
|
||||
ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.ol,
|
||||
.ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.container-mb {
|
||||
padding: 0;
|
||||
max-width: 430px;
|
||||
margin: 0 auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
.container {
|
||||
padding: 0 10px;
|
||||
max-width: 100%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.icon_auction {
|
||||
background: url(../images/icon-auction.png) no-repeat;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
display: block;
|
||||
background-size: contain;
|
||||
}
|
||||
.icon-deal {
|
||||
display: block;
|
||||
width: 29px;
|
||||
height: 29px;
|
||||
background: url(../images/icon-flash.png) no-repeat;
|
||||
background-size: contain;
|
||||
}
|
||||
|
||||
.icon-star {
|
||||
background: url(../images/icon-star.png) no-repeat;
|
||||
width: 80px;
|
||||
height: 12px;
|
||||
display: block;
|
||||
background-size: 100%;
|
||||
}
|
||||
.icon-star.star5 {
|
||||
background-position: 0 0;
|
||||
}
|
||||
.icon-star.star4 {
|
||||
background-position: 0 -17px;
|
||||
}
|
||||
.icon-star.star3 {
|
||||
background-position: 0 -34px;
|
||||
}
|
||||
.icon-star.star2 {
|
||||
background-position: 0 -50px;
|
||||
}
|
||||
.icon-star.star1 {
|
||||
background-position: 0 -67px;
|
||||
}
|
||||
.icon-star.star0 {
|
||||
background-position: 0 -84px;
|
||||
}
|
||||
.icon.auction {
|
||||
background: url(../images/icon-auction.png) no-repeat;
|
||||
background-size: contain;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
display: block;
|
||||
margin-right: 3px;
|
||||
}
|
||||
.icon.time {
|
||||
background: url(../images/icon-fire-time.png) no-repeat;
|
||||
background-size: contain;
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
.icon-cup {
|
||||
background: url(../images/icon-cup.png) no-repeat;
|
||||
background-size: contain;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
display: block;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.saleoff {
|
||||
width: 42px;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
padding-left: 10px;
|
||||
background: #f00000;
|
||||
font-size: 12px;
|
||||
color: #fff;
|
||||
border-radius: 5px;
|
||||
font-weight: 600;
|
||||
position: relative;
|
||||
}
|
||||
.saleoff::before {
|
||||
position: absolute;
|
||||
left: -6px;
|
||||
top: 0;
|
||||
width: 15px;
|
||||
height: 20px;
|
||||
content: "";
|
||||
background: url(../images/icon-flash.png) no-repeat;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.background-blue {
|
||||
background: var(--main-color) !important;
|
||||
}
|
||||
.background-red {
|
||||
background: var(var(--color-bg-title-1)) !important;
|
||||
}
|
||||
.background-yellow {
|
||||
background: var(var(--color-bg-title-2)) !important;
|
||||
}
|
||||
.background-footer {
|
||||
background: var(--color-bg-footer) !important;
|
||||
}
|
||||
|
||||
.hover\:text-blue:hover {
|
||||
color: var(--main-color) !important;
|
||||
}
|
||||
.hover\:background-blue:hover {
|
||||
background: var(--main-color) !important;
|
||||
}
|
||||
.hover\:background-yellow:hover {
|
||||
background: var(var(--color-bg-title-2)) !important;
|
||||
}
|
||||
|
||||
.hover\:background-white:hover {
|
||||
background: #fff !important;
|
||||
}
|
||||
|
||||
.hover\:text-yellow:hover {
|
||||
color: var(var(--color-bg-title-2)) !important;
|
||||
}
|
||||
|
||||
.hover\:text-red:hover {
|
||||
color: #f00000 !important;
|
||||
}
|
||||
.hover\:border-red:hover {
|
||||
border: 1px solid #f00000 !important;
|
||||
}
|
||||
|
||||
.hover\:border-blue:hover {
|
||||
border: 1px solid var(--main-color) !important;
|
||||
}
|
||||
|
||||
.hover\:border-yellow:hover {
|
||||
border: 1px solid var(var(--color-bg-title-2)) !important;
|
||||
}
|
||||
|
||||
.text-red {
|
||||
color: #f00000;
|
||||
}
|
||||
|
||||
.btn-add {
|
||||
width: 140px;
|
||||
height: 32px;
|
||||
line-height: 30px;
|
||||
text-align: center;
|
||||
background: #f00000;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border-radius: 26px;
|
||||
display: block;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.btn-add:hover {
|
||||
border: 1px solid #f00000;
|
||||
color: #f00000;
|
||||
background: #fff;
|
||||
}
|
||||
.btn-add.continue {
|
||||
background: #5f00b1;
|
||||
}
|
||||
|
||||
.btn-add.continue:hover {
|
||||
border: 1px solid #5f00b1;
|
||||
color: #5f00b1;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.btn-add.coming {
|
||||
background: #afafaf;
|
||||
}
|
||||
.btn-add.coming:hover {
|
||||
border: 1px solid #afafaf;
|
||||
color: #afafaf;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.header.header-fixed {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.swiper-pagination {
|
||||
bottom: 0 !important;
|
||||
}
|
||||
.swiper-pagination-bullet {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
.swiper-pagination-bullet.swiper-pagination-bullet-active {
|
||||
background: var(var(--color-bg-title-2));
|
||||
}
|
||||
|
||||
.box-time {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.box-time .item-time {
|
||||
margin-left: 12px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
.box-time .item-time b {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
line-height: 16px;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-weight: 700;
|
||||
position: relative;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.box-time .item-time b::after {
|
||||
content: ":";
|
||||
position: absolute;
|
||||
right: -8px;
|
||||
color: #fff;
|
||||
top: 0;
|
||||
}
|
||||
.box-time .item-time:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
.box-time .item-time:last-child b {
|
||||
margin: 0;
|
||||
}
|
||||
.box-time .item-time:last-child b::after {
|
||||
content: none;
|
||||
}
|
||||
|
||||
.item-tab.active {
|
||||
background: var(--main-color);
|
||||
color: #fff;
|
||||
}
|
||||
.item-tab:hover {
|
||||
background: var(--main-color);
|
||||
color: #fff;
|
||||
}
|
||||
.tab-list .box-time b {
|
||||
background: #000;
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
line-height: 26px;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-weight: 700;
|
||||
position: relative;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.btn-more-all {
|
||||
width: 110px;
|
||||
height: 32px;
|
||||
line-height: 31px;
|
||||
display: block;
|
||||
border-radius: 5px;
|
||||
border: 1px solid #fff;
|
||||
margin: 0 auto auto auto;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
}
|
||||
.btn-more-all:hover {
|
||||
background: #fff;
|
||||
color: #ee4d2d;
|
||||
}
|
||||
.box-faq .item.active .content {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.page-auction .item-tab.active,
|
||||
.page-auction .item-tab:hover {
|
||||
background: #fff;
|
||||
color: var(--main-color);
|
||||
}
|
||||
.page-detail .swiper-pagination {
|
||||
width: 41px !important;
|
||||
height: 28px;
|
||||
background: #0000004d;
|
||||
border-radius: 14px;
|
||||
line-height: 28px;
|
||||
text-align: center;
|
||||
display: block;
|
||||
right: 10px;
|
||||
bottom: 10px;
|
||||
left: unset !important;
|
||||
}
|
||||
.page-detail .swiper-pagination {
|
||||
color: #fff !important;
|
||||
}
|
||||
.active {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
.tab-history .item-tab.active,
|
||||
.tab-history .item-tab:hover {
|
||||
background: #fff;
|
||||
box-shadow: 0px 4px 4px 0px #00000040;
|
||||
color: #000;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.table-tab thead {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.table-tab th {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
width: calc(100% / 3);
|
||||
height: 35px;
|
||||
background: #fff;
|
||||
border-bottom: 1px solid #dfdfdf;
|
||||
font-size: 13px;
|
||||
}
|
||||
.table-tab td {
|
||||
font-size: 13px;
|
||||
width: calc(100% / 3);
|
||||
height: 35px;
|
||||
border-bottom: 1px solid #dfdfdf;
|
||||
}
|
||||
|
||||
.overlay {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
z-index: 999;
|
||||
display: none;
|
||||
}
|
||||
.overlay.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.box-popup {
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
border: 2px solid var(var(--color-bg-title-2));
|
||||
width: 97%;
|
||||
border-radius: 30px;
|
||||
padding: 15px;
|
||||
background: #fff;
|
||||
z-index: 999;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.input-checkbox {
|
||||
margin-top: 12px;
|
||||
display: block;
|
||||
position: relative;
|
||||
padding-left: 30px;
|
||||
margin-bottom: 12px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
.input-checkbox input {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
height: 0;
|
||||
width: 0;
|
||||
}
|
||||
.input-checkbox input:checked ~ .checkmark {
|
||||
background-color: #3194fc;
|
||||
}
|
||||
.input-checkbox .checkmark {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
background-color: #eee;
|
||||
border-radius: 15px;
|
||||
}
|
||||
.input-checkbox .checkmark:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
display: block;
|
||||
}
|
||||
.input-checkbox:hover input ~ .checkmark {
|
||||
background-color: #3194fc;
|
||||
}
|
||||
.input-checkbox input:checked ~ .checkmark:after {
|
||||
display: block;
|
||||
}
|
||||
.input-checkbox .checkmark:after {
|
||||
left: 8px;
|
||||
top: 4px;
|
||||
width: 5px;
|
||||
height: 10px;
|
||||
border: solid white;
|
||||
border-width: 0 3px 3px 0;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
.radio-checkbox {
|
||||
display: block;
|
||||
position: relative;
|
||||
padding-left: 30px;
|
||||
cursor: pointer;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
user-select: none;
|
||||
line-height: 20px;
|
||||
}
|
||||
.radio-checkbox input {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
.radio-checkbox .checkmark {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
background-color: #eee;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.radio-checkbox:hover input ~ .checkmark {
|
||||
background-color: #ccc;
|
||||
}
|
||||
.radio-checkbox input:checked ~ .checkmark {
|
||||
background-color: var(--main-color);
|
||||
}
|
||||
.radio-checkbox .checkmark:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
display: none;
|
||||
}
|
||||
.radio-checkbox input:checked ~ .checkmark:after {
|
||||
display: block;
|
||||
}
|
||||
.radio-checkbox .checkmark:after {
|
||||
top: 6px;
|
||||
left: 5.5px;
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
border-radius: 50%;
|
||||
background: white;
|
||||
}
|
||||
|
||||
.popup-success::before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
background: url(../images/background-firework.png) no-repeat;
|
||||
background-size: contain;
|
||||
width: 100px;
|
||||
height: 85px;
|
||||
left: 0;
|
||||
top: 20px;
|
||||
}
|
||||
.popup-success::after {
|
||||
position: absolute;
|
||||
content: "";
|
||||
background: url(../images/background-firework.png) no-repeat;
|
||||
background-size: contain;
|
||||
width: 100px;
|
||||
height: 85px;
|
||||
right: 0;
|
||||
top: 20px;
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
.table-history thead {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
}
|
||||
.table-history th {
|
||||
background: #e2e2e2;
|
||||
height: 40px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
.table-history td {
|
||||
height: 40px;
|
||||
padding: 5px;
|
||||
border-bottom: 0.5px solid #e2e2e2;
|
||||
}
|
||||
.table-history .status.ship {
|
||||
color: #17c967;
|
||||
}
|
||||
.table-history .status.cancel {
|
||||
color: #d00000;
|
||||
}
|
||||
.table-history .status.processing {
|
||||
color: #f48320;
|
||||
}
|
||||
.table-history .status.success {
|
||||
color: #0caaf9;
|
||||
}
|
||||
622
assets/css/style-global.css
Normal file
622
assets/css/style-global.css
Normal file
@@ -0,0 +1,622 @@
|
||||
@import url("https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
|
||||
|
||||
/* thay đổi màu sắc */
|
||||
:root {
|
||||
--main-color: #166dd8; /* màu chính */
|
||||
--color-bg-title-1: #ea3e00; /* màu nền chữ đỏ */
|
||||
--color-bg-title-2: #f1b510; /* màu nền chữ vàng */
|
||||
--color-box-auction: #166dd8; /* màu nền đấu giá kịch tính */
|
||||
--color-bg-footer: #110e83; /* màu nền footer */
|
||||
--bg-header: #166dd8; /* màu nền header */
|
||||
--bg-top-auction: #ea3e00; /* màu nền tiêu đề top đấu giá sôi động */
|
||||
--bg-list-auction: #166dd8; /* màu nền danh sách đấu giá */
|
||||
--color-list-auction: #f1b510; /* màu nền tiều đề danh sách đấu giá */
|
||||
--bg-deal: #ea3e00; /* màu nền box deal */
|
||||
--border-faq: #110e83; /* màu border câu hỏi thường gặp */
|
||||
--color-faq: #110e83; /* màu tiêu đề câu hỏi thường gặp */
|
||||
--title-faq: #f8f8f8; /* màu tiêu đề faq */
|
||||
--bg-time-auction: #166dd8; /* màu nền ngày hội đấu giá */
|
||||
--bg-timeout-detail: #ea3e00; /* màu nền thời gian đếm ngược đấu giá */
|
||||
--bg-user-win: #ffe0ac; /* màu nền người chiến thắng đấu giá */
|
||||
--bg-btn-auction: #f00000; /* màu nền nút tham gia đấu giá */
|
||||
--bg-time-deal: #ee4d2d; /* màu nền thời gian đếm ngược deal */
|
||||
--bg-btn-deal: #166dd8; /* màu nền nút mua sp deal */
|
||||
--bg-list-deal-ongoing: #ee4d2d; /* màu nền danh sách sản phẩm đang diễn ra chi tiết deal */
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background-color: #f5f5f5;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width: 7px;
|
||||
height: 5px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #a4a4a4;
|
||||
border-radius: 20px;
|
||||
background-image: -webkit-gradient(
|
||||
linear,
|
||||
0 0,
|
||||
0 100%,
|
||||
color-stop(0.7, #a4a4a4),
|
||||
color-stop(0.5, transparent),
|
||||
to(transparent)
|
||||
);
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-family: "Kanit", sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
color: #222;
|
||||
font-family: "Kanit", sans-serif;
|
||||
font-size: 15px;
|
||||
margin: 0 auto;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
html {
|
||||
font-size: 100%;
|
||||
font-family: "Kanit", sans-serif;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.clearfix {
|
||||
content: "";
|
||||
clear: both;
|
||||
}
|
||||
|
||||
li,
|
||||
ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.ol,
|
||||
.ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.container {
|
||||
padding: 0 10px;
|
||||
width: 1210px !important;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.icon_auction {
|
||||
background: url(../images/icon-auction.png) no-repeat;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
display: block;
|
||||
background-size: contain;
|
||||
}
|
||||
.icon-deal {
|
||||
display: block;
|
||||
width: 29px;
|
||||
height: 29px;
|
||||
background: url(../images/icon-flash.png) no-repeat;
|
||||
background-size: contain;
|
||||
}
|
||||
|
||||
.icon-star {
|
||||
background: url(../images/icon-star.png) no-repeat;
|
||||
width: 80px;
|
||||
height: 12px;
|
||||
display: block;
|
||||
background-size: 100%;
|
||||
}
|
||||
.icon-star.star5 {
|
||||
background-position: 0 0;
|
||||
}
|
||||
.icon-star.star4 {
|
||||
background-position: 0 -17px;
|
||||
}
|
||||
.icon-star.star3 {
|
||||
background-position: 0 -34px;
|
||||
}
|
||||
.icon-star.star2 {
|
||||
background-position: 0 -50px;
|
||||
}
|
||||
.icon-star.star1 {
|
||||
background-position: 0 -67px;
|
||||
}
|
||||
.icon-star.star0 {
|
||||
background-position: 0 -84px;
|
||||
}
|
||||
.icon.auction {
|
||||
background: url(../images/icon-auction.png) no-repeat;
|
||||
background-size: contain;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
display: block;
|
||||
margin-right: 3px;
|
||||
}
|
||||
.icon.time {
|
||||
background: url(../images/icon-fire-time.png) no-repeat;
|
||||
background-size: contain;
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
.icon-cup {
|
||||
background: url(../images/icon-cup.png) no-repeat;
|
||||
background-size: contain;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
display: block;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.background-blue {
|
||||
background: var(--main-color) !important;
|
||||
}
|
||||
.background-red {
|
||||
background: var(--color-bg-title-1) !important;
|
||||
}
|
||||
.background-yellow {
|
||||
background: var(--color-bg-title-2) !important;
|
||||
}
|
||||
.background-footer {
|
||||
background: var(--color-bg-footer) !important;
|
||||
}
|
||||
|
||||
.hover\:text-blue:hover {
|
||||
color: var(--main-color) !important;
|
||||
}
|
||||
.hover\:background-blue:hover {
|
||||
background: var(--main-color) !important;
|
||||
}
|
||||
.hover\:background-yellow:hover {
|
||||
background: var(--color-bg-title-2) !important;
|
||||
}
|
||||
|
||||
.hover\:background-white:hover {
|
||||
background: #fff !important;
|
||||
}
|
||||
|
||||
.hover\:text-yellow:hover {
|
||||
color: var(--color-bg-title-2) !important;
|
||||
}
|
||||
|
||||
.hover\:text-red:hover {
|
||||
color: #f00000 !important;
|
||||
}
|
||||
.hover\:border-red:hover {
|
||||
border: 1px solid #f00000 !important;
|
||||
}
|
||||
|
||||
.hover\:border-blue:hover {
|
||||
border: 1px solid var(--main-color) !important;
|
||||
}
|
||||
|
||||
.hover\:border-yellow:hover {
|
||||
border: 1px solid var(--color-bg-title-2) !important;
|
||||
}
|
||||
|
||||
.text-red {
|
||||
color: #f00000;
|
||||
}
|
||||
|
||||
.btn-add {
|
||||
width: 140px;
|
||||
height: 32px;
|
||||
line-height: 30px;
|
||||
text-align: center;
|
||||
background: #f00000;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border-radius: 26px;
|
||||
display: block;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.btn-add:hover {
|
||||
border: 1px solid #f00000;
|
||||
color: #f00000;
|
||||
background: #fff;
|
||||
}
|
||||
.btn-add.continue {
|
||||
background: #5f00b1;
|
||||
}
|
||||
|
||||
.btn-add.continue:hover {
|
||||
border: 1px solid #5f00b1;
|
||||
color: #5f00b1;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.box-time {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.box-time .item-time {
|
||||
margin-left: 12px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
.box-time .item-time b {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
line-height: 16px;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-weight: 700;
|
||||
position: relative;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.box-time .item-time b::after {
|
||||
content: ":";
|
||||
position: absolute;
|
||||
right: -8px;
|
||||
color: #fff;
|
||||
top: 0;
|
||||
}
|
||||
.box-time .item-time:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
.box-time .item-time:last-child b {
|
||||
margin: 0;
|
||||
}
|
||||
.box-time .item-time:last-child b::after {
|
||||
content: none;
|
||||
}
|
||||
|
||||
.tab-list .box-time b {
|
||||
background: #000;
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
line-height: 26px;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-weight: 700;
|
||||
position: relative;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.more-all {
|
||||
width: 110px;
|
||||
height: 32px;
|
||||
line-height: 31px;
|
||||
display: block;
|
||||
border-radius: 5px;
|
||||
border: 1px solid #fff;
|
||||
margin: 10px auto auto auto;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.more-all:hover {
|
||||
background: #fff;
|
||||
color: var(--main-color);
|
||||
}
|
||||
|
||||
.saleoff {
|
||||
width: 42px;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
padding-left: 10px;
|
||||
background: #f00000;
|
||||
font-size: 12px;
|
||||
color: #fff;
|
||||
border-radius: 5px;
|
||||
font-weight: 600;
|
||||
position: relative;
|
||||
}
|
||||
.saleoff::before {
|
||||
position: absolute;
|
||||
left: -6px;
|
||||
top: 0;
|
||||
width: 15px;
|
||||
height: 20px;
|
||||
content: "";
|
||||
background: url(../images/icon-flash.png) no-repeat;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.box-faq .item.active .content {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.box-thumbImage .swiper-button-next::after {
|
||||
font-size: 16px;
|
||||
color: #000;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.box-thumbImage .swiper-button-next {
|
||||
position: absolute;
|
||||
top: 468px;
|
||||
transform: rotate(90deg);
|
||||
left: 35%;
|
||||
}
|
||||
|
||||
.box-thumbImage .swiper-button-prev {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
transform: rotate(90deg);
|
||||
left: 35%;
|
||||
}
|
||||
|
||||
.box-thumbImage .swiper-button-prev::after {
|
||||
font-size: 16px;
|
||||
color: #000;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.box-thumbImage .swiper-slide {
|
||||
cursor: pointer;
|
||||
}
|
||||
.box-thumbImage img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.box-thumbImage .swiper-slide-thumb-active img {
|
||||
opacity: 1;
|
||||
border: 1px solid transparent;
|
||||
border-image: linear-gradient(
|
||||
359.53deg,
|
||||
#3935c8 82.81%,
|
||||
#1355f0 92%,
|
||||
#0caaf9 99.12%
|
||||
);
|
||||
border-image-slice: 1;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.item-tab.active {
|
||||
background: var(--main-color);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.item-tab:hover {
|
||||
background: var(--main-color);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.tab-history .item-tab.active,
|
||||
.tab-history .item-tab:hover {
|
||||
background: #fff;
|
||||
box-shadow: 0px 4px 4px 0px #00000040;
|
||||
color: #000;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.active {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
.table-tab thead {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.table-tab th {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
width: 30%;
|
||||
height: 35px;
|
||||
background: #fff;
|
||||
border-bottom: 1px solid #dfdfdf;
|
||||
}
|
||||
.table-tab td {
|
||||
width: 30%;
|
||||
height: 35px;
|
||||
border-bottom: 1px solid #dfdfdf;
|
||||
}
|
||||
|
||||
.overlay {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
z-index: 99;
|
||||
display: none;
|
||||
}
|
||||
.overlay.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.box-popup {
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
border: 2px solid var(--color-bg-title-2);
|
||||
width: 590px;
|
||||
border-radius: 30px;
|
||||
padding: 15px;
|
||||
background: #fff;
|
||||
z-index: 999;
|
||||
display: none;
|
||||
&.active {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.input-checkbox {
|
||||
margin-top: 12px;
|
||||
display: block;
|
||||
position: relative;
|
||||
padding-left: 30px;
|
||||
margin-bottom: 12px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
.input-checkbox input {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
height: 0;
|
||||
width: 0;
|
||||
}
|
||||
.input-checkbox input:checked ~ .checkmark {
|
||||
background-color: #3194fc;
|
||||
}
|
||||
.input-checkbox .checkmark {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
background-color: #eee;
|
||||
border-radius: 15px;
|
||||
}
|
||||
.input-checkbox .checkmark:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
display: block;
|
||||
}
|
||||
.input-checkbox:hover input ~ .checkmark {
|
||||
background-color: #3194fc;
|
||||
}
|
||||
.input-checkbox input:checked ~ .checkmark:after {
|
||||
display: block;
|
||||
}
|
||||
.input-checkbox .checkmark:after {
|
||||
left: 8px;
|
||||
top: 4px;
|
||||
width: 5px;
|
||||
height: 10px;
|
||||
border: solid white;
|
||||
border-width: 0 3px 3px 0;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
.radio-checkbox {
|
||||
display: block;
|
||||
position: relative;
|
||||
padding-left: 30px;
|
||||
cursor: pointer;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
user-select: none;
|
||||
line-height: 20px;
|
||||
}
|
||||
.radio-checkbox input {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
.radio-checkbox .checkmark {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
background-color: #eee;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.radio-checkbox:hover input ~ .checkmark {
|
||||
background-color: #ccc;
|
||||
}
|
||||
.radio-checkbox input:checked ~ .checkmark {
|
||||
background-color: var(--main-color);
|
||||
}
|
||||
.radio-checkbox .checkmark:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
display: none;
|
||||
}
|
||||
.radio-checkbox input:checked ~ .checkmark:after {
|
||||
display: block;
|
||||
}
|
||||
.radio-checkbox .checkmark:after {
|
||||
top: 6px;
|
||||
left: 5.5px;
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
border-radius: 50%;
|
||||
background: white;
|
||||
}
|
||||
|
||||
.popup-success::before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
background: url(../images/background-firework.png) no-repeat;
|
||||
background-size: contain;
|
||||
width: 120px;
|
||||
height: 85px;
|
||||
left: 0;
|
||||
top: 20px;
|
||||
}
|
||||
.popup-success::after {
|
||||
position: absolute;
|
||||
content: "";
|
||||
background: url(../images/background-firework.png) no-repeat;
|
||||
background-size: contain;
|
||||
width: 120px;
|
||||
height: 85px;
|
||||
right: 0;
|
||||
top: 20px;
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
.item-input.error .note-error {
|
||||
color: #f00000;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.table-history thead {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
}
|
||||
.table-history th {
|
||||
background: #e2e2e2;
|
||||
height: 40px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
.table-history td {
|
||||
height: 40px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
.table-history .status.ship {
|
||||
color: #17c967;
|
||||
}
|
||||
.table-history .status.cancel {
|
||||
color: #d00000;
|
||||
}
|
||||
.table-history .status.processing {
|
||||
color: #f48320;
|
||||
}
|
||||
.table-history .status.success {
|
||||
color: #0caaf9;
|
||||
}
|
||||
.tab-list.auction .item.active,
|
||||
.tab-list.auction .item:hover {
|
||||
background: var(--color-bg-title-2);
|
||||
display: flex !important;
|
||||
}
|
||||
@@ -13,7 +13,14 @@
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #a4a4a4;
|
||||
border-radius: 20px;
|
||||
background-image: -webkit-gradient(linear, 0 0, 0 100%, color-stop(0.7, #a4a4a4), color-stop(0.5, transparent), to(transparent));
|
||||
background-image: -webkit-gradient(
|
||||
linear,
|
||||
0 0,
|
||||
0 100%,
|
||||
color-stop(0.7, #a4a4a4),
|
||||
color-stop(0.5, transparent),
|
||||
to(transparent)
|
||||
);
|
||||
}
|
||||
|
||||
* {
|
||||
@@ -212,7 +219,7 @@ table {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
-o-object-fit: contain;
|
||||
object-fit: contain;
|
||||
object-fit: contain;
|
||||
transform: scale(1);
|
||||
transition: 0.3s;
|
||||
}
|
||||
@@ -333,7 +340,8 @@ table {
|
||||
background: #afafaf;
|
||||
color: #fff;
|
||||
}
|
||||
.box-list-auction .tab-list .item.active, .box-list-auction .tab-list .item:hover {
|
||||
.box-list-auction .tab-list .item.active,
|
||||
.box-list-auction .tab-list .item:hover {
|
||||
background: #f1b510;
|
||||
}
|
||||
.box-list-auction .tab-list .item p {
|
||||
@@ -439,7 +447,8 @@ table {
|
||||
background: #afafaf;
|
||||
color: #fff;
|
||||
}
|
||||
.box-deal-hot .tab-list .item.active, .box-deal-hot .tab-list .item:hover {
|
||||
.box-deal-hot .tab-list .item.active,
|
||||
.box-deal-hot .tab-list .item:hover {
|
||||
background: #166dd8;
|
||||
}
|
||||
.box-deal-hot .tab-list .item p {
|
||||
@@ -525,7 +534,7 @@ table {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
-o-object-fit: contain;
|
||||
object-fit: contain;
|
||||
object-fit: contain;
|
||||
transform: scale(1);
|
||||
transition: 0.3s;
|
||||
}
|
||||
@@ -811,7 +820,8 @@ table {
|
||||
background: #afafaf;
|
||||
color: #fff;
|
||||
}
|
||||
.page-auction .tab-list .item.active, .page-auction .tab-list .item:hover {
|
||||
.page-auction .tab-list .item.active,
|
||||
.page-auction .tab-list .item:hover {
|
||||
background: #f1b510;
|
||||
}
|
||||
.page-auction .tab-list .item p {
|
||||
@@ -873,7 +883,8 @@ table {
|
||||
display: block;
|
||||
color: #fff;
|
||||
}
|
||||
.paging .item.active, .paging .item:hover {
|
||||
.paging .item.active,
|
||||
.paging .item:hover {
|
||||
background: #f1b510;
|
||||
border: 1px solid #f1b510;
|
||||
}
|
||||
@@ -948,13 +959,23 @@ table {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
-o-object-fit: contain;
|
||||
object-fit: contain;
|
||||
object-fit: contain;
|
||||
}
|
||||
.page-detail .box-thumbImage .swiper-slide-thumb-active img {
|
||||
opacity: 1;
|
||||
border: 1px solid transparent;
|
||||
-o-border-image: linear-gradient(359.53deg, #3935c8 82.81%, #1355f0 92%, #0caaf9 99.12%);
|
||||
border-image: linear-gradient(359.53deg, #3935c8 82.81%, #1355f0 92%, #0caaf9 99.12%);
|
||||
-o-border-image: linear-gradient(
|
||||
359.53deg,
|
||||
#3935c8 82.81%,
|
||||
#1355f0 92%,
|
||||
#0caaf9 99.12%
|
||||
);
|
||||
border-image: linear-gradient(
|
||||
359.53deg,
|
||||
#3935c8 82.81%,
|
||||
#1355f0 92%,
|
||||
#0caaf9 99.12%
|
||||
);
|
||||
border-image-slice: 1;
|
||||
border-radius: 10px;
|
||||
}
|
||||
@@ -1243,7 +1264,8 @@ table {
|
||||
font-weight: 600;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.page-detail .box-info-product .item-tab.active, .page-detail .box-info-product .item-tab:hover {
|
||||
.page-detail .box-info-product .item-tab.active,
|
||||
.page-detail .box-info-product .item-tab:hover {
|
||||
background: #166dd8;
|
||||
color: #fff;
|
||||
}
|
||||
@@ -1262,7 +1284,7 @@ table {
|
||||
margin-right: 10px;
|
||||
height: 290px;
|
||||
-o-object-fit: contain;
|
||||
object-fit: contain;
|
||||
object-fit: contain;
|
||||
}
|
||||
.page-detail .box-info-product .content-tab .info ul {
|
||||
width: calc(100% - 300px);
|
||||
@@ -1437,7 +1459,7 @@ table {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
-o-object-fit: contain;
|
||||
object-fit: contain;
|
||||
object-fit: contain;
|
||||
display: block;
|
||||
}
|
||||
.box-review .info-cnt {
|
||||
@@ -1774,7 +1796,8 @@ table {
|
||||
height: 34px;
|
||||
line-height: 34px;
|
||||
}
|
||||
.box-history .tab-history .item-tab.active, .box-history .tab-history .item-tab:hover {
|
||||
.box-history .tab-history .item-tab.active,
|
||||
.box-history .tab-history .item-tab:hover {
|
||||
background: #fff;
|
||||
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2509803922);
|
||||
color: #000;
|
||||
@@ -2078,14 +2101,26 @@ table {
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
background: linear-gradient(90deg, #d00000 11.46%, #ff2929 29.26%, #eb2121 47.05%, #d00000 88.22%);
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
#d00000 11.46%,
|
||||
#ff2929 29.26%,
|
||||
#eb2121 47.05%,
|
||||
#d00000 88.22%
|
||||
);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
text-transform: uppercase;
|
||||
font-weight: 700;
|
||||
}
|
||||
.popup-success .note-title {
|
||||
background: linear-gradient(90deg, #d00000 11.46%, #ff2929 29.26%, #eb2121 47.05%, #d00000 88.22%);
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
#d00000 11.46%,
|
||||
#ff2929 29.26%,
|
||||
#eb2121 47.05%,
|
||||
#d00000 88.22%
|
||||
);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
font-size: 20px;
|
||||
@@ -2389,7 +2424,8 @@ table {
|
||||
.page-account .item-tab span {
|
||||
font-size: 13px;
|
||||
}
|
||||
.page-account .item-tab.active, .page-account .item-tab:hover {
|
||||
.page-account .item-tab.active,
|
||||
.page-account .item-tab:hover {
|
||||
background: #116dd8;
|
||||
color: #fff;
|
||||
}
|
||||
@@ -2532,7 +2568,8 @@ table {
|
||||
background: #afafaf;
|
||||
color: #fff;
|
||||
}
|
||||
.page-list-deal .tab-list .item.active, .page-list-deal .tab-list .item:hover {
|
||||
.page-list-deal .tab-list .item.active,
|
||||
.page-list-deal .tab-list .item:hover {
|
||||
background: #166dd8;
|
||||
}
|
||||
.page-list-deal .tab-list .item p {
|
||||
@@ -2862,4 +2899,4 @@ table {
|
||||
.popup-buy-success .content b {
|
||||
display: block;
|
||||
margin: 15px 0;
|
||||
}/*# sourceMappingURL=style.css.map */
|
||||
} /*# sourceMappingURL=style.css.map */
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 339 B After Width: | Height: | Size: 363 B |
157
assets/js/deal_detail.js
Normal file
157
assets/js/deal_detail.js
Normal file
@@ -0,0 +1,157 @@
|
||||
var swiper_thumb = new Swiper(".thumbImage", {
|
||||
spaceBetween: 10,
|
||||
slidesPerView: 4,
|
||||
direction: "vertical",
|
||||
loop: true,
|
||||
on: {
|
||||
init: (swiper) => {
|
||||
let totalGap = swiper.passedParams.spaceBetween * (swiper.passedParams.slidesPerView - 1);
|
||||
let containerHeight = swiper.passedParams.slidesPerView * swiper.slides[0].clientHeight + totalGap;
|
||||
swiper.el.style.height = containerHeight + 'px';
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
var swiper_big = new Swiper(".BigImage", {
|
||||
spaceBetween: 10,
|
||||
watchSlidesProgress: true,
|
||||
noSwiping: true,
|
||||
navigation: {
|
||||
nextEl: "#js-image-next",
|
||||
prevEl: "#js-image-prev",
|
||||
},
|
||||
thumbs: {
|
||||
swiper: swiper_thumb,
|
||||
},
|
||||
});
|
||||
|
||||
function addDealCart() {
|
||||
$('.box-popup').removeClass('active')
|
||||
$('.overlay').addClass('active')
|
||||
$('.popup-add-cart').addClass('active')
|
||||
}
|
||||
|
||||
function checkbuy() {
|
||||
var number_regex1 = /^[0]\d{9}$/i;
|
||||
var number_regex2 = /^[0]\d{10}$/i;
|
||||
var error = false;
|
||||
var name = $('#name').val();
|
||||
var $name = $('#name');
|
||||
var email = $('#email').val();
|
||||
var $email = $('#email');
|
||||
var phone = $('#phone').val();
|
||||
var $phone = $('#phone');
|
||||
var city = $('#city').val();
|
||||
var $city = $('#city');
|
||||
var district = $('#district').val();
|
||||
var $district = $('#district');
|
||||
var address = $('#address').val();
|
||||
var $address = $('#address');
|
||||
|
||||
var item_name = $name.parents(".item-input");
|
||||
if (name.length < 4) {
|
||||
item_name.addClass('error');
|
||||
item_name.find($('.note-error')).html('Tên quá ngắn')
|
||||
} else if (name.indexOf('<script') > -1) {
|
||||
item_name.addClass('error');
|
||||
item_name.find($('.note-error')).html('Họ tên chứa các ký tự không hợp lệ, bạn vui lòng kiểm tra lại');
|
||||
}
|
||||
|
||||
var item_email = $email.parents(".item-input");
|
||||
if (email.length < 4) {
|
||||
item_email.addClass('error')
|
||||
item_email.find($('.note-error')).html("Bạn chưa nhập Email");
|
||||
error = true;
|
||||
} else if (!validateEmail(email)) {
|
||||
item_email.addClass('error')
|
||||
item_email.find($('.note-error')).html("Địa chỉ email chưa chính xác");
|
||||
error = true;
|
||||
} else {
|
||||
item_email.removeClass('error');
|
||||
item_email.find($('.note-error')).html("");
|
||||
}
|
||||
|
||||
var item_phone = $phone.parents(".item-input");
|
||||
if (phone.length < 4) {
|
||||
item_phone.addClass('error')
|
||||
item_phone.find($('.note-error')).html("Bạn chưa nhập SĐT");
|
||||
error = true;
|
||||
} else if (!phone.match(number_regex1) && !phone.match(number_regex2)) {
|
||||
item_phone.addClass('error')
|
||||
item_phone.find($('.note-error')).html("Số điện thoại chưa chính xác");
|
||||
error = true;
|
||||
} else {
|
||||
item_phone.removeClass('error');
|
||||
item_phone.find($('.note-error')).html("");
|
||||
}
|
||||
|
||||
|
||||
var item_city = $city.parents('.item-input');
|
||||
if (city == 0) {
|
||||
item_city.addClass('error');
|
||||
item_city.find($('.note-error')).html("Bạn chưa chọn Tỉnh/Thành phố");
|
||||
error = true;
|
||||
} else {
|
||||
item_city.removeClass('error');
|
||||
item_city.find($('.note-error')).html("");
|
||||
}
|
||||
|
||||
var item_district = $district.parents('.item-input');
|
||||
if (district == 0) {
|
||||
item_district.addClass('error');
|
||||
item_district.find($('.note-error')).html("Bạn chưa chọn Quận/Huyện");
|
||||
error = true;
|
||||
} else {
|
||||
item_district.removeClass('error');
|
||||
item_district.find($('.note-error')).html("");
|
||||
}
|
||||
|
||||
var item_check_add = $address.parents(".item-input");
|
||||
if (address.length < 5) {
|
||||
item_check_add.addClass('error')
|
||||
item_check_add.find($('.note-error')).html("Địa chỉ quá ngắn");
|
||||
error = true;
|
||||
} else if (address.indexOf('<script') > -1) {
|
||||
item_check_add.addClass('error')
|
||||
item_check_add.find($('.note-error')).html("Địa chỉ chứa các ký tự không hợp lệ, bạn vui lòng kiểm tra lại");
|
||||
error = true;
|
||||
} else {
|
||||
item_check_add.removeClass('error');
|
||||
item_check_add.find($('.note-error')).html("");
|
||||
}
|
||||
|
||||
|
||||
if (error) {
|
||||
alert('Vui lòng kiểm tra lại thông tin đơn hàng');
|
||||
return false;
|
||||
} else {
|
||||
$('.box-popup').removeClass('active');
|
||||
$('.popup-buy-success').addClass('active')
|
||||
$('.overlay').addClass('active')
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function closePopop() {
|
||||
$('.box-popup').removeClass('active');
|
||||
$('.overlay').removeClass('active')
|
||||
}
|
||||
|
||||
function validateEmail(sEmail) {
|
||||
var filter = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
|
||||
if (filter.test(sEmail)) {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function validatePhoneNumber(a) {
|
||||
var number_regex1 = /^[0]\d{9}$/i;
|
||||
var number_regex2 = /^[0]\d{10}$/i;
|
||||
|
||||
if (number_regex1.test(a) == false && number_regex2.test(a) == false) return false;
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user