Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-authorize
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 f16b452e
authored
Sep 27, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
上传接口文件
1 parent
9af1618b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
159 additions
and
0 deletions
src/api/modules/welcomeword.js
src/api/modules/welcomeword.js
0 → 100644
View file @
f16b452
import
{
http
}
from
'@/main'
const
path
=
'entmicro.api.mass.'
const
URL
=
'rop-scrm-entmicro/router'
//权益卡
const
getCard
=
params
=>
{
params
.
method
=
'scrm.api.equity.open.card.price.list.by.merchantid'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//权益卡
const
merchant
=
params
=>
{
params
.
method
=
'scrm.api.equity.open.card.price.list.by.merchantid'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//是否开通权益
const
merchantOpen
=
params
=>
{
params
.
method
=
'scrm.api.equity.service.merchant.config.get'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//优惠券
const
getCoupon
=
params
=>
{
params
.
method
=
'scrm.api.boutiquecoupon.coupon.page'
return
http
({
url
:
'/rop-scrm-boutiquecoupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//套餐
const
getPackage
=
params
=>
{
params
.
method
=
'scrm.api.equity.package.info.list.with.page'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getMerchant
=
params
=>
{
params
.
method
=
'scrm.api.coupon.list.merchant'
return
http
({
url
:
'rop-scrm-coupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//秒杀活动
const
getActivity
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.activity.page'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 获取素材组列表
const
getGroupListApi
=
params
=>
{
params
.
method
=
'marketing.api.material.group.list'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 获取素材列表
const
getMaterialListApi
=
params
=>
{
// params.method = 'marketing.api.material.page'
params
.
method
=
'marketing.api.material.sop.page'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 众筹模式活动
const
crowdfundingActivity
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.crowdfunding.activity.page'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//模板列表
const
templatePage
=
params
=>
{
params
.
method
=
`
${
path
}
template.page.search`
return
http
({
url
:
URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//模板保存
const
templateSave
=
params
=>
{
params
.
method
=
`
${
path
}
template.save`
return
http
({
url
:
URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//模板更新
const
templateUpdate
=
params
=>
{
params
.
method
=
`
${
path
}
template.update`
return
http
({
url
:
URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//模板创建人
const
createdNameList
=
params
=>
{
params
.
method
=
`
${
path
}
template.created.name.list`
return
http
({
url
:
URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getCard
,
merchant
,
getActivity
,
getPackage
,
getMerchant
,
getCoupon
,
merchantOpen
,
getGroupListApi
,
getMaterialListApi
,
templatePage
,
createdNameList
,
templateUpdate
,
templateSave
,
crowdfundingActivity
}
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