Commit 58b89060 authored by mengwenhao's avatar mengwenhao

feature:拒绝审核完成

parent 0027faa5
...@@ -66,3 +66,35 @@ exports.getGoodsInfo = async ctx => { ...@@ -66,3 +66,35 @@ exports.getGoodsInfo = async ctx => {
}; };
ctx.body = await req(ctx, opts); ctx.body = await req(ctx, opts);
}; };
// 商品审核通过
exports.postSuccess = async ctx => {
const url = `${GOODS_URI}/goods/background/audit_pass`;
const opts = {
url,
method: "POST",
json: true,
body: ctx.request.body
};
ctx.body = await req(ctx, opts);
};
exports.checkGoodsName = async ctx => {
const opts = {
url: `${GOODS_URI}/goods/background/check_goods_name`,
method: "POST",
json: true,
body: ctx.request.body
};
ctx.body = req(ctx, opts);
};
exports.auditReject = async ctx => {
const opts = {
url: `${GOODS_URI}/goods/background/audit_reject`,
method: "POST",
json: true,
body: ctx.request.body
};
console.log("审核驳回操作", ctx.request.body);
ctx.body = await req(ctx, opts);
};
...@@ -43,6 +43,10 @@ router.get(`${API_VERSION}/goods/background/get_goods_list`, goods.getList); ...@@ -43,6 +43,10 @@ router.get(`${API_VERSION}/goods/background/get_goods_list`, goods.getList);
router.post(`${API_VERSION}/goods/background/online`, goods.putOnline); router.post(`${API_VERSION}/goods/background/online`, goods.putOnline);
router.post(`${API_VERSION}/goods/background/offline`, goods.putOffline); router.post(`${API_VERSION}/goods/background/offline`, goods.putOffline);
router.get(`${API_VERSION}/goods/background/get_goods_info`, goods.getGoodsInfo); router.get(`${API_VERSION}/goods/background/get_goods_info`, goods.getGoodsInfo);
router.post(`${API_VERSION}/goods/background/audit_pass`, goods.postSuccess);
router.post(`${API_VERSION}/goods/background/check_goods_name`, goods.checkGoodsName);
router.post(`${API_VERSION}/goods/background/audit_reject`, goods.auditReject)
//生活号 //生活号
router.post(`${API_VERSION}/merchant/lifeinner/life_info`, life.get_life_info) router.post(`${API_VERSION}/merchant/lifeinner/life_info`, life.get_life_info)
......
...@@ -16,24 +16,6 @@ ...@@ -16,24 +16,6 @@
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
} }
.detail .message .message_form {
width: 50%;
}
.detail .message .message_form .el-input__inner {
width: 80%;
}
.detail .message .message_form .el-textarea {
width: 80%;
}
.detail .message .message_form .options {
width: 80%;
}
.detail .message .message_form .options .el-input__inner {
width: 100%;
}
.detail .message .message_image {
width: 50%;
}
.message_border { .message_border {
margin: 10px 0; margin: 10px 0;
} }
...@@ -44,3 +26,20 @@ ...@@ -44,3 +26,20 @@
.el-textarea .el-textarea__inner { .el-textarea .el-textarea__inner {
resize: none; resize: none;
} }
.operationButton {
margin-top: 30px;
display: flex;
justify-content: center;
}
.deep_place .el-form-item__content {
display: flex;
align-items: center;
}
.deep_place a {
margin-left: 10px;
text-align: center;
width: 200px;
border-radius: 20px;
color: #fff;
background-color: #199ffb;
}
...@@ -14,24 +14,6 @@ ...@@ -14,24 +14,6 @@
.message { .message {
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
.message_form {
width: 50%;
.el-input__inner {
width: 80%;
}
.el-textarea {
width: 80%;
}
.options {
width: 80%;
.el-input__inner {
width: 100%;
}
}
}
.message_image {
width: 50%;
}
} }
} }
...@@ -46,3 +28,23 @@ ...@@ -46,3 +28,23 @@
.el-textarea .el-textarea__inner { .el-textarea .el-textarea__inner {
resize: none; resize: none;
} }
.operationButton {
margin-top: 30px;
display: flex;
justify-content: center;
}
.deep_place {
.el-form-item__content {
display: flex;
align-items: center;
}
a {
margin-left: 10px;
text-align: center;
width: 200px;
border-radius: 20px;
color: #fff;
background-color: #199ffb;
}
}
This diff is collapsed.
...@@ -7,7 +7,9 @@ export async function getGoodsList () { ...@@ -7,7 +7,9 @@ export async function getGoodsList () {
} }
// 获取商品列表 // 获取商品列表
export async function getList (params) { export async function getList (params) {
const res = await axios.get("/api/v1/goods/background/get_goods_list", { params }); const res = await axios.get("/api/v1/goods/background/get_goods_list", {
params
});
return res; return res;
} }
// 商品上架 // 商品上架
...@@ -26,6 +28,28 @@ export async function putOffline (query) { ...@@ -26,6 +28,28 @@ export async function putOffline (query) {
} }
// 获取商品详情列表 // 获取商品详情列表
export async function getGoodsInfo (params) { export async function getGoodsInfo (params) {
const res = await axios.get("/api/v1/goods/background/get_goods_info", { params }); const res = await axios.get("/api/v1/goods/background/get_goods_info", {
params
});
return res;
}
// 商品详情-审核通过
export async function postSuccess (query) {
const res = await axios.post("/api/v1/goods/background/audit_pass", {
goods_spu_id: query
});
return res;
}
// 审核拒绝
export async function auditReject (query) {
const res = await axios.post("/api/v1/goods/background/audit_reject", query);
return res;
}
// 商品详情-检查商品名称是否重复
export async function checkGoodsName (params) {
const res = await axios.post(
"/api/v1/goods/background/check_goods_name",
params
);
return res; return res;
} }
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