From dd24aad547d60443a45f767684338b2008919191 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Thu, 9 May 2024 14:08:56 +0800 Subject: [PATCH 1/4] 1 --- .env.production | 4 ++-- src/views/data/financial_information/details.vue | 11 +++++++++++ src/views/data/financial_information/edit.vue | 11 +++++++++++ src/views/data/financial_information/index.vue | 11 +++++++++++ src/views/shop/component/add.vue | 2 +- 5 files changed, 36 insertions(+), 3 deletions(-) diff --git a/.env.production b/.env.production index 8608b42..7781f76 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,4 @@ NODE_ENV = 'production' # Base API -# VITE_APP_BASE_URL='http://192.168.1.22:8596' -VITE_APP_BASE_URL='https://erp.lihaink.cn' \ No newline at end of file +# VITE_APP_BASE_URL='https://erp.lihaink.cn' +VITE_APP_BASE_URL='' \ No newline at end of file diff --git a/src/views/data/financial_information/details.vue b/src/views/data/financial_information/details.vue index e69de29..a3d5367 100644 --- a/src/views/data/financial_information/details.vue +++ b/src/views/data/financial_information/details.vue @@ -0,0 +1,11 @@ + + + + + + + \ No newline at end of file diff --git a/src/views/data/financial_information/edit.vue b/src/views/data/financial_information/edit.vue index e69de29..a3d5367 100644 --- a/src/views/data/financial_information/edit.vue +++ b/src/views/data/financial_information/edit.vue @@ -0,0 +1,11 @@ + + + + + + + \ No newline at end of file diff --git a/src/views/data/financial_information/index.vue b/src/views/data/financial_information/index.vue index e69de29..a3d5367 100644 --- a/src/views/data/financial_information/index.vue +++ b/src/views/data/financial_information/index.vue @@ -0,0 +1,11 @@ + + + + + + + \ No newline at end of file diff --git a/src/views/shop/component/add.vue b/src/views/shop/component/add.vue index 8cb443f..2cda0b9 100644 --- a/src/views/shop/component/add.vue +++ b/src/views/shop/component/add.vue @@ -2,7 +2,7 @@ import { ref, watch, nextTick, computed, onMounted, onUnmounted } from "vue"; import { ElMessage } from "element-plus"; import mitt from "@/utils/mitt.js"; -import { useUserStore } from "@/store/user.js"; +import useUserStore from '@/stores/modules/user'; import config from "@/config"; import { categoryListApi, From cea3d319bb8c4a723d9021146d9727205c3112a5 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Thu, 9 May 2024 14:25:22 +0800 Subject: [PATCH 2/4] 1 --- src/api/shop.ts | 96 ++++++++++++++++---------------- src/views/shop/component/add.vue | 3 +- src/views/shop/index.vue | 2 +- 3 files changed, 50 insertions(+), 51 deletions(-) diff --git a/src/api/shop.ts b/src/api/shop.ts index 9ce5f8f..3f1f41d 100644 --- a/src/api/shop.ts +++ b/src/api/shop.ts @@ -7,58 +7,58 @@ export function storeListApi(id:any, data:any) { return request.get(`server/${id}/product/lst`, { params: data }) } -// /** -// * @description 商品详情 -// */ -// export function getAttrValue(id:any, data:any) { -// return request.get(`store/product/detail/${id}`, { params: data }) -// } +/** + * @description 商品详情 + */ +export function getAttrValue(id:any, data:any) { + return request.get(`store/product/detail/${id}`, { params: data }) +} -// /** -// * @description 免审编辑 -// */ -// export function userFreeTrialApi(id:any, data:any) { -// return request.post(`user_free_trial/${id}`, data) -// } +/** + * @description 免审编辑 + */ +export function userFreeTrialApi(id:any, data:any) { + return request.post(`user_free_trial/${id}`, data) +} -// /** -// * @description 商品状态分类数量 -// */ -// export function productTitleApi(id:any, data:any) { -// return request.get(`server/${id}/product/title`, { params: data }) -// } +/** + * @description 商品状态分类数量 + */ +export function productTitleApi(id:any, data:any) { + return request.get(`server/${id}/product/title`, { params: data }) +} -// /** -// * @description 上下架 -// */ -// export function productStatusApi(mer_id:any, id:any, data:any) { -// return request.post(`server/${mer_id}/product/status/${id}`, data) -// } +/** + * @description 上下架 + */ +export function productStatusApi(mer_id:any, id:any, data:any) { + return request.post(`server/${mer_id}/product/status/${id}`, data) +} -// /** -// * @description 平台分类 -// */ -// export function categoryListApi(mer_id:any, data:any) { -// return request.get(`server/${mer_id}/category/list`, { params: data }) -// } +/** + * @description 平台分类 + */ +export function categoryListApi(mer_id:any, data:any) { + return request.get(`server/${mer_id}/category/list`, { params: data }) +} -// /** -// * @description 添加商品 -// */ -// export function productCreateApi(mer_id:any, data:any) { -// return request.post(`server/${mer_id}/product/create`, data) -// } +/** + * @description 添加商品 + */ +export function productCreateApi(mer_id:any, data:any) { + return request.post(`server/${mer_id}/product/create`, data) +} -// /** -// * @description 编辑商品 -// */ -// export function productUpdateApi(mer_id:any, id:any, data:any) { -// return request.post(`server/${mer_id}/product/update/${id}`, data) -// } +/** + * @description 编辑商品 + */ +export function productUpdateApi(mer_id:any, id:any, data:any) { + return request.post(`server/${mer_id}/product/update/${id}`, data) +} -// /** -// * @description 商品详情 -// */ -// export function productDetailApi(mer_id:any, id:any, data:any) { -// return request.get(`server/${mer_id}/product/detail/${id}`, { params: data }) -// } +/** + * @description 商品详情 + */ +export function productDetailApi(mer_id:any, id:any, data:any) { + return request.get(`server/${mer_id}/product/detail/${id}`, { params: data }) +} diff --git a/src/views/shop/component/add.vue b/src/views/shop/component/add.vue index 2cda0b9..633684f 100644 --- a/src/views/shop/component/add.vue +++ b/src/views/shop/component/add.vue @@ -1,7 +1,6 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+