From 62c7022d23f94493676f25352cfd9b434ad7bfe5 Mon Sep 17 00:00:00 2001 From: xiaoma Date: Mon, 2 Feb 2026 21:44:40 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20AIservicesPage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++ frontend/src/pages/AIServices.jsx | 122 ++++++++++++++++++++------- frontend/src/pages/ServiceDetail.jsx | 41 +++++++-- 3 files changed, 134 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index ffe957c..35048e2 100644 --- a/README.md +++ b/README.md @@ -159,6 +159,14 @@ qweasdzxc1 - `POST /api/payments/initiate/` - 发起支付 - `POST /api/payments/confirm/` - 确认支付 + +## 上传图片接口 不要乱传文件,造成oss存储费用增加 +### 上传硬件的3D文件(小智参数) zip压缩包,包含3文件和材质文件 +- `POST https://tangledup-ai-staging.oss-cn-shanghai.aliyuncs.com/market_page/hardware_xiaozhi/product_3D_image` - 上传3D文件 + +### 上传硬件的图片(小智参数) 单张图片 +- `POST https://tangledup-ai-staging.oss-cn-shanghai.aliyuncs.com/market_page/hardware_xiaozhi/product_image` - 上传图片 + ## 🎯 使用说明 ### 推广码功能 diff --git a/frontend/src/pages/AIServices.jsx b/frontend/src/pages/AIServices.jsx index a2a7f3d..0d19caf 100644 --- a/frontend/src/pages/AIServices.jsx +++ b/frontend/src/pages/AIServices.jsx @@ -1,7 +1,14 @@ import React, { useEffect, useState } from 'react'; import { Row, Col, Typography, Button, Spin } from 'antd'; import { motion } from 'framer-motion'; -import { RightOutlined } from '@ant-design/icons'; +import { + RightOutlined, + SearchOutlined, + DatabaseOutlined, + ThunderboltOutlined, + CheckCircleOutlined, + CloudServerOutlined +} from '@ant-design/icons'; import { getServices } from '../api'; import { useNavigate } from 'react-router-dom'; @@ -127,41 +134,96 @@ const AIServices = () => { ))} - {/* 动态流程图模拟 */} + {/* 动态流程图优化 */} - 服务流程 - - {['需求分析', '数据准备', '模型训练', '测试验证', '私有化部署'].map((step, i) => ( - -
- {step} - {/* 简单的连接线模拟 */} - {i < 4 && ( -
- )} -
- - ))} +
+ + + <span className="neon-text-green">服务流程</span> + + + + {[ + { title: '需求分析', icon: , desc: '深度沟通需求' }, + { title: '数据准备', icon: , desc: '高效数据处理' }, + { title: '模型训练', icon: , desc: '高性能算力' }, + { title: '测试验证', icon: , desc: '多维精度测试' }, + { title: '私有化部署', icon: , desc: '全栈落地部署' } + ].map((step, i) => ( + +
+ + {step.icon} + + + +
{step.title}
+
{step.desc}
+
+ + {/* 连接线 */} + {i < 4 && ( +
+ )} +
+ + ))} + diff --git a/frontend/src/pages/ServiceDetail.jsx b/frontend/src/pages/ServiceDetail.jsx index e8f7ed9..a1e2631 100644 --- a/frontend/src/pages/ServiceDetail.jsx +++ b/frontend/src/pages/ServiceDetail.jsx @@ -97,13 +97,28 @@ const ServiceDetail = () => { {service.description} -
- 服务详情 - - 交付周期}> +
+ + <div style={{ width: 4, height: 18, background: service.color, marginRight: 10, borderRadius: 2 }} /> + 服务详情 + + + 交付周期}> {service.delivery_time || '待沟通'} - 交付内容}> + 交付内容}> {service.delivery_content || '根据需求定制'} @@ -147,9 +162,21 @@ const ServiceDetail = () => { / {service.unit} 起
-
+
{service.features_list && service.features_list.map((feat, i) => ( - + {feat} ))}