Commit c5850fef authored by looker's avatar looker

lave you be

parent 5b52b5f5
...@@ -10,6 +10,8 @@ url.customersessionInfo = `${process.env.API_URL}o/customersession/info` ...@@ -10,6 +10,8 @@ url.customersessionInfo = `${process.env.API_URL}o/customersession/info`
url.customerConversation = `${process.env.API_URL}o/customerConversation/accessNum` url.customerConversation = `${process.env.API_URL}o/customerConversation/accessNum`
url.changeCustomerStatus = `${process.env.API_URL}o/customersession/update/userstate` url.changeCustomerStatus = `${process.env.API_URL}o/customersession/update/userstate`
const chenzhen={} const chenzhen={}
chenzhen.login = `${process.env.API_URL}nice-wechat-service/v1/login` chenzhen.login = `${process.env.API_URL}nice-wechat-service/v1/login`
chenzhen.getCustomerInfo = `${process.env.API_URL}nice-wechat-service/v1/customer/info` chenzhen.getCustomerInfo = `${process.env.API_URL}nice-wechat-service/v1/customer/info`
...@@ -17,6 +19,10 @@ chenzhen.getPersonStatistics = `${process.env.API_URL}nice-wechat-service/v1/sta ...@@ -17,6 +19,10 @@ chenzhen.getPersonStatistics = `${process.env.API_URL}nice-wechat-service/v1/sta
chenzhen.personTodo = `${process.env.API_URL}nice-wechat-service/v1/statistics/person/todo` chenzhen.personTodo = `${process.env.API_URL}nice-wechat-service/v1/statistics/person/todo`
chenzhen.speechSort = `${process.env.API_URL}p/api/speech/sort` chenzhen.speechSort = `${process.env.API_URL}p/api/speech/sort`
chenzhen.findByMobile = `${process.env.API_URL}v1/customer/findByMobile` chenzhen.findByMobile = `${process.env.API_URL}v1/customer/findByMobile`
url.searchBiaoqingbao = ""
url.getScriptTags = ""
url.getScriptCatgary = ""
url.getScripts = ""
url.chenzhen = chenzhen url.chenzhen = chenzhen
// url.wsUrl = process.env.API_URL // url.wsUrl = process.env.API_URL
export default url export default url
\ No newline at end of file
...@@ -35,6 +35,27 @@ const speechSort = (param)=>{ ...@@ -35,6 +35,27 @@ const speechSort = (param)=>{
params: param params: param
}) })
} }
const searchBiaoqingbao = (param)=>{
return request({
url:apiUrl.chenzhen.searchBiaoqingbao,
method:'get',
params:param
})
}
const getScriptTags = (param)=>{
return request({
url:apiUrl.chenzhen.getScriptTags,
method:'get',
params:param
})
}
const getScriptCatgary = (param)=>{
return request({
url:apiUrl.chenzhen.getScriptCatgary,
method:'get',
params:param
})
}
const apis = [ const apis = [
[apiUrl.chenzhen.speechSort], [apiUrl.chenzhen.speechSort],
[apiUrl.chenzhen.getPersonStatistics], [apiUrl.chenzhen.getPersonStatistics],
...@@ -42,7 +63,7 @@ const apis = [ ...@@ -42,7 +63,7 @@ const apis = [
[apiUrl.chenzhen.findByMobile,'post'] [apiUrl.chenzhen.findByMobile,'post']
] ]
const reMap = new Map() const reMap = new Map()
const baseService = ()=>{ const baseService = (()=>{
for(let ap of apis){ for(let ap of apis){
let temp = (param)=>{ let temp = (param)=>{
return request({ return request({
...@@ -51,10 +72,10 @@ const baseService = ()=>{ ...@@ -51,10 +72,10 @@ const baseService = ()=>{
params: param params: param
}) })
} }
reMap.set(ap,temp) reMap.set(ap[0],temp)
} }
return reMap return reMap
} })()
export default { export default {
login, login,
personTodo, personTodo,
......
...@@ -4,7 +4,7 @@ import apiUrl from '@/service/api.js' ...@@ -4,7 +4,7 @@ import apiUrl from '@/service/api.js'
import * as auth from '@/utils/auth' import * as auth from '@/utils/auth'
import { MessageBox, Alert } from 'element-ui' import { MessageBox, Alert } from 'element-ui'
import Vue from 'vue' import Vue from 'vue'
const chenzhenService = service.chenzhen.baseService() const chenzhenService = service.chenzhen.baseService
const user = { const user = {
namespaced: true, namespaced: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment