From addaaa51b5aba063b12cca2a512f9bc3d93268db Mon Sep 17 00:00:00 2001 From: zyl <648123932@qq.com> Date: Thu, 5 Dec 2024 01:52:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=BC=E5=9B=A2=E5=88=97=E8=A1=A8=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/api/marketing/marketing.js | 30 ++ src/api/product/attributeGroup.js | 8 + src/api/product/info.js | 6 + src/views/marketing/index.vue | 360 +++++++++++++++++++++ src/views/product/attributeGroup/index.vue | 28 +- 6 files changed, 431 insertions(+), 3 deletions(-) create mode 100644 src/api/marketing/marketing.js create mode 100644 src/views/marketing/index.vue diff --git a/package.json b/package.json index 6a46cc5..e2217b6 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "author": "若依", "license": "MIT", "scripts": { - "dev": "vue-cli-service serve", + "dev": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve", "build:prod": "vue-cli-service build", "build:stage": "vue-cli-service build --mode staging", "preview": "node build/index.js --preview", diff --git a/src/api/marketing/marketing.js b/src/api/marketing/marketing.js new file mode 100644 index 0000000..f4a1933 --- /dev/null +++ b/src/api/marketing/marketing.js @@ -0,0 +1,30 @@ +import request from '@/utils/request' + +// 查询商品拼团信息列表 +export function list(data) { + return request({ + url: '/marketing/team/list', + method: 'post', + data + }) +} +export function save(data) { + return request({ + url: '/marketing/team/', + method: 'post', + data + }) +} +export function updateByTeamId(data) { + return request({ + url: '/marketing/team/updateByTeamId', + method: 'put', + data + }) +} +export function findById(id) { + return request({ + url: '/marketing/team/findById/'+id, + method: 'post' + }) +} diff --git a/src/api/product/attributeGroup.js b/src/api/product/attributeGroup.js index 22544a2..2157930 100644 --- a/src/api/product/attributeGroup.js +++ b/src/api/product/attributeGroup.js @@ -42,3 +42,11 @@ export function delAttributeGroup(id) { method: 'delete' }) } +//修改状态按钮 +export function update(data) { + return request({ + url: '/product/update/', + method: 'put', + data + }) +} diff --git a/src/api/product/info.js b/src/api/product/info.js index e15e6f7..ace9eef 100644 --- a/src/api/product/info.js +++ b/src/api/product/info.js @@ -49,3 +49,9 @@ export function delInfo(id) { method: 'delete' }) } +export function findId(id) { + return request({ + url: '/product/sku/list/' + id, + method: 'get' + }) +} diff --git a/src/views/marketing/index.vue b/src/views/marketing/index.vue new file mode 100644 index 0000000..73ea81c --- /dev/null +++ b/src/views/marketing/index.vue @@ -0,0 +1,360 @@ + + + diff --git a/src/views/product/attributeGroup/index.vue b/src/views/product/attributeGroup/index.vue index bba261f..2b2ef19 100644 --- a/src/views/product/attributeGroup/index.vue +++ b/src/views/product/attributeGroup/index.vue @@ -83,7 +83,16 @@ @@ -152,7 +161,14 @@