Files

319 lines
35 KiB
JavaScript
Raw Permalink Normal View History

2023-12-23 10:55:02 +07:00
"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,
2023-12-25 09:29:34 +07:00
price_step: 300000,
2023-12-23 10:55:02 +07:00
from_time: 1703213170286,
to_time: 1703955600000,
status: 'started',
2023-12-25 09:29:34 +07:00
user_online: 200,
list_user: [
{
IdUser: 1,
userName: 'Mai phương',
price: 4500000,
time: 1703955600000
},
{
IdUser: 2,
userName: 'Quang đỗ',
price: 3600000,
time: 1703955600000
},
{
IdUser: 3,
userName: 'Thu Hương',
price: 3400000,
time: 1703955600000
},
{
IdUser: 3,
userName: 'Minh Ngọc',
price: 3400000,
time: 1703955600000
}
],
2023-12-23 10:55:02 +07:00
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&nbsp;13700KF up 5.4GHz |&nbsp;16 CORE | 24 THREAD</a>&nbsp;&nbsp;</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&nbsp;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&nbsp;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&nbsp;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&nbsp;256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36&nbsp;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;">&nbsp;</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,
2023-12-25 09:29:34 +07:00
price_step: 300000,
2023-12-23 10:55:02 +07:00
from_time: 1703213170286,
to_time: 1703869200000,
status: 'started',
2023-12-25 09:29:34 +07:00
user_online: 200,
list_user: [
{
IdUser: 1,
userName: 'Mai phương',
price: 4500000,
time: 1703955600000
},
{
IdUser: 2,
userName: 'Quang đỗ',
price: 3600000,
time: 1703955600000
},
{
IdUser: 3,
userName: 'Thu Hương',
price: 3400000,
time: 1703955600000
},
{
IdUser: 3,
userName: 'Minh Ngọc',
price: 3400000,
time: 1703955600000
}
],
2023-12-23 10:55:02 +07:00
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&nbsp;13700KF up 5.4GHz |&nbsp;16 CORE | 24 THREAD</a>&nbsp;&nbsp;</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&nbsp;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&nbsp;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&nbsp;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&nbsp;256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36&nbsp;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;">&nbsp;</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,
2023-12-25 09:29:34 +07:00
price_step: 300000,
2023-12-25 13:51:24 +07:00
from_time: 1703523600000,
2023-12-23 10:55:02 +07:00
to_time: 1703955600000,
status: 'coming',
2023-12-25 09:29:34 +07:00
user_online: 0,
list_user: [],
2023-12-23 10:55:02 +07:00
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&nbsp;13700KF up 5.4GHz |&nbsp;16 CORE | 24 THREAD</a>&nbsp;&nbsp;</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&nbsp;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&nbsp;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&nbsp;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&nbsp;256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36&nbsp;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;">&nbsp;</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,
2023-12-25 09:29:34 +07:00
price_step: 300000,
2023-12-23 10:55:02 +07:00
from_time: 1703213170286,
to_time: 1703955600000,
status: 'started',
2023-12-25 09:29:34 +07:00
user_online: 200,
list_user: [
{
IdUser: 1,
userName: 'Mai phương',
price: 4500000,
time: 1703955600000
},
{
IdUser: 2,
userName: 'Quang đỗ',
price: 3600000,
time: 1703955600000
},
{
IdUser: 3,
userName: 'Thu Hương',
price: 3400000,
time: 1703955600000
},
{
IdUser: 3,
userName: 'Minh Ngọc',
price: 3400000,
time: 1703955600000
}
],
2023-12-23 10:55:02 +07:00
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&nbsp;13700KF up 5.4GHz |&nbsp;16 CORE | 24 THREAD</a>&nbsp;&nbsp;</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&nbsp;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&nbsp;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&nbsp;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&nbsp;256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36&nbsp;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;">&nbsp;</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,
2023-12-25 09:29:34 +07:00
price_step: 300000,
2023-12-23 10:55:02 +07:00
from_time: 1703213170286,
to_time: 1703955600000,
status: 'started',
2023-12-25 09:29:34 +07:00
user_online: 200,
list_user: [
{
IdUser: 1,
userName: 'Mai phương',
price: 4500000,
time: 1703955600000
},
{
IdUser: 2,
userName: 'Quang đỗ',
price: 3600000,
time: 1703955600000
},
{
IdUser: 3,
userName: 'Thu Hương',
price: 3400000,
time: 1703955600000
},
{
IdUser: 3,
userName: 'Minh Ngọc',
price: 3400000,
time: 1703955600000
}
],
2023-12-23 10:55:02 +07:00
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&nbsp;13700KF up 5.4GHz |&nbsp;16 CORE | 24 THREAD</a>&nbsp;&nbsp;</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&nbsp;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&nbsp;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&nbsp;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&nbsp;256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36&nbsp;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;">&nbsp;</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,
2023-12-25 09:29:34 +07:00
price_step: 300000,
2023-12-23 10:55:02 +07:00
from_time: 1703213170286,
to_time: 1703955600000,
status: 'started',
2023-12-25 09:29:34 +07:00
user_online: 200,
list_user: [
{
IdUser: 1,
userName: 'Mai phương',
price: 4500000,
time: 1703955600000
},
{
IdUser: 2,
userName: 'Quang đỗ',
price: 3600000,
time: 1703955600000
},
{
IdUser: 3,
userName: 'Thu Hương',
price: 3400000,
time: 1703955600000
},
{
IdUser: 3,
userName: 'Minh Ngọc',
price: 3400000,
time: 1703955600000
}
],
2023-12-23 10:55:02 +07:00
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&nbsp;13700KF up 5.4GHz |&nbsp;16 CORE | 24 THREAD</a>&nbsp;&nbsp;</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&nbsp;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&nbsp;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&nbsp;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&nbsp;256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36&nbsp;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;">&nbsp;</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,
2023-12-25 09:29:34 +07:00
price_step: 300000,
2023-12-25 13:51:24 +07:00
from_time: 1703523600000,
2023-12-23 10:55:02 +07:00
to_time: 1703955600000,
status: 'coming',
2023-12-25 09:29:34 +07:00
user_online: 0,
list_user: [],
2023-12-23 10:55:02 +07:00
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&nbsp;13700KF up 5.4GHz |&nbsp;16 CORE | 24 THREAD</a>&nbsp;&nbsp;</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&nbsp;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&nbsp;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&nbsp;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&nbsp;256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36&nbsp;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;">&nbsp;</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,
2023-12-25 09:29:34 +07:00
price_step: 300000,
2023-12-23 10:55:02 +07:00
from_time: 1703264400000,
to_time: 1703215914798,
status: 'ended',
2023-12-25 09:29:34 +07:00
user_online: 1000,
list_user: [
2023-12-23 10:55:02 +07:00
{
2023-12-25 09:29:34 +07:00
IdUser: 1,
2023-12-23 10:55:02 +07:00
userName: 'Mai phương',
2023-12-25 09:29:34 +07:00
price: 4500000,
time: 1703955600000
2023-12-23 10:55:02 +07:00
},
{
2023-12-25 09:29:34 +07:00
IdUser: 2,
userName: 'Quang đỗ',
price: 3600000,
time: 1703955600000
2023-12-23 10:55:02 +07:00
},
2023-12-25 09:29:34 +07:00
{
IdUser: 3,
userName: 'Thu Hương',
price: 3400000,
time: 1703955600000
},
{
IdUser: 3,
userName: 'Minh Ngọc',
price: 3400000,
time: 1703955600000
}
],
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&nbsp;13700KF up 5.4GHz |&nbsp;16 CORE | 24 THREAD</a>&nbsp;&nbsp;</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&nbsp;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&nbsp;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&nbsp;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&nbsp;256-bit</ahref=></strong></td><td style="text-align: center;"><strong>36&nbsp;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;">&nbsp;</td></tr></tbody></table>',
},
2023-12-23 10:55:02 +07:00
];
2023-12-25 09:29:34 +07:00
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;
2023-12-25 13:51:24 +07:00
console.log(distance);
2023-12-25 09:29:34 +07:00
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 {
2023-12-25 13:51:24 +07:00
console.log('aaaa');
2023-12-25 09:29:34 +07:00
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();
}
function formatTime(timestamp) {
const date = new Date(timestamp);
const formattedTime = date.toLocaleString('en-US', { day: 'numeric', month: 'numeric', year: 'numeric', hour: 'numeric', minute: 'numeric', second: 'numeric' });
return formattedTime;
}