Commit 1c32f146 by lixiaomin

修改优惠券

parent b143a965
......@@ -8,14 +8,6 @@ export function listClass(query) {
params: query,
});
}
// 查询列表
export function getList(query) {
return request({
url: "/system/category/getList",
method: "get",
params: query,
});
}
// 查询详细
export function getClass(id) {
......@@ -26,10 +18,10 @@ export function getClass(id) {
}
// 新增
export function addClass(data) {
export function addCoupon(data) {
return request({
url: "/system/category",
method: "post",
url: "/coupon",
method: "put",
data: data,
});
}
......
......@@ -18,7 +18,7 @@ export function addCouCategory(data) {
});
}
// 新增
// 修改
export function updateCouCategory(data) {
return request({
url: "/coupon-category/update",
......@@ -51,4 +51,11 @@ export function onlineCouCategory(id) {
});
}
// 详情
export function getCouCategory(id) {
return request({
url: "/coupon-category/detail/" + id,
method: "get",
});
}
......@@ -35,7 +35,7 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: `http://140.143.224.240:8090`,
target: `http://140.143.224.240:8091`,
changeOrigin: true,
pathRewrite: {
["^" + process.env.VUE_APP_BASE_API]: "",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment