diff --git a/src/components/layout/Header/menuData.ts b/src/components/layout/Header/menuData.ts index 637f7a5..d498cd2 100644 --- a/src/components/layout/Header/menuData.ts +++ b/src/components/layout/Header/menuData.ts @@ -1,4 +1,4 @@ -import { MenuTypes } from "@/src/types/Menu"; +import { MenuTypes } from "@/./types/Menu"; export const menuData: MenuTypes = [ diff --git a/src/components/layout/home/BoxDeal/ProductItem.tsx b/src/components/layout/home/BoxDeal/ProductItem.tsx new file mode 100644 index 0000000..b55a450 --- /dev/null +++ b/src/components/layout/home/BoxDeal/ProductItem.tsx @@ -0,0 +1 @@ +const ProductItem = ({ item }: { item: Product }) => {}; diff --git a/src/components/layout/home/BoxDeal/productDealData.ts b/src/components/layout/home/BoxDeal/productDealData.ts new file mode 100644 index 0000000..f33957a --- /dev/null +++ b/src/components/layout/home/BoxDeal/productDealData.ts @@ -0,0 +1,1572 @@ +import { TypeListProductDeal } from "@/types/TypeListProductDeal"; + +export const productDealData: TypeListProductDeal = [ + { + "id": "565", + "pro_id": "25404", + "title": "Bộ PC Gaming AMD Ryzen 5 5500, RAM 16GB, VGA 4GB [TẶNG MÀN HÌNH]", + "price": "11690000", + "customer_group_price": "[]", + "quantity": "5", + "min_purchase": "1", + "max_purchase": "0", + "from_time": "19-12-2025, 8:00 am", + "to_time": "22-12-2025, 9:30 am", + "is_featured": "0", + "last_update": "1766109733", + "last_update_by": "0", + "ordering": "3", + "sale_order": "0", + "sale_quantity": "0", + "views": "0", + "rating": "0", + "review_count": "0", + "auto_renew": "0", + "auto_renew_history": null, + "counter": 1, + "request_path": "/deal/565", + "deal_time_happen": 21285, + "deal_time_left": 243315, + "is_start": 1, + "is_end": 0, + "is_active": "1", + "product_info": { + "id": 25404, + "productId": 25404, + "priceUnit": "chiếc", + "marketPrice": 0, + "price": "11690000", + "price_off": "", + "currency": "vnd", + "sale_rules": { + "price": "11690000", + "normal_price": 11690000, + "min_purchase": "1", + "max_purchase": "0", + "remain_quantity": 1, + "from_time": "1766106000", + "to_time": "1766370600", + "type": "deal", + "type_id": "565" + }, + "lastUpdate": "2025-12-18 17:24:13", + "warranty": "Bảo hành theo từng linh kiện ", + "productName": "Bộ PC Gaming AMD Ryzen 5 5500, RAM 16GB, VGA 4GB [TẶNG MÀN HÌNH]", + "productSummary": "CPU AMD Ryzen 5 5500 (3,6 GHz Boost 4,2 GHz | 6 Cores / 12 Threads | 16 MB Cache| PCIe 3.0)\r\nMain Gigabyte A520M-K V2\r\nRAM Simorchip DDR4 16GB 3200MHz (Hỗ trợ Intel/AMD)\r\nSSD DAHUA C910N 512GB M.2 NVMe PCIe Gen 3.0 x4 (DHI-SSD-C910N512G)\r\nVGA Colorful GT 1030 4GB Single Fan\r\nNguồn Segotep SG D600A U5 500W Đen/Black\r\nCase MIK LV12 MINI FLOW - BLACK\r\nTản nhiệt ID-Cooling SE-904-XT ARGB BLACK", + "package_accessory": "", + "productImage": { + "small": "https://nguyencongpc.vn/media/product/75-25404-pc-gaming-amd-ryzen-5-5500-ram-16gb-vga-4gb-018.jpg", + "large": "https://nguyencongpc.vn/media/product/250-25404-pc-gaming-amd-ryzen-5-5500-ram-16gb-vga-4gb-018.jpg", + "original": "" + }, + "imageCollection": [ + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-25404-pc-gaming-amd-ryzen-5-5500-ram-16gb-vga-4gb-018.jpg", + "large": "https://nguyencongpc.vn/media/product/250-25404-pc-gaming-amd-ryzen-5-5500-ram-16gb-vga-4gb-018.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-25404-pc-gaming-amd-ryzen-5-5500-ram-16gb-vga-4gb-01.jpg", + "large": "https://nguyencongpc.vn/media/product/250-25404-pc-gaming-amd-ryzen-5-5500-ram-16gb-vga-4gb-01.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-25404-pc-gaming-amd-ryzen-5-5500-ram-16gb-vga-4gb-03.jpg", + "large": "https://nguyencongpc.vn/media/product/250-25404-pc-gaming-amd-ryzen-5-5500-ram-16gb-vga-4gb-03.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-25404-pc-gaming-amd-ryzen-5-5500-ram-16gb-vga-4gb-02.jpg", + "large": "https://nguyencongpc.vn/media/product/250-25404-pc-gaming-amd-ryzen-5-5500-ram-16gb-vga-4gb-02.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-25404-pc-gaming-amd-ryzen-5-5500-ram-16gb-vga-4gb-05.jpg", + "large": "https://nguyencongpc.vn/media/product/250-25404-pc-gaming-amd-ryzen-5-5500-ram-16gb-vga-4gb-05.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-25404-pc-gaming-amd-ryzen-5-5500-ram-16gb-vga-4gb-14.jpg", + "large": "https://nguyencongpc.vn/media/product/250-25404-pc-gaming-amd-ryzen-5-5500-ram-16gb-vga-4gb-14.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-25404-pc-gaming-amd-ryzen-5-5500-ram-16gb-vga-4gb-07.jpg", + "large": "https://nguyencongpc.vn/media/product/250-25404-pc-gaming-amd-ryzen-5-5500-ram-16gb-vga-4gb-07.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-25404-pc-gaming-amd-ryzen-5-5500-ram-16gb-vga-4gb-08.jpg", + "large": "https://nguyencongpc.vn/media/product/250-25404-pc-gaming-amd-ryzen-5-5500-ram-16gb-vga-4gb-08.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-25404-pc-gaming-amd-ryzen-5-5500-ram-16gb-vga-4gb-19.jpg", + "large": "https://nguyencongpc.vn/media/product/250-25404-pc-gaming-amd-ryzen-5-5500-ram-16gb-vga-4gb-19.jpg", + "original": "" + }, + "alt": "" + } + ], + "productUrl": "/bts-gaming-02", + "brand": { + "id": 124, + "brand_index": "ncpc", + "name": "NCPC", + "image": "", + "url": "/brand/ncpc" + }, + "visit": 123859, + "rating": 5, + "reviewCount": 16, + "review": { + "rate": 5, + "total": 16 + }, + "comment": { + "rate": 5, + "total": 38 + }, + "quantity": 1, + "productSKU": "", + "productModel": "", + "hasVAT": 0, + "condition": "Mới", + "config_count": 0, + "configurable": 0, + "component_count": 0, + "specialOffer": { + "other": [ + { + "id": 0, + "title": "

Tặng Màn Hình :  VSP IP2407SG - 24 INCH - 100HZ - 1MS

\r\n

=>> Không lấy quà tặng màn hình: Giá PC là 10.290.000đ

\r\n
- Xem thêm km: khuyenmai.nguyencongpc.vn/build-pc
\r\n

\"\"

", + "type": "", + "thumbnail": "", + "cash_value": 0, + "quantity": 1, + "from_time": "", + "to_time": "", + "url": "", + "description": "", + "status": 1 + } + ], + "all": [ + { + "id": 0, + "title": "

Tặng Màn Hình :  VSP IP2407SG - 24 INCH - 100HZ - 1MS

\r\n

=>> Không lấy quà tặng màn hình: Giá PC là 10.290.000đ

\r\n
- Xem thêm km: khuyenmai.nguyencongpc.vn/build-pc
\r\n

\"\"

", + "type": "", + "thumbnail": "", + "cash_value": 0, + "quantity": 1, + "from_time": "", + "to_time": "", + "url": "", + "description": "", + "status": 1 + } + ] + }, + "specialOfferGroup": [], + "productType": { + "isNew": 0, + "isHot": 0, + "isBestSale": 0, + "isSaleOff": 0, + "online-only": 0 + }, + "bulk_price": [], + "thum_poster": "0", + "thum_poster_type": "", + "addon": [], + "variants": [], + "variant_option": [], + "extend": { + "buy_count": "464", + "pixel_code": "", + "review_count": "64", + "review_score": "4.8" + }, + "weight": 0, + "promotion_price": null, + "deal_list": [ + { + "id": "565", + "pro_id": "25404", + "title": "Bộ PC Gaming AMD Ryzen 5 5500, RAM 16GB, VGA 4GB [TẶNG MÀN HÌNH]", + "price": "11690000", + "quantity": "5", + "min_purchase": "1", + "max_purchase": "0", + "is_featured": "0", + "from_time": "1766106000", + "to_time": "1766370600", + "is_started": 1 + } + ], + "pricing_traces": [ + { + "price": "11690000", + "type": "deal", + "type_id": "565" + } + ], + "categories": [ + { + "id": "3432", + "catPath": ":3432:3468:1829:0", + "name": "PC ESPORT", + "url": "/pc-esport" + }, + { + "id": "1829", + "catPath": ":1829:0", + "name": "PC GAMING", + "url": "/pc-gaming" + }, + { + "id": "3471", + "catPath": ":3471:3469:1829:0", + "name": "5 Triệu - 15 Triệu", + "url": "/5-trieu-15-trieu" + }, + { + "id": "3468", + "catPath": ":3468:1829:0", + "name": "CHỌN THEO NHU CẦU", + "url": "/chon-theo-nhu-cau-1" + } + ] + } + }, + { + "id": "564", + "pro_id": "28304", + "title": "Laptop Lenovo LOQ Gaming 15ARP9 (Ryzen 5 7235HS, 12GB, 512GB SSD, RTX 4050 6GB, 15.6 inch FHD 144Hz, Win 11, Luna Grey)", + "price": "20990000", + "customer_group_price": "[]", + "quantity": "5", + "min_purchase": "1", + "max_purchase": "0", + "from_time": "17-12-2025, 8:00 am", + "to_time": "22-12-2025, 9:30 am", + "is_featured": "0", + "last_update": "1766108827", + "last_update_by": "0", + "ordering": "0", + "sale_order": "0", + "sale_quantity": "0", + "views": "0", + "rating": "0", + "review_count": "0", + "auto_renew": "0", + "auto_renew_history": null, + "counter": 2, + "request_path": "/deal/564", + "deal_time_happen": 194085, + "deal_time_left": 243315, + "is_start": 1, + "is_end": 0, + "is_active": "1", + "product_info": { + "id": 28304, + "productId": 28304, + "priceUnit": "chiếc", + "marketPrice": 23590000, + "price": "20990000", + "price_off": 11, + "currency": "vnd", + "sale_rules": { + "price": "20990000", + "normal_price": 20990000, + "min_purchase": "1", + "max_purchase": "0", + "remain_quantity": 6, + "from_time": "1765933200", + "to_time": "1766370600", + "type": "deal", + "type_id": "564" + }, + "lastUpdate": "2025-11-21 09:36:21", + "warranty": "12 tháng", + "productName": "Laptop Lenovo LOQ Gaming 15ARP9 (Ryzen 5 7235HS, 12GB, 512GB SSD, RTX 4050 6GB, 15.6 inch FHD 144Hz, Win 11, Luna Grey)", + "productSummary": "CPU: AMD Ryzen 5-7235HS (3.20GHz up to 4.20GHz, 8MB Cache)\r\nRam: 12GB (1x 12GB) SO-DIMM DDR5-4800MHz (2 slots, up to 32GB)\r\nỔ cứng: 512GB SSD M.2 2242 PCIe® 4.0x4 NVMe®\r\nVGA: NVIDIA® GeForce RTX™ 4050 6GB GDDR6\r\nDisplay: 15.6inch FHD (1920x1080) IPS, 300nits, Anti-glare, 100% sRGB, 144Hz, G-SYNC®\r\nPin: 4Cell 60Wh\r\nColor: Luna Grey (Xám)\r\nWeight: 2.38 kg", + "package_accessory": "", + "productImage": { + "small": "https://nguyencongpc.vn/media/product/75-28304-laptop-lenovo-loq-gaming-15arp9-10101.jpg", + "large": "https://nguyencongpc.vn/media/product/250-28304-laptop-lenovo-loq-gaming-15arp9-10101.jpg", + "original": "" + }, + "imageCollection": [ + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-28304-laptop-lenovo-loq-gaming-15arp9-10101.jpg", + "large": "https://nguyencongpc.vn/media/product/250-28304-laptop-lenovo-loq-gaming-15arp9-10101.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-28304-laptop-lenovo-loq-gaming-15arp9-11.jpg", + "large": "https://nguyencongpc.vn/media/product/250-28304-laptop-lenovo-loq-gaming-15arp9-11.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-28304-laptop-lenovo-loq-gaming-15arp9-12.jpg", + "large": "https://nguyencongpc.vn/media/product/250-28304-laptop-lenovo-loq-gaming-15arp9-12.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-28304-laptop-lenovo-loq-gaming-15arp9-14.jpg", + "large": "https://nguyencongpc.vn/media/product/250-28304-laptop-lenovo-loq-gaming-15arp9-14.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-28304-laptop-lenovo-loq-gaming-15arp9-13.jpg", + "large": "https://nguyencongpc.vn/media/product/250-28304-laptop-lenovo-loq-gaming-15arp9-13.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-28304-laptop-lenovo-loq-gaming-15arp9-16.jpg", + "large": "https://nguyencongpc.vn/media/product/250-28304-laptop-lenovo-loq-gaming-15arp9-16.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-28304-laptop-lenovo-loq-gaming-15arp9-17.jpg", + "large": "https://nguyencongpc.vn/media/product/250-28304-laptop-lenovo-loq-gaming-15arp9-17.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-28304-laptop-lenovo-loq-gaming-15arp9-15.jpg", + "large": "https://nguyencongpc.vn/media/product/250-28304-laptop-lenovo-loq-gaming-15arp9-15.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-28304-laptop-lenovo-loq-gaming-15arp9-18.jpg", + "large": "https://nguyencongpc.vn/media/product/250-28304-laptop-lenovo-loq-gaming-15arp9-18.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-28304-lenovo_loq_15arp9_83jc00gkus_ryzen_5_7235hs_12gb_512gb_rtx_4050_6gb.png", + "large": "https://nguyencongpc.vn/media/product/250-28304-lenovo_loq_15arp9_83jc00gkus_ryzen_5_7235hs_12gb_512gb_rtx_4050_6gb.png", + "original": "" + }, + "alt": "" + } + ], + "productUrl": "/laptop-lenovo-loq-gaming-15arp9-ryzen-5-7235hs-12gb-512gb-ssd-rtx-4050-6gb-156-inch-fhd-144hz-win-11-luna-grey", + "brand": { + "id": 99, + "brand_index": "lenovo", + "name": "LENOVO", + "image": "", + "url": "/brand/lenovo" + }, + "visit": 1231, + "rating": 5, + "reviewCount": 1, + "review": { + "rate": 5, + "total": 1 + }, + "comment": { + "rate": 0, + "total": 0 + }, + "quantity": 6, + "productSKU": "LT0000972", + "productModel": "", + "hasVAT": 0, + "condition": "Mới", + "config_count": 0, + "configurable": 0, + "component_count": 0, + "specialOffer": { + "all": [] + }, + "specialOfferGroup": [], + "productType": { + "isNew": 0, + "isHot": 0, + "isBestSale": 0, + "isSaleOff": 0, + "online-only": 0 + }, + "bulk_price": [], + "thum_poster": "0", + "thum_poster_type": "", + "addon": [], + "variants": [], + "variant_option": [], + "extend": { + "buy_count": "5" + }, + "weight": 0, + "promotion_price": null, + "deal_list": [ + { + "id": "564", + "pro_id": "28304", + "title": "Laptop Lenovo LOQ Gaming 15ARP9 (Ryzen 5 7235HS, 12GB, 512GB SSD, RTX 4050 6GB, 15.6 inch FHD 144Hz, Win 11, Luna Grey)", + "price": "20990000", + "quantity": "5", + "min_purchase": "1", + "max_purchase": "0", + "is_featured": "0", + "from_time": "1765933200", + "to_time": "1766370600", + "is_started": 1 + } + ], + "pricing_traces": [ + { + "price": "11690000", + "type": "deal", + "type_id": "565" + }, + { + "price": "7600000", + "type": "deal", + "type_id": "563" + }, + { + "price": "6990000", + "type": "deal", + "type_id": "562" + }, + { + "price": "24990000", + "type": "deal", + "type_id": "560" + }, + { + "price": "20990000", + "type": "deal", + "type_id": "564" + } + ], + "categories": [ + { + "id": "407", + "catPath": ":407:0", + "name": "LAPTOP", + "url": "/laptop" + }, + { + "id": "3440", + "catPath": ":3440:407:0", + "name": "LAPTOP GAMING", + "url": "/laptop-gaming" + }, + { + "id": "3441", + "catPath": ":3441:407:0", + "name": "CHỌN THEO NHU CẦU", + "url": "/chon-theo-nhu-cau" + }, + { + "id": "3446", + "catPath": ":3446:3441:407:0", + "name": "Laptop Gaming", + "url": "/laptop-gaming-1" + }, + { + "id": "3447", + "catPath": ":3447:3441:407:0", + "name": "Laptop Đồ Họa - Kiến Trúc", + "url": "/laptop-do-hoa-kien-truc" + } + ] + } + }, + { + "id": "563", + "pro_id": "25668", + "title": "Card màn hình Gigabyte GeForce RTX 3060 WINDFORCE OC 12GB (N3060WF2OC -12GD)", + "price": "7600000", + "customer_group_price": "[]", + "quantity": "5", + "min_purchase": "1", + "max_purchase": "0", + "from_time": "17-12-2025, 8:00 am", + "to_time": "22-12-2025, 9:30 am", + "is_featured": "0", + "last_update": "1766108834", + "last_update_by": "0", + "ordering": "0", + "sale_order": "0", + "sale_quantity": "0", + "views": "0", + "rating": "0", + "review_count": "0", + "auto_renew": "0", + "auto_renew_history": null, + "counter": 3, + "request_path": "/deal/563", + "deal_time_happen": 194085, + "deal_time_left": 243315, + "is_start": 1, + "is_end": 0, + "is_active": "1", + "product_info": { + "id": 25668, + "productId": 25668, + "priceUnit": "chiếc", + "marketPrice": 8000000, + "price": "7600000", + "price_off": 5, + "currency": "vnd", + "sale_rules": { + "price": "7600000", + "normal_price": 7600000, + "min_purchase": "1", + "max_purchase": "0", + "remain_quantity": 389, + "from_time": "1765933200", + "to_time": "1766370600", + "type": "deal", + "type_id": "563" + }, + "lastUpdate": "2025-12-06 14:16:07", + "warranty": "36 Tháng", + "productName": "Card màn hình Gigabyte GeForce RTX 3060 WINDFORCE OC 12GB (N3060WF2OC -12GD)", + "productSummary": "Phiên bản: GeForce RTX 3060\r\nGiao thức kết nối: PCI-E 4.0 x 16\r\nNhân CUDA: 3584\r\nBộ nhớ: 12GB GDDR6\r\nBus bộ nhớ: 192 bit", + "package_accessory": "", + "productImage": { + "small": "https://nguyencongpc.vn/media/product/75-25668-n3060wf2oc--12gd.jpg", + "large": "https://nguyencongpc.vn/media/product/250-25668-n3060wf2oc--12gd.jpg", + "original": "" + }, + "imageCollection": [ + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-25668-1000--12-.png", + "large": "https://nguyencongpc.vn/media/product/250-25668-1000--12-.png", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-25668-1000--11-.png", + "large": "https://nguyencongpc.vn/media/product/250-25668-1000--11-.png", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-25668-1000--10-.png", + "large": "https://nguyencongpc.vn/media/product/250-25668-1000--10-.png", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-25668-1000--9-.png", + "large": "https://nguyencongpc.vn/media/product/250-25668-1000--9-.png", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-25668-1000--8-.png", + "large": "https://nguyencongpc.vn/media/product/250-25668-1000--8-.png", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-25668-1000--7-.png", + "large": "https://nguyencongpc.vn/media/product/250-25668-1000--7-.png", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-25668-1000--6-.png", + "large": "https://nguyencongpc.vn/media/product/250-25668-1000--6-.png", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-25668-1000--5-.png", + "large": "https://nguyencongpc.vn/media/product/250-25668-1000--5-.png", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-25668-n3060wf2oc--12gd.jpg", + "large": "https://nguyencongpc.vn/media/product/250-25668-n3060wf2oc--12gd.jpg", + "original": "" + }, + "alt": "" + } + ], + "productUrl": "/card-man-hinh-gigabyte-geforce-rtx-3060-windforce-oc-12gb-n3060wf2oc-12gd", + "brand": { + "id": 2, + "brand_index": "gigabyte", + "name": "Gigabyte", + "image": "", + "url": "/brand/gigabyte" + }, + "visit": 21036, + "rating": 5, + "reviewCount": 2, + "review": { + "rate": 5, + "total": 2 + }, + "comment": { + "rate": 0, + "total": 0 + }, + "quantity": 389, + "productSKU": "VG0000189", + "productModel": "", + "hasVAT": 0, + "condition": "Mới", + "config_count": 0, + "configurable": 0, + "component_count": 0, + "specialOffer": { + "all": [] + }, + "specialOfferGroup": [], + "productType": { + "isNew": 0, + "isHot": 0, + "isBestSale": 0, + "isSaleOff": 0, + "online-only": 0 + }, + "bulk_price": [], + "thum_poster": "0", + "thum_poster_type": "", + "addon": [], + "variants": [], + "variant_option": [], + "extend": { + "buy_count": "346" + }, + "weight": 0, + "promotion_price": null, + "deal_list": [ + { + "id": "563", + "pro_id": "25668", + "title": "Card màn hình Gigabyte GeForce RTX 3060 WINDFORCE OC 12GB (N3060WF2OC -12GD)", + "price": "7600000", + "quantity": "5", + "min_purchase": "1", + "max_purchase": "0", + "is_featured": "0", + "from_time": "1765933200", + "to_time": "1766370600", + "is_started": 1 + } + ], + "pricing_traces": [ + { + "price": "11690000", + "type": "deal", + "type_id": "565" + }, + { + "price": "7600000", + "type": "deal", + "type_id": "563" + } + ], + "categories": [ + { + "id": "3662", + "catPath": ":3662:279:3431:0", + "name": "RTX 3060", + "url": "/rtx-3060" + }, + { + "id": "279", + "catPath": ":279:3431:0", + "name": "VGA - Card Màn Hình", + "url": "/vga-card-man-hinh" + }, + { + "id": "3610", + "catPath": ":3610:843:279:3431:0", + "name": "Nvidia RTX 3000 Series", + "url": "/nvidia-rtx-3000-series" + }, + { + "id": "1271", + "catPath": ":1271:3730:279:3431:0", + "name": "VGA Gigabyte", + "url": "/vga-gigabyte" + }, + { + "id": "3431", + "catPath": ":3431:0", + "name": "LINH KIỆN MÁY TÍNH", + "url": "/linh-kien-may-tinh" + } + ] + } + }, + { + "id": "562", + "pro_id": "27493", + "title": "Card Màn Hình Gigabyte Radeon RX 7600 Gaming OC 8GB", + "price": "6990000", + "customer_group_price": "[]", + "quantity": "5", + "min_purchase": "1", + "max_purchase": "0", + "from_time": "17-12-2025, 8:00 am", + "to_time": "22-12-2025, 9:30 am", + "is_featured": "0", + "last_update": "1766108839", + "last_update_by": "0", + "ordering": "0", + "sale_order": "0", + "sale_quantity": "0", + "views": "0", + "rating": "0", + "review_count": "0", + "auto_renew": "0", + "auto_renew_history": null, + "counter": 4, + "request_path": "/deal/562", + "deal_time_happen": 194085, + "deal_time_left": 243315, + "is_start": 1, + "is_end": 0, + "is_active": "1", + "product_info": { + "id": 27493, + "productId": 27493, + "priceUnit": "chiếc", + "marketPrice": 8500000, + "price": "6990000", + "price_off": 18, + "currency": "vnd", + "sale_rules": { + "price": "6990000", + "normal_price": 6990000, + "min_purchase": "1", + "max_purchase": "0", + "remain_quantity": 198, + "from_time": "1765933200", + "to_time": "1766370600", + "type": "deal", + "type_id": "562" + }, + "lastUpdate": "2025-12-06 14:20:40", + "warranty": "36 Tháng", + "productName": "Card Màn Hình Gigabyte Radeon RX 7600 Gaming OC 8GB", + "productSummary": "Dung lượng bộ nhớ: 8‎GB GDDR6\r\nBoost Clock* : up to 2755 MHz (Reference card: 2655 MHz)\r\nGame Clock* : up to 2355 MHz (Reference card: 2250 MHz)\r\nBăng thông: 128 bit\r\nKết nối: DisplayPort 1.4a *2, HDMI 2.1 *2\r\nNguồn yêu cầu: 550W", + "package_accessory": "", + "productImage": { + "small": "https://nguyencongpc.vn/media/product/75-27493-vga-gigabyte-radeon-rx-7600-gaming-oc-8gb-1.jpg", + "large": "https://nguyencongpc.vn/media/product/250-27493-vga-gigabyte-radeon-rx-7600-gaming-oc-8gb-1.jpg", + "original": "" + }, + "imageCollection": [ + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-27493-vga-gigabyte-radeon-rx-7600-gaming-oc-8gb-1.jpg", + "large": "https://nguyencongpc.vn/media/product/250-27493-vga-gigabyte-radeon-rx-7600-gaming-oc-8gb-1.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-27493-z7287596240376_0ff5c36e1cc7acd0c045f185a7015ced.jpg", + "large": "https://nguyencongpc.vn/media/product/250-27493-z7287596240376_0ff5c36e1cc7acd0c045f185a7015ced.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-27493-z7287596240496_186380d12de76d0346f477680f24b062.jpg", + "large": "https://nguyencongpc.vn/media/product/250-27493-z7287596240496_186380d12de76d0346f477680f24b062.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-27493-z7287596268824_8993dd19b38c994dfc30625d20a55478.jpg", + "large": "https://nguyencongpc.vn/media/product/250-27493-z7287596268824_8993dd19b38c994dfc30625d20a55478.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-27493-z7287596240375_a5ca0de46ff5af6e5273e5fe5dabb2cf.jpg", + "large": "https://nguyencongpc.vn/media/product/250-27493-z7287596240375_a5ca0de46ff5af6e5273e5fe5dabb2cf.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-27493-z7287596240372_d54fcb2ec8f3193613831e1fd9f39a16.jpg", + "large": "https://nguyencongpc.vn/media/product/250-27493-z7287596240372_d54fcb2ec8f3193613831e1fd9f39a16.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-27493-z7287596240315_caee5f28ee589d55cc283a3d7f1a6579.jpg", + "large": "https://nguyencongpc.vn/media/product/250-27493-z7287596240315_caee5f28ee589d55cc283a3d7f1a6579.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-27493-vga-gigabyte-radeon-rx-7600-gaming-oc-8gb-5.jpg", + "large": "https://nguyencongpc.vn/media/product/250-27493-vga-gigabyte-radeon-rx-7600-gaming-oc-8gb-5.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-27493-vga-gigabyte-radeon-rx-7600-gaming-oc-8gb-4.jpg", + "large": "https://nguyencongpc.vn/media/product/250-27493-vga-gigabyte-radeon-rx-7600-gaming-oc-8gb-4.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-27493-vga-gigabyte-radeon-rx-7600-gaming-oc-8gb-2.jpg", + "large": "https://nguyencongpc.vn/media/product/250-27493-vga-gigabyte-radeon-rx-7600-gaming-oc-8gb-2.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-27493-vga-gigabyte-radeon-rx-7600-gaming-oc-8gb-3.jpg", + "large": "https://nguyencongpc.vn/media/product/250-27493-vga-gigabyte-radeon-rx-7600-gaming-oc-8gb-3.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-27493-z7287596240373_419194715b52b16fb8a6de7f1da5af20.jpg", + "large": "https://nguyencongpc.vn/media/product/250-27493-z7287596240373_419194715b52b16fb8a6de7f1da5af20.jpg", + "original": "" + }, + "alt": "" + } + ], + "productUrl": "/card-man-hinh-gigabyte-radeon-rx-7600-gaming-oc-8gb", + "brand": { + "id": 2, + "brand_index": "gigabyte", + "name": "Gigabyte", + "image": "", + "url": "/brand/gigabyte" + }, + "visit": 2400, + "rating": 0, + "reviewCount": 0, + "review": { + "rate": 0, + "total": 0 + }, + "comment": { + "rate": 0, + "total": 0 + }, + "quantity": 198, + "productSKU": "VG000517", + "productModel": "", + "hasVAT": 0, + "condition": "Mới", + "config_count": 0, + "configurable": 0, + "component_count": 0, + "specialOffer": { + "all": [] + }, + "specialOfferGroup": [], + "productType": { + "isNew": 0, + "isHot": 0, + "isBestSale": 0, + "isSaleOff": 0, + "online-only": 0 + }, + "bulk_price": [], + "thum_poster": "0", + "thum_poster_type": "", + "addon": [], + "variants": [], + "variant_option": [], + "extend": { + "buy_count": "421", + "pixel_code": "", + "review_count": "26", + "review_score": "4.6" + }, + "weight": 0, + "promotion_price": null, + "deal_list": [ + { + "id": "562", + "pro_id": "27493", + "title": "Card Màn Hình Gigabyte Radeon RX 7600 Gaming OC 8GB", + "price": "6990000", + "quantity": "5", + "min_purchase": "1", + "max_purchase": "0", + "is_featured": "0", + "from_time": "1765933200", + "to_time": "1766370600", + "is_started": 1 + } + ], + "pricing_traces": [ + { + "price": "11690000", + "type": "deal", + "type_id": "565" + }, + { + "price": "7600000", + "type": "deal", + "type_id": "563" + }, + { + "price": "6990000", + "type": "deal", + "type_id": "562" + } + ], + "categories": [ + { + "id": "279", + "catPath": ":279:3431:0", + "name": "VGA - Card Màn Hình", + "url": "/vga-card-man-hinh" + }, + { + "id": "3431", + "catPath": ":3431:0", + "name": "LINH KIỆN MÁY TÍNH", + "url": "/linh-kien-may-tinh" + }, + { + "id": "1271", + "catPath": ":1271:3730:279:3431:0", + "name": "VGA Gigabyte", + "url": "/vga-gigabyte" + } + ] + } + }, + { + "id": "561", + "pro_id": "28454", + "title": "Màn Hình Gaming Cong MSI MAG 276CF E20 (27 inch, VA, FHD, 200Hz, 0.5ms)", + "price": "2990000", + "customer_group_price": "[]", + "quantity": "5", + "min_purchase": "1", + "max_purchase": "0", + "from_time": "17-12-2025, 8:00 am", + "to_time": "22-12-2025, 9:30 am", + "is_featured": "0", + "last_update": "1766108844", + "last_update_by": "0", + "ordering": "0", + "sale_order": "0", + "sale_quantity": "0", + "views": "0", + "rating": "0", + "review_count": "0", + "auto_renew": "0", + "auto_renew_history": null, + "counter": 5, + "request_path": "/deal/561", + "deal_time_happen": 194085, + "deal_time_left": 243315, + "is_start": 1, + "is_end": 0, + "is_active": "1", + "product_info": { + "id": 28454, + "productId": 28454, + "priceUnit": "chiếc", + "marketPrice": 3690000, + "price": "2990000", + "price_off": 19, + "currency": "vnd", + "sale_rules": { + "price": "2990000", + "normal_price": 2990000, + "min_purchase": "1", + "max_purchase": "0", + "remain_quantity": 448, + "from_time": "1765933200", + "to_time": "1766370600", + "type": "deal", + "type_id": "561" + }, + "lastUpdate": "2025-12-04 14:48:30", + "warranty": "36 tháng", + "productName": "Màn Hình Gaming Cong MSI MAG 276CF E20 (27 inch, VA, FHD, 200Hz, 0.5ms)", + "productSummary": "Mã sản phẩm: MAG 276CF E20\r\nKích thước: 27 inch\r\nĐộ phân giải: Full HD (1920 × 1080)\r\nTấm nền: VA nhanh\r\nTần số quét: 200Hz\r\nThời gian phản hồi: 0,5ms (GtG)", + "package_accessory": "", + "productImage": { + "small": "https://nguyencongpc.vn/media/product/75-28454-msi-mag-276cf-e20-112.jpg", + "large": "https://nguyencongpc.vn/media/product/250-28454-msi-mag-276cf-e20-112.jpg", + "original": "" + }, + "imageCollection": [ + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-28454-msi-mag-276cf-e20-112.jpg", + "large": "https://nguyencongpc.vn/media/product/250-28454-msi-mag-276cf-e20-112.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-28454-msi-mag-276cf-e20-03.jpg", + "large": "https://nguyencongpc.vn/media/product/250-28454-msi-mag-276cf-e20-03.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-28454-msi-mag-276cf-e20-04.jpg", + "large": "https://nguyencongpc.vn/media/product/250-28454-msi-mag-276cf-e20-04.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-28454-msi-mag-276cf-e20-02.jpg", + "large": "https://nguyencongpc.vn/media/product/250-28454-msi-mag-276cf-e20-02.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-28454-msi-mag-276cf-e20-05.jpg", + "large": "https://nguyencongpc.vn/media/product/250-28454-msi-mag-276cf-e20-05.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-28454-msi-mag-276cf-e20-01.jpg", + "large": "https://nguyencongpc.vn/media/product/250-28454-msi-mag-276cf-e20-01.jpg", + "original": "" + }, + "alt": "" + } + ], + "productUrl": "/man-hinh-gaming-cong-msi-mag-276cf-e20", + "brand": { + "id": 5, + "brand_index": "msi", + "name": "MSI", + "image": "", + "url": "/brand/msi" + }, + "visit": 592, + "rating": 0, + "reviewCount": 0, + "review": { + "rate": 0, + "total": 0 + }, + "comment": { + "rate": 0, + "total": 0 + }, + "quantity": 448, + "productSKU": "MH0000414", + "productModel": "", + "hasVAT": 0, + "condition": "Mới", + "config_count": 0, + "configurable": 0, + "component_count": 0, + "specialOffer": { + "all": [] + }, + "specialOfferGroup": [], + "productType": { + "isNew": 0, + "isHot": 0, + "isBestSale": 0, + "isSaleOff": 0, + "online-only": 0 + }, + "bulk_price": [], + "thum_poster": "0", + "thum_poster_type": "", + "addon": [], + "variants": [], + "variant_option": [], + "extend": { + "pixel_code": "", + "review_count": "55", + "review_score": "4.6" + }, + "weight": 0, + "promotion_price": null, + "deal_list": [ + { + "id": "561", + "pro_id": "28454", + "title": "Màn Hình Gaming Cong MSI MAG 276CF E20 (27 inch, VA, FHD, 200Hz, 0.5ms)", + "price": "2990000", + "quantity": "5", + "min_purchase": "1", + "max_purchase": "0", + "is_featured": "0", + "from_time": "1765933200", + "to_time": "1766370600", + "is_started": 1 + } + ], + "pricing_traces": [ + { + "price": "11690000", + "type": "deal", + "type_id": "565" + }, + { + "price": "7600000", + "type": "deal", + "type_id": "563" + }, + { + "price": "6990000", + "type": "deal", + "type_id": "562" + }, + { + "price": "24990000", + "type": "deal", + "type_id": "560" + }, + { + "price": "20990000", + "type": "deal", + "type_id": "564" + }, + { + "price": "2990000", + "type": "deal", + "type_id": "561" + } + ], + "categories": [ + { + "id": "3364", + "catPath": ":3364:3500:281:0", + "name": "Màn Hình MSI", + "url": "/man-hinh-msi" + }, + { + "id": "281", + "catPath": ":281:0", + "name": "MÀN HÌNH MÁY TÍNH", + "url": "/man-hinh-may-tinh" + }, + { + "id": "3500", + "catPath": ":3500:281:0", + "name": "CHỌN THEO HÃNG", + "url": "/chon-theo-hang-1-2" + }, + { + "id": "3501", + "catPath": ":3501:281:0", + "name": "CHỌN THEO KÍCH THƯỚC", + "url": "/chon-theo-kich-thuoc" + }, + { + "id": "3509", + "catPath": ":3509:3501:281:0", + "name": "Màn hình 27 inches", + "url": "/man-hinh-27-inches" + }, + { + "id": "3515", + "catPath": ":3515:281:0", + "name": "CHỌN ĐỘ PHÂN GIẢI", + "url": "/chon-do-phan-giai" + }, + { + "id": "3519", + "catPath": ":3519:3515:281:0", + "name": "1920 x 1080 (FHD)", + "url": "/1920-x-1080-fhd" + }, + { + "id": "3528", + "catPath": ":3528:281:0", + "name": "CHỌN TẦN SỐ QUÉT", + "url": "/tan-so-quet" + }, + { + "id": "3537", + "catPath": ":3537:3528:281:0", + "name": "200 Hz", + "url": "/200-hz" + } + ] + } + }, + { + "id": "560", + "pro_id": "27720", + "title": "Bộ PC Gaming Intel Core i5-13400F, RAM 16GB, RTX 5060 Ti [TẶNG MÀN HÌNH]", + "price": "24990000", + "customer_group_price": "[]", + "quantity": "5", + "min_purchase": "1", + "max_purchase": "0", + "from_time": "08-12-2025, 8:00 am", + "to_time": "22-12-2025, 9:30 am", + "is_featured": "0", + "last_update": "1766108851", + "last_update_by": "0", + "ordering": "0", + "sale_order": "3", + "sale_quantity": "3", + "views": "1", + "rating": "0", + "review_count": "0", + "auto_renew": "0", + "auto_renew_history": null, + "counter": 6, + "request_path": "/deal/560", + "deal_time_happen": 971685, + "deal_time_left": 243315, + "is_start": 1, + "is_end": 0, + "is_active": "1", + "product_info": { + "id": 27720, + "productId": 27720, + "priceUnit": "chiếc", + "marketPrice": 27690000, + "price": "24990000", + "price_off": 6, + "currency": "vnd", + "sale_rules": { + "price": "24990000", + "normal_price": 25990000, + "min_purchase": "1", + "max_purchase": "0", + "remain_quantity": 1, + "from_time": "1765155600", + "to_time": "1766370600", + "type": "deal", + "type_id": "560" + }, + "lastUpdate": "2025-12-18 15:39:17", + "warranty": "Bảo hành dài theo từng linh kiện", + "productName": "Bộ PC Gaming Intel Core i5-13400F, RAM 16GB, RTX 5060 Ti [TẶNG MÀN HÌNH]", + "productSummary": "CPU Intel Core i5-13400F Tray New (Up To 4.60GHz, 10 Nhân 16 Luồng, 20 MB Cache, LGA 1700)\r\nMainboard BIOSTAR Z690MX2-E D4 (Intel Z690, Socket 1700, 2xDDR4, mATX)\r\nRAM Colorful Battle AX 16GB DDR4 3200MHz\r\nỔ Cứng SSD Acer FA100 512GB (NVMe PCIe/ Gen3x4 M2.2280/ 3200MB/s/ 2200MB/s)\r\nCard Màn Hình MSI RTX 5060 Ti 8GB SHADOW 2X OC Plus\r\nNguồn máy tính MIK C750B 750W PLUS BRONZE\r\nVỏ Case Xigmatek BLAST M (M-ATX) - Black\r\nTản Nhiệt Khí JONSBO CR-1000 EVO BLACK (Color RGB)\r\nFan Tản Nhiệt JUNGLE LEOPARD Prism 6Pro Black\r\n", + "package_accessory": "", + "productImage": { + "small": "https://nguyencongpc.vn/media/product/75-27720-pc-gaming-25251326.jpg", + "large": "https://nguyencongpc.vn/media/product/250-27720-pc-gaming-25251326.jpg", + "original": "" + }, + "imageCollection": [ + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-27720-pc-gaming-intel-core-i5-13400f-ram-16g-vga-rtx-5060-ti-001.jpg", + "large": "https://nguyencongpc.vn/media/product/250-27720-pc-gaming-intel-core-i5-13400f-ram-16g-vga-rtx-5060-ti-001.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-27720-pc-gaming-intel-core-i5-13400f-ram-16g-vga-rtx-5060-ti-1.jpg", + "large": "https://nguyencongpc.vn/media/product/250-27720-pc-gaming-intel-core-i5-13400f-ram-16g-vga-rtx-5060-ti-1.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-27720-pc-gaming-intel-core-i5-13400f-ram-16g-vga-rtx-5060-ti-2.jpg", + "large": "https://nguyencongpc.vn/media/product/250-27720-pc-gaming-intel-core-i5-13400f-ram-16g-vga-rtx-5060-ti-2.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-27720-pc-gaming-intel-core-i5-13400f-ram-16g-vga-rtx-5060-ti-3.jpg", + "large": "https://nguyencongpc.vn/media/product/250-27720-pc-gaming-intel-core-i5-13400f-ram-16g-vga-rtx-5060-ti-3.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-27720-pc-gaming-intel-core-i5-13400f-ram-16g-vga-rtx-5060-ti-4.jpg", + "large": "https://nguyencongpc.vn/media/product/250-27720-pc-gaming-intel-core-i5-13400f-ram-16g-vga-rtx-5060-ti-4.jpg", + "original": "" + }, + "alt": "" + }, + { + "image": { + "small": "https://nguyencongpc.vn/media/product/75-27720-pc-gaming-25251326.jpg", + "large": "https://nguyencongpc.vn/media/product/250-27720-pc-gaming-25251326.jpg", + "original": "" + }, + "alt": "" + } + ], + "productUrl": "/pc-gaming-ncpc-15", + "brand": { + "id": 124, + "brand_index": "ncpc", + "name": "NCPC", + "image": "", + "url": "/brand/ncpc" + }, + "visit": 39556, + "rating": 5, + "reviewCount": 1, + "review": { + "rate": 5, + "total": 1 + }, + "comment": { + "rate": 5, + "total": 3 + }, + "quantity": 1, + "productSKU": "", + "productModel": "", + "hasVAT": 0, + "condition": "Mới", + "config_count": 0, + "configurable": 0, + "component_count": 0, + "specialOffer": { + "other": [ + { + "id": 0, + "title": "

TẶNG MÀN HÌNH :  Màn hình Gaming cong MSI MAG 276CF E20 27' FHD VA 200Hz 0.5Ms

\r\n

Giá PC khi không lấy quà tặng : 23.490.000đ

\r\n

\"\"

", + "type": "", + "thumbnail": "", + "cash_value": 0, + "quantity": 1, + "from_time": "", + "to_time": "", + "url": "", + "description": "", + "status": 1 + } + ], + "all": [ + { + "id": 0, + "title": "

TẶNG MÀN HÌNH :  Màn hình Gaming cong MSI MAG 276CF E20 27' FHD VA 200Hz 0.5Ms

\r\n

Giá PC khi không lấy quà tặng : 23.490.000đ

\r\n

\"\"

", + "type": "", + "thumbnail": "", + "cash_value": 0, + "quantity": 1, + "from_time": "", + "to_time": "", + "url": "", + "description": "", + "status": 1 + } + ] + }, + "specialOfferGroup": [], + "productType": { + "isNew": 0, + "isHot": 0, + "isBestSale": 0, + "isSaleOff": 0, + "online-only": 0 + }, + "bulk_price": [], + "thum_poster": "0", + "thum_poster_type": "", + "addon": [], + "variants": [], + "variant_option": [], + "extend": { + "buy_count": "492", + "pixel_code": "", + "review_count": "43", + "review_score": "4.3" + }, + "weight": 0, + "promotion_price": null, + "deal_list": [ + { + "id": "560", + "pro_id": "27720", + "title": "Bộ PC Gaming Intel Core i5-13400F, RAM 16GB, RTX 5060 Ti [TẶNG MÀN HÌNH]", + "price": "24990000", + "quantity": "5", + "min_purchase": "1", + "max_purchase": "0", + "is_featured": "0", + "from_time": "1765155600", + "to_time": "1766370600", + "is_started": 1 + } + ], + "pricing_traces": [ + { + "price": "11690000", + "type": "deal", + "type_id": "565" + }, + { + "price": "7600000", + "type": "deal", + "type_id": "563" + }, + { + "price": "6990000", + "type": "deal", + "type_id": "562" + }, + { + "price": "24990000", + "type": "deal", + "type_id": "560" + } + ], + "categories": [ + { + "id": "1829", + "catPath": ":1829:0", + "name": "PC GAMING", + "url": "/pc-gaming" + }, + { + "id": "3468", + "catPath": ":3468:1829:0", + "name": "CHỌN THEO NHU CẦU", + "url": "/chon-theo-nhu-cau-1" + }, + { + "id": "3432", + "catPath": ":3432:3468:1829:0", + "name": "PC ESPORT", + "url": "/pc-esport" + }, + { + "id": "3433", + "catPath": ":3433:3468:1829:0", + "name": "PC GAME AAA", + "url": "/pc-game-aaa" + }, + { + "id": "3434", + "catPath": ":3434:3468:1829:0", + "name": "PC STREAM GAME", + "url": "/pc-stream-game" + }, + { + "id": "3469", + "catPath": ":3469:1829:0", + "name": "CHỌN THEO KHOẢNG GIÁ", + "url": "/chon-theo-khoang-gia-1" + }, + { + "id": "3472", + "catPath": ":3472:3469:1829:0", + "name": "20 Triệu - 30 Triệu", + "url": "/20-trieu-30-trieu-1" + } + ] + } + } +] \ No newline at end of file diff --git a/src/types/TypeListProductDeal.ts b/src/types/TypeListProductDeal.ts new file mode 100644 index 0000000..5b3feb4 --- /dev/null +++ b/src/types/TypeListProductDeal.ts @@ -0,0 +1,179 @@ +interface ImageInfo { + small: string; + large: string; + original: string; +} + +interface ProductImage { + image: ImageInfo; + alt: string; +} + +interface BrandInfo { + id: number; + brand_index: string; + name: string; + image: string; + url: string; +} + +interface ReviewInfo { + rate: number; + total: number; +} + +interface SaleRules { + price: string; + normal_price: number; + min_purchase: string; + max_purchase: string; + remain_quantity: number; + from_time: string; + to_time: string; + type: string; + type_id: string; +} + +interface OfferItem { + id: number; + title: string; + type: string; + thumbnail: string; + cash_value: number; + quantity: number; + from_time: string; + to_time: string; + url: string; + description: string; + status: number; +} + +interface SpecialOffer { + other?: OfferItem[]; + all?: OfferItem[]; +} + +interface ProductTypeFlags { + isNew: number; + isHot: number; + isBestSale: number; + isSaleOff: number; + "online-only": number; +} + +interface ProductTypeExtend { + buy_count?: string, + pixel_code?: string, + review_count?: string, + review_score?: string +} + +interface DealListItem { + id: string; + pro_id: string; + title: string; + price: string; + quantity: string; + min_purchase: string; + max_purchase: string; + is_featured: string; + from_time: string; + to_time: string; + is_started: number; +} + +interface PricingTrace { + price: string; + type: string; + type_id: string; +} + +interface Category { + id: string; + catPath: string; + name: string; + url: string; +} + +interface ProductInfo { + id: number; + productId: number; + priceUnit: string; + marketPrice: number; + price: string; + price_off: number | string; + currency: string; + sale_rules: SaleRules; + lastUpdate: string; + warranty: string; + productName: string; + productSummary: string; + package_accessory: string; + productImage: ImageInfo; + imageCollection: ProductImage[]; + productUrl: string; + brand: BrandInfo; + visit: number; + rating: number; + reviewCount: number; + review: ReviewInfo; + comment: ReviewInfo; + quantity: number; + productSKU: string; + productModel: string; + hasVAT: number; + condition: string; + config_count: number; + configurable: number; + component_count: number; + specialOffer: SpecialOffer; + specialOfferGroup: []; + productType: ProductTypeFlags; + bulk_price: []; + thum_poster: string; + thum_poster_type: string; + addon: []; + variants: []; + variant_option: []; + extend: ProductTypeExtend; + weight: number; + promotion_price: null; + deal_list: DealListItem[]; + pricing_traces: PricingTrace[]; + categories: Category[]; +} + +interface DealType { + id: string; + pro_id: string; + title: string; + price: string; + customer_group_price: string; + quantity: string; + min_purchase: string; + max_purchase: string; + from_time: string; + to_time: string; + is_featured: string; + last_update: string; + last_update_by: string; + ordering: string; + sale_order: string; + sale_quantity: string; + views: string; + rating: string; + review_count: string; + auto_renew: string; + auto_renew_history: null | string; + counter: number; + request_path: string; + deal_time_happen: number; + deal_time_left: number; + is_start: number; + is_end: number; + is_active: string; + product_info: ProductInfo; +} + + +export type TypeListProductDeal = DealType[]; \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index ac7893c..7da22be 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,7 +19,7 @@ } ], "paths": { - "@/*": ["./*"], + "@/*": ["./src/*"], "@components/*": ["./src/components/*"], "@types/*": ["./src/types/*"], "@styles/*": ["./src/styles/*"]