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'
...
@@ -3,58 +3,68 @@ 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
({
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
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
({
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
method
:
'POST'
,
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`
return
http
({
return
http
({
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
const
updateCardContent
=
params
=>
{
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
({
const
memberExportApi
=
params
=>
{
url
:
'rop-scrm-equity/router'
,
params
.
method
=
`scrm.api.equity.card.merchant.record.export`
method
:
'POST'
,
return
http
({
data
:
params
,
url
:
'rop-scrm-equity/router'
,
sign
:
true
method
:
'GET'
,
})
data
:
params
,
sign
:
true
})
}
}
const
memberExportApi
=
params
=>
{
const
getQrUrl
=
params
=>
{
params
.
method
=
`scrm.api.equity.card.merchant.record.export`
params
.
method
=
'scrm.api.equity.card.class.generate.try.url'
return
http
({
return
http
({
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'GE
T'
,
method
:
'POS
T'
,
data
:
params
,
data
:
params
,
sign
:
true
returnAll
:
true
})
})
}
}
export
{
getCenterListApi
,
getMoreMerchant
,
updateCardContent
,
getCardContent
,
memberExportApi
}
\ No newline at end of file
\ No newline at end of file
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