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 636a2615
authored
Mar 09, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:新增会员试用
1 parent
d20a9144
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
src/api/modules/center.js
src/views/memberCenter/center.vue
src/api/modules/center.js
View file @
636a261
...
@@ -3,7 +3,7 @@ import { http } from '@/main'
...
@@ -3,7 +3,7 @@ import { http } from '@/main'
// const defaultPath = 'scrm.api.live.'
// const defaultPath = 'scrm.api.live.'
const
getCenterListApi
=
params
=>
{
const
getCenterListApi
=
params
=>
{
// params.method = `${defaultPath}goods.list`
// params.method = `${defaultPath}goods.list`
params
.
method
=
`scrm.api.equity.card.merchant.record.get`
params
.
method
=
`scrm.api.equity.card.merchant.record.get`
return
http
({
return
http
({
...
@@ -14,7 +14,7 @@ const getCenterListApi = params => {
...
@@ -14,7 +14,7 @@ const getCenterListApi = params => {
})
})
}
}
const
getMoreMerchant
=
params
=>
{
const
getMoreMerchant
=
params
=>
{
// params.method = `${defaultPath}goods.list`
// params.method = `${defaultPath}goods.list`
params
.
method
=
`scrm.api.equity.third.get`
params
.
method
=
`scrm.api.equity.third.get`
return
http
({
return
http
({
...
@@ -23,8 +23,8 @@ const getMoreMerchant = params => {
...
@@ -23,8 +23,8 @@ const getMoreMerchant = params => {
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
//获取上方卡片的相关信息
//获取上方卡片的相关信息
const
getCardContent
=
params
=>
{
const
getCardContent
=
params
=>
{
// scrm.api.equity.card.get.by.merchant.id旧版的
// scrm.api.equity.card.get.by.merchant.id旧版的
params
.
method
=
`scrm.api.equity.open.card.price.get.by.merchantid`
params
.
method
=
`scrm.api.equity.open.card.price.get.by.merchantid`
...
@@ -48,8 +48,8 @@ const updateCardContent = params => {
...
@@ -48,8 +48,8 @@ const updateCardContent = params => {
})
})
}
}
const
memberExportApi
=
params
=>
{
const
memberExportApi
=
params
=>
{
params
.
method
=
`scrm.api.equity.card.merchant.record.export`
params
.
method
=
`scrm.api.equity.card.merchant.record.export`
return
http
({
return
http
({
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'GET'
,
method
:
'GET'
,
...
@@ -57,4 +57,14 @@ const memberExportApi = params =>{
...
@@ -57,4 +57,14 @@ const memberExportApi = params =>{
sign
:
true
sign
:
true
})
})
}
}
export
{
getCenterListApi
,
getMoreMerchant
,
updateCardContent
,
getCardContent
,
memberExportApi
}
\ No newline at end of file
\ No newline at end of file
const
getQrUrl
=
params
=>
{
params
.
method
=
'scrm.api.equity.card.class.generate.try.url'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
returnAll
:
true
})
}
export
{
getCenterListApi
,
getMoreMerchant
,
updateCardContent
,
getCardContent
,
memberExportApi
,
getQrUrl
}
\ No newline at end of file
\ No newline at end of file
src/views/memberCenter/center.vue
View file @
636a261
This diff is collapsed.
Click to expand it.
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