This commit is contained in:
parent
dd24aad547
commit
cea3d319bb
|
@ -7,58 +7,58 @@ export function storeListApi(id:any, data:any) {
|
||||||
return request.get(`server/${id}/product/lst`, { params: data })
|
return request.get(`server/${id}/product/lst`, { params: data })
|
||||||
}
|
}
|
||||||
|
|
||||||
// /**
|
/**
|
||||||
// * @description 商品详情
|
* @description 商品详情
|
||||||
// */
|
*/
|
||||||
// export function getAttrValue(id:any, data:any) {
|
export function getAttrValue(id:any, data:any) {
|
||||||
// return request.get(`store/product/detail/${id}`, { params: data })
|
return request.get(`store/product/detail/${id}`, { params: data })
|
||||||
// }
|
}
|
||||||
|
|
||||||
// /**
|
/**
|
||||||
// * @description 免审编辑
|
* @description 免审编辑
|
||||||
// */
|
*/
|
||||||
// export function userFreeTrialApi(id:any, data:any) {
|
export function userFreeTrialApi(id:any, data:any) {
|
||||||
// return request.post(`user_free_trial/${id}`, data)
|
return request.post(`user_free_trial/${id}`, data)
|
||||||
// }
|
}
|
||||||
|
|
||||||
// /**
|
/**
|
||||||
// * @description 商品状态分类数量
|
* @description 商品状态分类数量
|
||||||
// */
|
*/
|
||||||
// export function productTitleApi(id:any, data:any) {
|
export function productTitleApi(id:any, data:any) {
|
||||||
// return request.get(`server/${id}/product/title`, { params: data })
|
return request.get(`server/${id}/product/title`, { params: data })
|
||||||
// }
|
}
|
||||||
|
|
||||||
// /**
|
/**
|
||||||
// * @description 上下架
|
* @description 上下架
|
||||||
// */
|
*/
|
||||||
// export function productStatusApi(mer_id:any, id:any, data:any) {
|
export function productStatusApi(mer_id:any, id:any, data:any) {
|
||||||
// return request.post(`server/${mer_id}/product/status/${id}`, data)
|
return request.post(`server/${mer_id}/product/status/${id}`, data)
|
||||||
// }
|
}
|
||||||
|
|
||||||
// /**
|
/**
|
||||||
// * @description 平台分类
|
* @description 平台分类
|
||||||
// */
|
*/
|
||||||
// export function categoryListApi(mer_id:any, data:any) {
|
export function categoryListApi(mer_id:any, data:any) {
|
||||||
// return request.get(`server/${mer_id}/category/list`, { params: data })
|
return request.get(`server/${mer_id}/category/list`, { params: data })
|
||||||
// }
|
}
|
||||||
|
|
||||||
// /**
|
/**
|
||||||
// * @description 添加商品
|
* @description 添加商品
|
||||||
// */
|
*/
|
||||||
// export function productCreateApi(mer_id:any, data:any) {
|
export function productCreateApi(mer_id:any, data:any) {
|
||||||
// return request.post(`server/${mer_id}/product/create`, data)
|
return request.post(`server/${mer_id}/product/create`, data)
|
||||||
// }
|
}
|
||||||
|
|
||||||
// /**
|
/**
|
||||||
// * @description 编辑商品
|
* @description 编辑商品
|
||||||
// */
|
*/
|
||||||
// export function productUpdateApi(mer_id:any, id:any, data:any) {
|
export function productUpdateApi(mer_id:any, id:any, data:any) {
|
||||||
// return request.post(`server/${mer_id}/product/update/${id}`, data)
|
return request.post(`server/${mer_id}/product/update/${id}`, data)
|
||||||
// }
|
}
|
||||||
|
|
||||||
// /**
|
/**
|
||||||
// * @description 商品详情
|
* @description 商品详情
|
||||||
// */
|
*/
|
||||||
// export function productDetailApi(mer_id:any, id:any, data:any) {
|
export function productDetailApi(mer_id:any, id:any, data:any) {
|
||||||
// return request.get(`server/${mer_id}/product/detail/${id}`, { params: data })
|
return request.get(`server/${mer_id}/product/detail/${id}`, { params: data })
|
||||||
// }
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, watch, nextTick, computed, onMounted, onUnmounted } from "vue";
|
import { ref, watch, nextTick, computed, onMounted, onUnmounted } from "vue";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
import mitt from "@/utils/mitt.js";
|
|
||||||
import useUserStore from '@/stores/modules/user';
|
import useUserStore from '@/stores/modules/user';
|
||||||
import config from "@/config";
|
import config from "@/config";
|
||||||
import {
|
import {
|
||||||
|
@ -9,7 +8,7 @@ import {
|
||||||
productCreateApi,
|
productCreateApi,
|
||||||
productDetailApi,
|
productDetailApi,
|
||||||
productUpdateApi,
|
productUpdateApi,
|
||||||
} from "@/api/shop.js";
|
} from "@/api/shop";
|
||||||
|
|
||||||
const drawer = ref(false);
|
const drawer = ref(false);
|
||||||
const table = {
|
const table = {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, ref } from "vue";
|
import { onMounted, ref } from "vue";
|
||||||
import { storeListApi, userFreeTrialApi, productTitleApi, productStatusApi } from "@/api/shop.ts";
|
import { storeListApi, userFreeTrialApi, productTitleApi, productStatusApi } from "@/api/shop.ts";
|
||||||
import { useUserStore } from "@/store/user.js";
|
import useUserStore from '@/stores/modules/user';
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
import add from "./component/add.vue";
|
import add from "./component/add.vue";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue