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
1d5bb5c5
Commit
1d5bb5c5
authored
Aug 05, 2021
by
lihui
Browse files
Options
Browse Files
Download
Plain Diff
feat: 自提点
parents
fa7a5964
f53b665e
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
298 additions
and
101 deletions
+298
-101
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
+7
-3
index.js
src/service/Activity/index.js
+15
-0
No files found.
server/controllers/activity.js
View file @
1d5bb5c5
...
...
@@ -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 @
1d5bb5c5
...
...
@@ -76,5 +76,8 @@ router.post(`${API_VERSION}/marketing/background/delete_take_place`, activity.de
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 @
1d5bb5c5
This diff is collapsed.
Click to expand it.
src/pages/Activity/releaseProduc/components/infoEditing.vue
View file @
1d5bb5c5
...
...
@@ -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 @
1d5bb5c5
...
...
@@ -14,7 +14,11 @@
</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"
>
...
...
@@ -109,12 +113,12 @@ export default {
.steps
/
deep
/
.el-step.is-horizontal
.el-step__line
{
top
:
25px
;
}
.content
,
.stepsBtn
{
width
:
100%
;
margin
:
20px
auto
;
}
.stepsBtn
{
width
:
64%
;
text-align
:
center
;
margin-top
:
50px
;
}
...
...
src/service/Activity/index.js
View file @
1d5bb5c5
...
...
@@ -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