Commit a39591c0 by 徐忆琳

Merge branch 'xuyl-dev-v2.0.0' into 'v2.0.0'

Xuyl dev v2.0.0

See merge request !2
2 parents fbdd12b2 52504ec5
...@@ -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: 'GET', method: 'POST',
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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!