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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
45 deletions
src/api/modules/center.js
src/views/memberCenter/center.vue
src/api/modules/center.js
View file @
636a261
...
...
@@ -3,58 +3,68 @@ import { http } from '@/main'
// const defaultPath = 'scrm.api.live.'
const
getCenterListApi
=
params
=>
{
// params.method = `${defaultPath}goods.list`
params
.
method
=
`scrm.api.equity.card.merchant.record.get`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
// params.method = `${defaultPath}goods.list`
params
.
method
=
`scrm.api.equity.card.merchant.record.get`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getMoreMerchant
=
params
=>
{
// params.method = `${defaultPath}goods.list`
params
.
method
=
`scrm.api.equity.third.get`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//获取上方卡片的相关信息
// params.method = `${defaultPath}goods.list`
params
.
method
=
`scrm.api.equity.third.get`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//获取上方卡片的相关信息
const
getCardContent
=
params
=>
{
// scrm.api.equity.card.get.by.merchant.id旧版的
params
.
method
=
`scrm.api.equity.open.card.price.get.by.merchantid`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
// scrm.api.equity.card.get.by.merchant.id旧版的
params
.
method
=
`scrm.api.equity.open.card.price.get.by.merchantid`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
updateCardContent
=
params
=>
{
params
.
method
=
`scrm.api.equity.card.class.update`
params
.
method
=
`scrm.api.equity.card.class.update`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
const
memberExportApi
=
params
=>
{
params
.
method
=
`scrm.api.equity.card.merchant.record.export`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
const
memberExportApi
=
params
=>
{
params
.
method
=
`scrm.api.equity.card.merchant.record.export`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'GE
T'
,
data
:
params
,
sign
:
true
})
const
getQrUrl
=
params
=>
{
params
.
method
=
'scrm.api.equity.card.class.generate.try.url'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POS
T'
,
data
:
params
,
returnAll
:
true
})
}
export
{
getCenterListApi
,
getMoreMerchant
,
updateCardContent
,
getCardContent
,
memberExportApi
}
\ No newline at end of file
export
{
getCenterListApi
,
getMoreMerchant
,
updateCardContent
,
getCardContent
,
memberExportApi
,
getQrUrl
}
\ 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