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
f53b665e
Commit
f53b665e
authored
Aug 04, 2021
by
your yuchenglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:查看商品详情,编辑商品详情
parent
b09f2bb6
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
295 additions
and
103 deletions
+295
-103
activity.js
server/controllers/activity.js
+22
-0
router.js
server/router.js
+3
-0
addProduc.vue
src/pages/Activity/releaseProduc/components/addProduc.vue
+246
-97
infoEditing.vue
src/pages/Activity/releaseProduc/components/infoEditing.vue
+5
-1
index.vue
src/pages/Activity/releaseProduc/index.vue
+4
-5
index.js
src/service/Activity/index.js
+15
-0
No files found.
server/controllers/activity.js
View file @
f53b665e
...
...
@@ -33,6 +33,28 @@ exports.pindanGoods = async ctx => {
ctx
.
body
=
await
req
(
ctx
,
opts
);
};
// 查看商品详情
exports
.
markGoodsInfo
=
async
ctx
=>
{
const
url
=
`
${
ACTIVITY_URI
}
/goods/background/marketing_goods_info`
;
const
opts
=
{
url
,
method
:
"GET"
};
ctx
.
body
=
await
req
(
ctx
,
opts
);
};
// 编辑商品
exports
.
editGoods
=
async
ctx
=>
{
const
url
=
`
${
ACTIVITY_URI
}
/goods/background/edit_goods`
;
const
opts
=
{
url
,
method
:
"POST"
,
json
:
true
,
body
:
ctx
.
request
.
body
};
ctx
.
body
=
await
req
(
ctx
,
opts
);
};
// 获取活动过列表
exports
.
getActivityList
=
async
ctx
=>
{
const
url
=
`
${
ACTIVITY_URI
}
/marketing/background/marketing_list`
;
...
...
server/router.js
View file @
f53b665e
...
...
@@ -72,5 +72,8 @@ router.post(`${API_VERSION}/marketing/background/marketing_info`, activity.check
router
.
get
(
`
${
API_VERSION
}
/goods/background/ota_list`
,
activity
.
getBusinessList
);
router
.
post
(
`
${
API_VERSION
}
/goods/background/add_goods`
,
activity
.
addGoods
);
router
.
get
(
`
${
API_VERSION
}
/goods/background/pindan_goods`
,
activity
.
pindanGoods
);
router
.
get
(
`
${
API_VERSION
}
/goods/background/marketing_goods_info`
,
activity
.
markGoodsInfo
);
router
.
post
(
`
${
API_VERSION
}
/goods/background/edit_goods`
,
activity
.
editGoods
);
module
.
exports
=
router
;
src/pages/Activity/releaseProduc/components/addProduc.vue
View file @
f53b665e
This diff is collapsed.
Click to expand it.
src/pages/Activity/releaseProduc/components/infoEditing.vue
View file @
f53b665e
...
...
@@ -94,5 +94,9 @@ export default {
};
</
script
>
<
style
>
<
style
scoped
>
.infoEditing
{
width
:
64%
;
margin
:
0
auto
;
}
</
style
>
\ No newline at end of file
src/pages/Activity/releaseProduc/index.vue
View file @
f53b665e
...
...
@@ -14,7 +14,7 @@
</el-steps>
<div
class=
"content"
>
<infoEditing
ref=
"infoEdit"
v-if=
"active === 1"
/>
<addProduc
ref=
"addProduc"
v-else-if=
"active === 2"
/>
<addProduc
ref=
"addProduc"
v-else-if=
"active === 2"
:editInfo=
"infoEditArr"
/>
<spellOrderSet
v-else
/>
</div>
<div
class=
"stepsBtn"
>
...
...
@@ -22,8 +22,7 @@
>
上一步
</el-button
>
<el-button
@
click=
"next"
v-show=
"active
<
3
"
style=
"margin-right: 20px"
>
下一步
</el-button
>
>
下一步
</el-button>
<el-button
@
click=
"cancel"
v-show=
"active == 1"
>
取消
</el-button>
<el-button
@
click=
"confirmRelease"
v-show=
"active == 3"
type=
"primary"
>
确认发布
</el-button
...
...
@@ -109,12 +108,12 @@ export default {
.steps
/
deep
/
.el-step.is-horizontal
.el-step__line
{
top
:
25px
;
}
.content
,
.stepsBtn
{
width
:
64%
;
margin
:
20px
auto
;
}
.stepsBtn
{
width
:
64%
;
text-align
:
center
;
margin-top
:
50px
;
}
...
...
src/service/Activity/index.js
View file @
f53b665e
...
...
@@ -21,6 +21,21 @@ export async function pindanGoods(params) {
});
return
res
;
}
// 查看商品详情
export
async
function
markGoodsInfo
(
params
)
{
const
res
=
await
axios
.
get
(
"/api/v1/goods/background/marketing_goods_info"
,
{
params
});
return
res
;
}
// 编辑商品详情
export
async
function
editGoods
(
params
)
{
const
res
=
await
axios
.
post
(
"/api/v1/goods/background/edit_goods"
,
params
);
return
res
;
}
class
ActivityService
{
// 获取活动列表
static
async
getActivityList
(
params
)
{
...
...
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