From f65bcd59f71778cdbd3e7a0cc87fd38376b5111b Mon Sep 17 00:00:00 2001 From: liqi Date: Wed, 7 May 2025 22:23:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/AuthModal.vue | 3 +- src/views/admin/Projects.vue | 102 +++----------- src/views/admin/common/ProjectDetails.vue | 154 +++++++++++----------- vite.config.js | 3 +- 4 files changed, 104 insertions(+), 158 deletions(-) diff --git a/src/components/common/AuthModal.vue b/src/components/common/AuthModal.vue index ddacc3f..4911dac 100644 --- a/src/components/common/AuthModal.vue +++ b/src/components/common/AuthModal.vue @@ -32,6 +32,7 @@ onMounted(() => { }) const show = () => { + loginType.value = 1; visible.value = true setTimeout(() => { document.querySelectorAll('[data-aos]').forEach(el => { @@ -406,4 +407,4 @@ button, a, [role="button"], .cursor-pointer { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; } - \ No newline at end of file + diff --git a/src/views/admin/Projects.vue b/src/views/admin/Projects.vue index ec4006e..b90e700 100644 --- a/src/views/admin/Projects.vue +++ b/src/views/admin/Projects.vue @@ -42,79 +42,7 @@ const getCategoryOption = () => { }) } -const dataSource = ref([ - { - id: 1, - title: "电商平台", - category: { id: 1, name: "Web应用", value: "Web应用" }, - tags: [ - { - id: 1, - name: "Vue", - value: "Vue", - } - ], - author: "Admin", - price: 29999, - status: "已发布", - createdAt: "2024-03-20T00:00:00Z", - cover: "https://pic.rmb.bdstatic.com/bjh/80852bfe7c321988191838517ba64e309354.jpeg@h_1280", - description: "基于Vue3和Node.js开发的电商平台,提供完整的购物流程,包括注册、登录、购物、支付等功能。", - features: ["响应式设计,支持多端访问", "完整的商品管理系统", "订单处理和物流跟踪"], - technicalStack: ["前端:Vue3 + TypeScript", "后端:Node.js + MongoDB", "部署:Docker"], - screenshots: [ - "https://pic.rmb.bdstatic.com/bjh/80852bfe7c321988191838517ba64e309354.jpeg@h_1280", - "https://img2.baidu.com/it/u=1629222614,1358629025&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500" - ], - video_url: "http://d-jy.nailaoyun.cn//storage/video//20250327/2cc1abf9bd69410ce7c69660daf54260.mp4" - }, - { - id: 2, - title: "CRM系统", - category: { id: 4, name: "企业系统", value: "企业系统" }, - tags: [ - { - id: 1, - name: "Vue", - value: "Vue", - } - ], - author: "Admin", - price: 19999, - status: "已发布", - createdAt: "2024-03-15T00:00:00Z", - cover: "https://pic.rmb.bdstatic.com/bjh/80852bfe7c321988191838517ba64e309354.jpeg@h_1280", - description: "基于React和Express开发的CRM系统,提供客户管理、销售跟踪和数据分析功能。", - features: ["客户信息管理", "销售漏斗跟踪", "数据分析和报表"], - technicalStack: ["前端:React + Redux", "后端:Express + MySQL", "部署:AWS"], - screenshots: [ - "https://pic.rmb.bdstatic.com/bjh/80852bfe7c321988191838517ba64e309354.jpeg@h_1280" - ], - video_url: "" - }, - { - id: 3, - title: "数据分析平台", - category: { id: 1, name: "Web应用", value: "Web应用" }, - tags: [ - { - id: 1, - name: "Vue", - value: "Vue", - } - ], - author: "Admin", - price: 24999, - status: "草稿", - createdAt: "2024-03-10T00:00:00Z", - cover: "https://pic.rmb.bdstatic.com/bjh/80852bfe7c321988191838517ba64e309354.jpeg@h_1280", - description: "基于Vue3和Python开发的数据分析平台,提供数据可视化和深度分析功能。", - features: ["实时数据仪表盘", "自定义报表生成", "数据导入导出"], - technicalStack: ["前端:Vue3 + ECharts", "后端:Python + Django", "部署:Docker + Kubernetes"], - screenshots: [], - video_url: "" - }, -]) +const dataSource = ref([]) const getList = () => { projectListApi({ @@ -177,7 +105,7 @@ const showDetailModal = ref(false) const currentDetailItem = ref(null) const handlePreview = (file) => { - previewImage.value = file.url || file.preview + previewImage.value = file.url || file.thumbUrl previewVisible.value = true } @@ -830,7 +758,7 @@ getList();
-
+
@@ -841,15 +769,15 @@ getList(); mode="multiple" placeholder="请选择标签" :fieldNames="{ - label: 'name', - value: 'id', - }" + label: 'name', + value: 'id', + }" />
-
+
-
+