From 085070f3314476ea1bdc5d7bbe1a7fb93dea3858 Mon Sep 17 00:00:00 2001 From: "2090205686@qq.com" Date: Thu, 5 Jun 2025 18:29:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E4=B8=AD=E5=BF=83=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E5=BC=80=E5=8F=91=EF=BC=88=E6=96=B0=E5=A2=9E=E5=95=86?= =?UTF-8?q?=E5=93=81=EF=BC=8C=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8=EF=BC=89?= =?UTF-8?q?=EF=BC=8C=E4=B8=8A=E4=BC=A0=E5=9B=BE=E7=89=87=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E4=B8=8A=E4=BC=A0=E8=A7=86=E9=A2=91=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 2 +- package.json | 2 +- src/api/goods/info.js | 13 +- src/assets/styles/custom.scss | 85 +++- src/components/myUploadImage.vue | 387 ++++++++++++++++++ src/components/myUploadVideo.vue | 286 +++++++++++++ src/components/tableComponent.vue | 10 + src/views/customer/customerManage.vue | 166 ++------ src/views/goods/addGoods.vue | 564 ++++++++++++++++++++++---- src/views/goods/goodsCategory.vue | 1 + src/views/goods/goodsManage.vue | 213 ++++------ vite.config.js | 4 +- 13 files changed, 1359 insertions(+), 376 deletions(-) create mode 100644 src/components/myUploadImage.vue create mode 100644 src/components/myUploadVideo.vue diff --git a/.env.development b/.env.development index 6f56968..84a632c 100644 --- a/.env.development +++ b/.env.development @@ -5,5 +5,5 @@ VITE_APP_TITLE = 运营云后台管理系统 VITE_APP_ENV = 'development' # 开发环境 -VITE_APP_BASE_API = 'http://192.168.18.99:8080/' +VITE_APP_BASE_API = 'http://192.168.18.151:8080' VITE_APP_PLATFORM = 'http://localhost:9000/platform' \ No newline at end of file diff --git a/.env.production b/.env.production index 281197b..5b5b061 100644 --- a/.env.production +++ b/.env.production @@ -5,7 +5,7 @@ VITE_APP_TITLE = 运营云后台管理系统 VITE_APP_ENV = 'production' # 生产环境 -VITE_APP_BASE_API = 'http://47.109.205.240:8080/' +VITE_APP_BASE_API = 'http://47.109.205.240:8080' VITE_APP_PLATFORM = 'http://47.109.205.240/platform' # 是否在打包时开启压缩,支持 gzip 和 brotli diff --git a/package.json b/package.json index e5623d3..1aeedc3 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "vue": "3.4.31", "vue-cropper": "1.1.1", "vue-router": "4.4.0", - "vuedraggable": "4.1.0" + "vuedraggable": "^4.1.0" }, "devDependencies": { "@vitejs/plugin-vue": "5.0.5", diff --git a/src/api/goods/info.js b/src/api/goods/info.js index 46c79d7..861fc76 100644 --- a/src/api/goods/info.js +++ b/src/api/goods/info.js @@ -2,14 +2,23 @@ import request from '@/utils/request' // 获取商品管理列表 export function getGoodManageInfo(query) { + console.log(query) return request({ - url: '/goodInfoManage/getGoodManage', + url: '/goods/goodInfoManage/getGoodManage', method: 'get', params: query }) } - +// 获取商品分类列表 +export function getGoodType(query) { + console.log(query) + return request({ + url: '/goods/goodInfoManage/goodType', + method: 'get', + params: query + }) +} diff --git a/src/assets/styles/custom.scss b/src/assets/styles/custom.scss index 14e520d..f466efa 100644 --- a/src/assets/styles/custom.scss +++ b/src/assets/styles/custom.scss @@ -174,24 +174,30 @@ cursor: pointer; transition: all 0.3s; } - // 表格中文本的颜色 - .color-gray { - color: #5a5a5a; - } - .color-orange { - color: orange; - } - .color-green { - color: green; - } - .color-red { - color: red; - } - } - .el-button { - font-size: 12px !important; - font-weight: 400; } + // 表格中文本的颜色 + .color-blue { + color: #3685fe; + } + .color-black { + color: #000000; + } + .color-gray { + color: #5a5a5a; + } + .color-orange { + color: #ffb345; + } + .color-green { + color: #25bf82; + } + .color-red { + color: #ff4348; + } +} +.el-button { + font-size: 12px !important; + font-weight: 400; } // 页面添加的自定义容器,上下撑满 .customer-control { @@ -217,12 +223,53 @@ width: 60px; height: 60px; overflow: hidden; /* 隐藏超出部分 */ - display: flex; /* 使用 Flex 布局居中 */ + display: flex; /* 使用 Flex 布局居中 */ justify-content: center; align-items: center; .table-cell-img { - min-width: 100%; /* 至少撑满宽度 */ + min-width: 100%; /* 至少撑满宽度 */ min-height: 100%; /* 至少撑满高度 */ object-fit: cover; /* 保持比例并覆盖容器 */ } } + +// 新增商品页面-开始 +.customer-box { + height: 100%; + border-radius: 16px; + padding: 20px 16px; + overflow-y: auto; + background-color: #fff; + .my-el-select { + width: 200px; + } + .el-input-number .el-input__inner { + text-align: left; + } + // 商品属性 + .attr-item { + display: inline-block; + margin-right: 10px; + .el-icon { + vertical-align: middle; + margin: 5px; + } + } + .attr-row { + display: flex; + flex-direction: row; + justify-content: flex-start; + flex-wrap: nowrap; + gap: 10px; + margin-bottom: 10px; + } + .attr-input { + width: 120px; + } + .attr-box { + padding: 16px 16px 6px 16px; + border-radius: 6px; + border: 1px solid #999; + } +} +// 新增商品页面-结束 diff --git a/src/components/myUploadImage.vue b/src/components/myUploadImage.vue new file mode 100644 index 0000000..435908c --- /dev/null +++ b/src/components/myUploadImage.vue @@ -0,0 +1,387 @@ + + + + + \ No newline at end of file diff --git a/src/components/myUploadVideo.vue b/src/components/myUploadVideo.vue new file mode 100644 index 0000000..3ccac7d --- /dev/null +++ b/src/components/myUploadVideo.vue @@ -0,0 +1,286 @@ + + + + diff --git a/src/components/tableComponent.vue b/src/components/tableComponent.vue index 7c065f4..6c640b8 100644 --- a/src/components/tableComponent.vue +++ b/src/components/tableComponent.vue @@ -39,6 +39,11 @@ width="55" align="center" /> + + +