From 899bd7e31611fb87beeca670bd403f9c731cf7e7 Mon Sep 17 00:00:00 2001 From: ccnetcore Date: Thu, 19 Jun 2025 01:02:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E6=88=90cicd=E6=B5=81?= =?UTF-8?q?=E6=B0=B4=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yi.Ai.Vue3/publish.bat | 24 ++++ Yi.Ai.Vue3/src/data/products.ts | 70 +++++------ Yi.Ai.Vue3/src/pages/product/index.vue | 114 +++++++++++------- .../src/routers/modules/staticRouter.ts | 10 +- Yi.Ai.Vue3/types/import_meta.d.ts | 1 + 5 files changed, 133 insertions(+), 86 deletions(-) create mode 100644 Yi.Ai.Vue3/publish.bat diff --git a/Yi.Ai.Vue3/publish.bat b/Yi.Ai.Vue3/publish.bat new file mode 100644 index 00000000..8eb8b667 --- /dev/null +++ b/Yi.Ai.Vue3/publish.bat @@ -0,0 +1,24 @@ +@echo on + +set SERVER_USER=root +set SERVER_IP=ccnetcore.com +set FILE_PATH=publish_aihub_02.zip +set REMOTE_PATH=/home/yi/build/publish_aihub_02.zip +set REMOTE_COMMAND="cd /home/yi/aihub&&pwd&&unzip -o /home/yi/build/publish_aihub_02.zip -d ./" +set sevenzip_Path="D:\Program Files\7-Zip\7z.exe" + +echo start +echo 1-build-start +:: npm run build +echo 1-build-end +echo 2-zip-start + +%sevenzip_Path% a ./publish_aihub_02.zip ./dist/* +:: tar -cvf publish_bbs_02.zip -C "dist" "*" +echo 2-zip-end +echo 3-publish-start +scp %FILE_PATH% %SERVER_USER%@%SERVER_IP%:%REMOTE_PATH% +ssh %SERVER_USER%@%SERVER_IP% %REMOTE_COMMAND% +echo 3-publish-end +echo end +pause diff --git a/Yi.Ai.Vue3/src/data/products.ts b/Yi.Ai.Vue3/src/data/products.ts index 109b11dc..e6f92531 100644 --- a/Yi.Ai.Vue3/src/data/products.ts +++ b/Yi.Ai.Vue3/src/data/products.ts @@ -1,5 +1,5 @@ // 创建产品数据 -import { Product } from '@/api/products/products' +import type { Product } from '@/api/products/products'; export const products: Product[] = [ { @@ -12,43 +12,43 @@ export const products: Product[] = [ { icon: 'MagicStick', title: '基础模型', - description: '使用我们的基础AI模型完成日常任务' + description: '使用我们的基础AI模型完成日常任务', }, { icon: 'Clock', title: '快速响应', - description: '平均响应时间在2秒以内' + description: '平均响应时间在2秒以内', }, { icon: 'Lock', title: '基础安全', - description: '标准数据加密和保护措施' - } + description: '标准数据加密和保护措施', + }, ], pricing: [ { name: '月付', price: 99, period: '月', - features: ['1000次请求/月', '基础模型访问', '标准支持'] + features: ['1000次请求/月', '基础模型访问', '标准支持'], }, { name: '年付', price: 899, period: '年', - features: ['12000次请求/年', '基础模型访问', '标准支持', '节省15%'] - } + features: ['12000次请求/年', '基础模型访问', '标准支持', '节省15%'], + }, ], faqs: [ { question: '基础版适合哪些用户?', - answer: '适合个人开发者、小型团队或想尝试AI技术的用户。' + answer: '适合个人开发者、小型团队或想尝试AI技术的用户。', }, { question: '超出请求次数会怎样?', - answer: '超出后可以按需购买额外请求包或升级到更高版本。' - } - ] + answer: '超出后可以按需购买额外请求包或升级到更高版本。', + }, + ], }, { id: 'pro', @@ -60,44 +60,44 @@ export const products: Product[] = [ { icon: 'Cpu', title: '高级模型', - description: '使用我们最先进的AI模型获得更好结果' + description: '使用我们最先进的AI模型获得更好结果', }, { icon: 'DataLine', title: '数据分析', - description: '内置数据分析工具和可视化' + description: '内置数据分析工具和可视化', }, { icon: 'User', title: '优先支持', - description: '专属客户经理和技术支持' - } + description: '专属客户经理和技术支持', + }, ], pricing: [ { name: '月付', price: 299, period: '月', - features: ['5000次请求/月', '高级模型访问', '优先支持', '数据分析工具'] + features: ['5000次请求/月', '高级模型访问', '优先支持', '数据分析工具'], }, { name: '年付', price: 2599, period: '年', features: ['60000次请求/年', '高级模型访问', '专属客户经理', '节省25%', '数据分析工具'], - isPopular: true - } + isPopular: true, + }, ], faqs: [ { question: '专业版有什么额外功能?', - answer: '包含高级模型访问、数据分析工具和优先支持服务。' + answer: '包含高级模型访问、数据分析工具和优先支持服务。', }, { question: '可以定制请求次数吗?', - answer: '可以联系我们定制适合您业务需求的套餐。' - } - ] + answer: '可以联系我们定制适合您业务需求的套餐。', + }, + ], }, { id: 'enterprise', @@ -109,36 +109,36 @@ export const products: Product[] = [ { icon: 'Setting', title: '完全定制', - description: '根据您的需求定制AI模型和工作流' + description: '根据您的需求定制AI模型和工作流', }, { icon: 'OfficeBuilding', title: '专属部署', - description: '支持私有化部署和专属云服务' + description: '支持私有化部署和专属云服务', }, { icon: 'Service', title: '专属团队', - description: '我们的工程师团队为您提供专属支持' - } + description: '我们的工程师团队为您提供专属支持', + }, ], pricing: [ { name: '定制方案', price: 0, period: '', - features: ['无限请求', '完全定制模型', '私有化部署', '专属支持团队', 'SLA保障'] - } + features: ['无限请求', '完全定制模型', '私有化部署', '专属支持团队', 'SLA保障'], + }, ], faqs: [ { question: '企业版如何定价?', - answer: '根据您的具体需求定制价格,请联系我们的销售团队获取报价。' + answer: '根据您的具体需求定制价格,请联系我们的销售团队获取报价。', }, { question: '支持私有化部署吗?', - answer: '是的,我们支持完全的私有化部署以满足企业安全需求。' - } - ] - } -] + answer: '是的,我们支持完全的私有化部署以满足企业安全需求。', + }, + ], + }, +]; diff --git a/Yi.Ai.Vue3/src/pages/product/index.vue b/Yi.Ai.Vue3/src/pages/product/index.vue index e41cf847..e4ee98f5 100644 --- a/Yi.Ai.Vue3/src/pages/product/index.vue +++ b/Yi.Ai.Vue3/src/pages/product/index.vue @@ -1,15 +1,48 @@ + + - -