Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
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 220ac034
authored
Jan 10, 2022
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
企微授权的接口http3
1 parent
1eefbf48
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
14 deletions
src/api/modules/clientGroupManage.js
src/api/modules/groupGuest.js
src/main.js
src/setup/qiankun.js
src/views/clientGroupManage/index.vue
src/api/modules/clientGroupManage.js
View file @
220ac03
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* @param {*} params
* @param {*} params
* @returns
* @returns
*/
*/
import
{
http
,
http2
}
from
'@/main'
import
{
http2
,
http3
}
from
'@/main'
export
function
getTableList
(
params
){
export
function
getTableList
(
params
){
params
.
method
=
'entmicro.api.customer.base.page'
params
.
method
=
'entmicro.api.customer.base.page'
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
*/
*/
export
function
getStatus
(
params
)
{
export
function
getStatus
(
params
)
{
params
.
method
=
'scrm.api.work.wechat.access.status'
params
.
method
=
'scrm.api.work.wechat.access.status'
return
http
2
({
return
http
3
({
url
:
'/rop-scrm-wechat/router'
,
url
:
'/rop-scrm-wechat/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
...
@@ -101,7 +101,7 @@ export function getDetailQuitTableList(params){
...
@@ -101,7 +101,7 @@ export function getDetailQuitTableList(params){
*/
*/
export
function
getDetailPotentialTableList
(
params
){
export
function
getDetailPotentialTableList
(
params
){
params
.
method
=
'entmicro.api.customer.base.potential.cust.page'
params
.
method
=
'entmicro.api.customer.base.potential.cust.page'
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
...
@@ -111,7 +111,7 @@ export function getDetailPotentialTableList(params){
...
@@ -111,7 +111,7 @@ export function getDetailPotentialTableList(params){
//客户群管理(群聊管理)导出
//客户群管理(群聊管理)导出
export
function
clientGroupExportApi
(
params
){
export
function
clientGroupExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.base.list.export`
params
.
method
=
`entmicro.api.customer.base.list.export`
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
method
:
'GET'
,
data
:
params
,
data
:
params
,
...
@@ -121,7 +121,7 @@ export function clientGroupExportApi(params){
...
@@ -121,7 +121,7 @@ export function clientGroupExportApi(params){
// 全部客户导出
// 全部客户导出
export
function
clientExportApi
(
params
){
export
function
clientExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.base.cust.export`
params
.
method
=
`entmicro.api.customer.base.cust.export`
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
method
:
'GET'
,
data
:
params
,
data
:
params
,
...
@@ -132,7 +132,7 @@ export function clientExportApi(params){
...
@@ -132,7 +132,7 @@ export function clientExportApi(params){
//跟进员工导出
//跟进员工导出
export
function
followEmployeeExportApi
(
params
){
export
function
followEmployeeExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.base.staff.export`
params
.
method
=
`entmicro.api.customer.base.staff.export`
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
method
:
'GET'
,
data
:
params
,
data
:
params
,
...
@@ -142,7 +142,7 @@ export function followEmployeeExportApi(params){
...
@@ -142,7 +142,7 @@ export function followEmployeeExportApi(params){
//退群客户导出
//退群客户导出
export
function
leaveGroupExportApi
(
params
){
export
function
leaveGroupExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.base.quit.export`
params
.
method
=
`entmicro.api.customer.base.quit.export`
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
method
:
'GET'
,
data
:
params
,
data
:
params
,
...
@@ -153,7 +153,7 @@ export function leaveGroupExportApi(params){
...
@@ -153,7 +153,7 @@ export function leaveGroupExportApi(params){
export
function
potentialClientExportApi
(
params
){
export
function
potentialClientExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.base.potential.export`
params
.
method
=
`entmicro.api.customer.base.potential.export`
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
method
:
'GET'
,
data
:
params
,
data
:
params
,
...
...
src/api/modules/groupGuest.js
View file @
220ac03
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* @param {*} params
* @param {*} params
* @returns
* @returns
*/
*/
import
{
http2
}
from
'@/main'
import
{
http2
,
http3
}
from
'@/main'
const
URL
=
'/rop-scrm-entmicro/router'
const
URL
=
'/rop-scrm-entmicro/router'
const
PATH
=
'entmicro.api.one.template.'
const
PATH
=
'entmicro.api.one.template.'
const
WURL
=
'/rop-scrm-wechat/router'
const
WURL
=
'/rop-scrm-wechat/router'
...
@@ -93,7 +93,7 @@ const updateNameVaild = params => {
...
@@ -93,7 +93,7 @@ const updateNameVaild = params => {
const
getStatus
=
params
=>
{
const
getStatus
=
params
=>
{
params
.
method
=
'scrm.api.work.wechat.access.status'
params
.
method
=
'scrm.api.work.wechat.access.status'
return
http
({
return
http
3
({
url
:
WURL
,
url
:
WURL
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
...
@@ -103,7 +103,7 @@ const getStatus = params => {
...
@@ -103,7 +103,7 @@ const getStatus = params => {
//一客一群详情页
//一客一群详情页
const
getListApi
=
params
=>
{
const
getListApi
=
params
=>
{
params
.
method
=
`
${
PATH
}
page`
params
.
method
=
`
${
PATH
}
page`
return
http
({
return
http
2
({
url
:
URL
,
url
:
URL
,
method
:
'GET'
,
method
:
'GET'
,
data
:
params
,
data
:
params
,
...
...
src/main.js
View file @
220ac03
...
@@ -42,4 +42,5 @@ start()
...
@@ -42,4 +42,5 @@ start()
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
http2
=
params
=>
Vue
.
prototype
.
$http2
(
params
)
export
const
http2
=
params
=>
Vue
.
prototype
.
$http2
(
params
)
export
const
http3
=
params
=>
Vue
.
prototype
.
$http3
(
params
)
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
src/setup/qiankun.js
View file @
220ac03
...
@@ -13,14 +13,14 @@ let routes = []
...
@@ -13,14 +13,14 @@ let routes = []
let
router
=
null
let
router
=
null
let
instance
=
null
let
instance
=
null
export
async
function
bootstrap
({
name
,
id
,
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
export
async
function
bootstrap
({
name
,
id
,
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
request2
,
sign
,
secret
,
sign_common
,
request_common
}
=
await
fetchConfig
(
globalState
.
configSwitch
)
//globalState.configSwitch
const
{
response
,
request
,
request2
,
request3
,
sign
,
secret
,
sign_common
,
request_common
}
=
await
fetchConfig
(
globalState
.
configSwitch
)
//globalState.configSwitch
console
.
log
(
'kk'
,
request2
)
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http2
=
new
common
.
Http
({
response
,
request
:
request2
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http2
=
new
common
.
Http
({
response
,
request
:
request2
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http3
=
new
common
.
Http
({
response
,
request
:
request3
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: "mini-14eda653-4284-4165-bb85-325bb82a516d-rop" } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: "mini-14eda653-4284-4165-bb85-325bb82a516d-rop" } })
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_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.$setGlobalState = globalState.actions.setGlobalState
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
...
...
src/views/clientGroupManage/index.vue
View file @
220ac03
...
@@ -191,7 +191,7 @@ export default {
...
@@ -191,7 +191,7 @@ export default {
this
.
$message
.
closeAll
()
this
.
$message
.
closeAll
()
},
},
mounted
()
{
mounted
()
{
// this.wxTips() //新测试不掉
this
.
wxTips
()
},
},
methods
:
{
methods
:
{
jumpWx
()
{
jumpWx
()
{
...
...
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