Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-tools
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 22493814
authored
Sep 27, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
cc67339d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
209 additions
and
4 deletions
src/api/modules/marketing.js
src/setup/qiankun.js
src/api/modules/marketing.js
View file @
2249381
...
...
@@ -6,7 +6,8 @@
* @param {*} params
* @returns
*/
import
{
http
}
from
'@/main'
import
{
http
,
http_gpt
,
http_merchant
}
from
'@/main'
const
url
=
'/rop-scrm-entmicro/router'
let
session
=
'mini-57c1c42e-8a0c-4fc3-959c-b62813a471cd-rop'
const
getCoupon
=
params
=>
{
params
.
method
=
'scrm.api.boutiquecoupon.coupon.page'
...
...
@@ -182,6 +183,190 @@ const findMerchantInfoByMerchantNo = params => {
sign
:
true
})
}
//客户概览
const
viewData
=
params
=>
{
params
.
method
=
'entmicro.api.Customer.customer.view.data'
return
http
({
url
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getChatGPTList
=
params
=>
{
return
http_gpt
({
url
:
'openai/title'
,
method
:
'POST'
,
data
:
params
,
sign
:
false
,
returnAll
:
false
})
}
const
calendarPage
=
params
=>
{
params
.
method
=
'marketing.api.calendar.page'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
calendarDetail
=
params
=>
{
params
.
method
=
'marketing.api.calendar.detail'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//营销任务-导入客户
const
importCustomer
=
params
=>
{
params
.
method
=
'marketing.api.supermarket.importCustomer'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//获取机器人下拉列表
const
getRobotList
=
params
=>
{
params
.
method
=
'marketing.api.supermarket.bulge.getRobotList'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//查询员工列表
const
findMerchantStaffList
=
params
=>
{
params
.
method
=
'merchants.api.open.findMerchantStaffList'
return
http_merchant
({
url
:
'rop-merchants/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//创建超级营销
const
createSuperMarketing
=
params
=>
{
params
.
method
=
'marketing.api.supermarket.createSuperMarketing'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
findActivityInfo
=
params
=>
{
params
.
method
=
'marketing.api.supermarket.findActivityInfo'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//获取小管家二维码
const
EntWechatQrCode
=
params
=>
{
params
.
method
=
'marketing.api.supermarket.EntWechatQrCode'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
activityDetail
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.activity.detail'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 门店详情
const
findMerchantDetailByMerchantNo
=
params
=>
{
params
.
method
=
'merchants.api.open.findMerchantDetailByMerchantNo'
return
http_merchant
({
url
:
'rop-merchants/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
const
registerSso
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.staff.bulge.register'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
updateApi
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.activity.bulge.add.or.update`
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
importModel
=
params
=>
{
params
.
method
=
`marketing.api.supermarket.customer.importModel`
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getSmsTemplate
=
params
=>
{
params
.
method
=
`marketing.api.supermarket.bulge.getSmsTemplate`
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
findMarketingTask
=
params
=>
{
params
.
method
=
`marketing.api.supermarket.findMarketingTask`
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//创建/修改自定义套餐
const
packageGetCode
=
params
=>
{
params
.
method
=
`scrm.api.equity.service.package.customize.code.get`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//获取服务项目列表
const
servicePage
=
params
=>
{
params
.
method
=
`scrm.api.equity.service.items.pages`
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getCoupon
,
getMerchant
,
...
...
@@ -200,5 +385,24 @@ export default {
findConfig
,
addConfig
,
customerPage
,
findMerchantInfoByMerchantNo
findMerchantInfoByMerchantNo
,
viewData
,
getChatGPTList
,
calendarPage
,
calendarDetail
,
importCustomer
,
getRobotList
,
findMerchantStaffList
,
createSuperMarketing
,
updateApi
,
activityDetail
,
findActivityInfo
,
registerSso
,
EntWechatQrCode
,
findMerchantDetailByMerchantNo
,
importModel
,
getSmsTemplate
,
findMarketingTask
,
servicePage
,
packageGetCode
}
src/setup/qiankun.js
View file @
2249381
...
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-23 11:06:49
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-
05 16:08:47
* @LastEditTime: 2023-09-
27 16:11:41
* @FilePath: \live\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -27,7 +27,7 @@ Vue.use(GLTableButton)
Vue
.
use
(
GLEditor
)
Vue
.
use
(
GLDialog
)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
request2
,
sign
,
secret
,
sign_common
,
request_common
,
request_merchant
,
merchantId
}
=
await
fetchConfig
(
common
)
const
{
response
,
request
,
request2
,
sign
,
secret
,
sign_common
,
request_common
,
request_merchant
,
merchantId
,
request_gpt
}
=
await
fetchConfig
(
common
)
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
...
...
@@ -39,6 +39,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
// 集团版集团账号
Vue
.
prototype
.
$isGroupUp
=
globalState
.
session
.
accountLevel
!=
4
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_gpt
=
new
common
.
Http
({
response
,
request
:
request_gpt
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_tag
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_merchant
=
new
common
.
Http
({
response
,
request
:
request_merchant
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
...
...
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