diff --git a/docs/request.sh b/docs/request.sh index 1836159..bbd9398 100644 --- a/docs/request.sh +++ b/docs/request.sh @@ -70,4 +70,39 @@ curl --location 'https://land.dbiz.com//api/method/building_material.building_ma } ] } -} \ No newline at end of file +} + +#create new design request +curl --location 'https://land.dbiz.com//api/method/building_material.building_material.api.design_request.create' \ +--header 'Cookie: sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d; full_name=Ha%20Duy%20Lam; sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d; system_user=yes; user_id=lamhd%40gmail.com; user_image=/files/avatar_0986788766_1763627962.jpg' \ +--header 'X-Frappe-Csrf-Token: 6ff3be4d1f887dbebf86ba4502b05d94b30c0b0569de49b74a7171a9' \ +--header 'Content-Type: application/json' \ +--data '{ + "subject": "Nhà phố 2 tầng", + "area": "150", + "region": "Quận 1, TP.HCM", + "desired_style": "Hiện đại", + "estimated_budget": "500 triệu", + "detailed_requirements": "Cần thiết kế phòng khách rộng, 3 phòng ngủ", + "dateline": "2025-12-31" +}' +#response +{ + "message": { + "success": true, + "data": { + "name": "ISS-2025-00006" + } + } +} + +#upload file +curl --location 'https://land.dbiz.com//api/method/upload_file' \ +--header 'Cookie: sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d; full_name=Ha%20Duy%20Lam; sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d; system_user=yes; user_id=lamhd%40gmail.com; user_image=/files/avatar_0986788766_1763627962.jpg' \ +--header 'X-Frappe-Csrf-Token: 6ff3be4d1f887dbebf86ba4502b05d94b30c0b0569de49b74a7171a9' \ +--form 'file=@"/C:/Users/tiennld/Downloads/b0d6423a04ce8890d1df.jpg"' \ +--form 'is_private="0"' \ +--form 'folder="Home/Attachments"' \ +--form 'doctype="Issue"' \ +--form 'docname="ISS-2025-00005"' \ +--form 'optimize="true"' \ No newline at end of file diff --git a/html/design-request-detail.html b/html/design-request-detail.html index 3e8a907..145b40c 100644 --- a/html/design-request-detail.html +++ b/html/design-request-detail.html @@ -49,6 +49,8 @@ font-weight: 600; text-transform: uppercase; display: inline-block; + background: #d1fae5; + color: #065f46; } .status-pending { @@ -66,32 +68,93 @@ color: #065f46; } - .info-grid { - display: grid; - grid-template-columns: 1fr 1fr; - gap: 16px; - margin-bottom: 24px; + /* Description List Styles */ + .description-list { + display: flex; + flex-direction: column; + gap: 10px; } - .info-item { - text-align: center; - padding: 16px 12px; - background: #f8fafc; - border-radius: 8px; + .description-item { + display: flex; + border-bottom: 1px solid #f3f4f6; + padding-bottom: 12px; } - .info-label { - font-size: 12px; + .description-item:last-child { + border-bottom: none; + padding-bottom: 0; + } + + .description-label { + flex-shrink: 0; + width: 120px; + font-size: 13px; color: #6b7280; - font-weight: 600; - text-transform: uppercase; - margin-bottom: 4px; + font-weight: 500; + padding-top: 2px; } - .info-value { - font-size: 16px; - font-weight: 700; + .description-value { + flex: 1; + font-size: 15px; color: #1f2937; + font-weight: 500; + line-height: 2; + } + + /* Floor Plan Styles */ + .floor-plan-container { + margin-top: 12px; + } + + .floor-plan-thumbnail { + position: relative; + border-radius: 12px; + overflow: hidden; + cursor: pointer; + transition: transform 0.3s ease; + } + + .floor-plan-thumbnail:hover { + transform: translateY(-4px); + } + + .floor-plan-image { + width: 100%; + height: auto; + display: block; + border-radius: 12px; + } + + .floor-plan-overlay { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background: rgba(0, 91, 154, 0.85); + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + gap: 8px; + opacity: 0; + transition: opacity 0.3s ease; + color: white; + } + + .floor-plan-thumbnail:hover .floor-plan-overlay { + opacity: 1; + } + + .floor-plan-overlay i { + font-size: 32px; + } + + .floor-plan-overlay span { + font-size: 14px; + font-weight: 600; } .detail-section { @@ -302,17 +365,13 @@ } @media (max-width: 768px) { - .info-grid { - grid-template-columns: 1fr; - gap: 12px; + .description-item { + flex-direction: column; + gap: 4px; } - .info-item { - display: flex; - justify-content: space-between; - align-items: center; - text-align: left; - padding: 12px 16px; + .description-label { + width: auto; } .action-buttons { @@ -343,27 +402,31 @@ Hoàn thành - -
-
-
Diện tích
-
120m²
-
-
-
Phong cách
-
Hiện đại
-
-
+ +
+
-
-
-
Ngân sách
-
300-500 triệu
-
-
-
Trạng thái
-
Đã hoàn thành
-
+
+

+ + Thông tin thiết kế +

+ +
+
+
Tên công trình:
+
Thiết kế nhà phố 3 tầng - Anh Minh (Quận 7)
+
+
+
Mô tả chi tiết:
+
+Diện tích: 85 m²
+Khu vực: Hồ Chí Minh
+Phong cách mong muốn: Hiện đại
+Ngân sách dự kiến: Trao đổi trực tiếp
+Yêu cầu chi tiết: Thiết kế với 4 phòng ngủ, 3 phòng tắm, phòng khách rộng rãi và khu bếp mở. Ưu tiên sử dụng gạch men màu sáng để tạo cảm giác thoáng đãng. +
+
@@ -379,40 +442,8 @@ - +
-
-

- - Thông tin dự án -

-
-

Tên dự án: Thiết kế nhà phố 3 tầng - Anh Minh (Quận 7)

-
-
- -
-

- - Mô tả yêu cầu -

-
- Thiết kế nhà phố 3 tầng phong cách hiện đại với 4 phòng ngủ, 3 phòng tắm, phòng khách rộng rãi và khu bếp mở. - Ưu tiên sử dụng gạch men màu sáng để tạo cảm giác thoáng đãng. Tầng 1: garage, phòng khách, bếp. - Tầng 2: 2 phòng ngủ, 2 phòng tắm. Tầng 3: phòng ngủ master, phòng làm việc, sân thượng. -
-
- -
-

- - Thông tin liên hệ -

-
- SĐT: 0901234567 | Email: minh.nguyen@email.com -
-
-

@@ -440,7 +471,7 @@

-
+
-