Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
op-web-service
Commits
58b89060
Commit
58b89060
authored
Jun 30, 2021
by
mengwenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature:拒绝审核完成
parent
0027faa5
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
553 additions
and
170 deletions
+553
-170
goods.js
server/controllers/goods.js
+32
-0
router.js
server/router.js
+4
-0
index.css
src/pages/Goods/Detail/index.css
+17
-18
index.less
src/pages/Goods/Detail/index.less
+20
-18
index.vue
src/pages/Goods/Detail/index.vue
+454
-132
goods.js
src/service/Goods/goods.js
+26
-2
No files found.
server/controllers/goods.js
View file @
58b89060
...
...
@@ -66,3 +66,35 @@ exports.getGoodsInfo = async ctx => {
};
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
);
};
server/router.js
View file @
58b89060
...
...
@@ -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/offline`
,
goods
.
putOffline
);
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
)
...
...
src/pages/Goods/Detail/index.css
View file @
58b89060
...
...
@@ -16,24 +16,6 @@
display
:
flex
;
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
{
margin
:
10px
0
;
}
...
...
@@ -44,3 +26,20 @@
.el-textarea
.el-textarea__inner
{
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
;
}
src/pages/Goods/Detail/index.less
View file @
58b89060
...
...
@@ -14,24 +14,6 @@
.message {
display: flex;
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 @@
.el-textarea .el-textarea__inner {
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;
}
}
src/pages/Goods/Detail/index.vue
View file @
58b89060
This diff is collapsed.
Click to expand it.
src/service/Goods/goods.js
View file @
58b89060
...
...
@@ -7,7 +7,9 @@ export async function getGoodsList () {
}
// 获取商品列表
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
;
}
// 商品上架
...
...
@@ -26,6 +28,28 @@ export async function putOffline (query) {
}
// 获取商品详情列表
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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment