Commit 220ac034 by 李长胜

企微授权的接口http3

1 parent 1eefbf48
......@@ -6,7 +6,7 @@
* @param {*} params
* @returns
*/
import {http, http2 } from '@/main'
import { http2,http3 } from '@/main'
export function getTableList (params){
params.method='entmicro.api.customer.base.page'
......@@ -62,7 +62,7 @@
*/
export function getStatus(params) {
params.method = 'scrm.api.work.wechat.access.status'
return http2({
return http3({
url: '/rop-scrm-wechat/router',
method: 'POST',
data: params,
......@@ -101,7 +101,7 @@ export function getDetailQuitTableList(params){
*/
export function getDetailPotentialTableList(params){
params.method='entmicro.api.customer.base.potential.cust.page'
return http({
return http2({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -111,7 +111,7 @@ export function getDetailPotentialTableList(params){
//客户群管理(群聊管理)导出
export function clientGroupExportApi(params){
params.method=`entmicro.api.customer.base.list.export`
return http({
return http2({
url: '/rop-scrm-entmicro/router',
method: 'GET',
data: params,
......@@ -121,7 +121,7 @@ export function clientGroupExportApi(params){
// 全部客户导出
export function clientExportApi(params){
params.method=`entmicro.api.customer.base.cust.export`
return http({
return http2({
url: '/rop-scrm-entmicro/router',
method: 'GET',
data: params,
......@@ -132,7 +132,7 @@ export function clientExportApi(params){
//跟进员工导出
export function followEmployeeExportApi(params){
params.method=`entmicro.api.customer.base.staff.export`
return http({
return http2({
url: '/rop-scrm-entmicro/router',
method: 'GET',
data: params,
......@@ -142,7 +142,7 @@ export function followEmployeeExportApi(params){
//退群客户导出
export function leaveGroupExportApi(params){
params.method=`entmicro.api.customer.base.quit.export`
return http({
return http2({
url: '/rop-scrm-entmicro/router',
method: 'GET',
data: params,
......@@ -153,7 +153,7 @@ export function leaveGroupExportApi(params){
export function potentialClientExportApi(params){
params.method=`entmicro.api.customer.base.potential.export`
return http({
return http2({
url: '/rop-scrm-entmicro/router',
method: 'GET',
data: params,
......
......@@ -6,7 +6,7 @@
* @param {*} params
* @returns
*/
import { http2 } from '@/main'
import {http2,http3 } from '@/main'
const URL = '/rop-scrm-entmicro/router'
const PATH = 'entmicro.api.one.template.'
const WURL = '/rop-scrm-wechat/router'
......@@ -93,7 +93,7 @@ const updateNameVaild = params => {
const getStatus = params => {
params.method = 'scrm.api.work.wechat.access.status'
return http({
return http3({
url: WURL,
method: 'POST',
data: params,
......@@ -103,7 +103,7 @@ const getStatus = params => {
//一客一群详情页
const getListApi = params => {
params.method = `${PATH}page`
return http({
return http2({
url: URL,
method: 'GET',
data: params,
......
......@@ -42,4 +42,5 @@ start()
export { bootstrap, mount, unmount } from '@/setup'
export const http = params => Vue.prototype.$http(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)
......@@ -13,14 +13,14 @@ let routes = []
let router = null
let instance = null
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
console.log('kk',request2)
const { response, request,request2,request3, sign, secret, sign_common, request_common } = await fetchConfig(globalState.configSwitch)//globalState.configSwitch
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
Vue.prototype.$common = common
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.$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_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
......
......@@ -191,7 +191,7 @@ export default {
this.$message.closeAll()
},
mounted() {
// this.wxTips() //新测试不掉
this.wxTips()
},
methods: {
jumpWx() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!