Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5cdc1189
authored
Nov 20, 2021
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
模块代码提交
1 parent
c8c25374
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
15 deletions
src/api/modules/seckillActivity.js
src/views/seckillActivity/editActivity.vue
src/views/seckillActivity/index.vue
src/api/modules/seckillActivity.js
View file @
5cdc118
...
...
@@ -13,6 +13,29 @@ const getActivityPageApi = params => {
})
}
//创建/编辑活动
const
addOrUpdateActivityApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
add.or.update`
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
//活动详情
const
getActivityDetailApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
detail`
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
//开始/结束活动
const
toggleStatusApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
toggle.status`
...
...
@@ -49,5 +72,16 @@ const topActivityApi = params => {
})
}
//分享
const
getSharedApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
get.shared`
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getActivityPageApi
,
toggleStatusApi
,
deleteActivityApi
,
topActivityApi
}
export
default
{
getActivityPageApi
,
toggleStatusApi
,
deleteActivityApi
,
topActivityApi
,
getSharedApi
,
addOrUpdateActivityApi
,
getActivityDetailApi
}
src/views/seckillActivity/editActivity.vue
0 → 100644
View file @
5cdc118
This diff is collapsed.
Click to expand it.
src/views/seckillActivity/index.vue
View file @
5cdc118
...
...
@@ -2,7 +2,7 @@
<
template
>
<div
class=
"marketing pro-group"
>
<div
class=
"m-b-20"
>
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"add
CashCoupon
()"
>
新增秒杀活动
</el-button>
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
@
click=
"add
Activity
()"
>
新增秒杀活动
</el-button>
</div>
<div
class=
"container"
>
<div>
...
...
@@ -26,7 +26,7 @@
<el-button
v-if=
"scope.scope.activityStatus == '2' || scope.scope.activityStatus == '3'"
type=
"text"
@
click=
"handleEdit(3,scope.scope)"
>
查看
</el-button>
<el-button
v-if=
"scope.scope.activityStatus == '3'"
type=
"text"
@
click=
"del(scope.scope)"
>
删除
</el-button>
<el-button
type=
"text"
@
click=
"topping(scope.scope)"
>
置顶
</el-button>
<el-button
v-if=
"scope.scope.activityStatus == '1' || scope.scope.activityStatus == '2'"
type=
"text"
@
click=
"
s
hare(scope.scope)"
>
分享
</el-button>
<el-button
v-if=
"scope.scope.activityStatus == '1' || scope.scope.activityStatus == '2'"
type=
"text"
@
click=
"
handleS
hare(scope.scope)"
>
分享
</el-button>
</div>
</GLTable>
<!-- 表格区域 end -->
...
...
@@ -225,25 +225,18 @@ export default {
this
.
secondConfirm
(
'删除'
,
'确定删除此活动?'
,
'seckillActivity'
,
'deleteActivityApi'
,
params
)
},
//新增
代金券
add
CashCoupon
()
{
this
.
$router
.
push
(
'/
couponManage/editCashCoupon
/1'
)
//新增
活动
add
Activity
()
{
this
.
$router
.
push
(
'/
seckillActivity/editActivity
/1'
)
},
// addOrEdit:1-新增;2-编辑;3-查看
handleEdit
(
addOrEdit
,
row
)
{
var
goto
=
''
if
(
row
.
discountType
==
'3'
){
//代金券
goto
=
'/couponManage/editCashCoupon/'
}
else
if
(
row
.
discountType
==
'7'
){
//会员服务
goto
=
'/couponManage/editMemberService/'
}
console
.
log
(
goto
+
addOrEdit
+
'/'
+
row
.
id
);
this
.
$router
.
push
(
goto
+
addOrEdit
+
'/'
+
row
.
id
)
this
.
$router
.
push
(
'/seckillActivity/editActivity/'
+
addOrEdit
+
'/'
+
row
.
id
)
},
handleShare
(
row
)
{
this
.
$apis
.
proManage
.
getProShare
Api
({
id
:
row
.
id
}).
then
(
res
=>
{
this
.
$apis
.
seckillActivity
.
getShared
Api
({
id
:
row
.
id
}).
then
(
res
=>
{
this
.
shareForm
=
res
this
.
handleShareClose
()
})
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment