Commit 6d007106 by zhouzy

1

2 parents e06c5c58 fddb0ee7
const url = '/rop-scrm-entmicro/router'
export default {
/**全部活码接口 */
getAllEntmicroChannelCodeList(data){
data.method = 'entmicro.api.code.listStaffEntmicroChannelCodeList'
return window.$HTTP({
url,
data,
returnAll: true
})
},
/**引流获客列表 */
getEntmicroChannelCodeList(data) {
data.method = 'entmicro.api.code.listEntmicroChannelCodeList'
......
// const url = 'http://192.168.2.42:8064/rop-scrm-entmicro/router'
const url = '/rop-scrm-entmicro/router'
// const url = window.$fetchConfig ? window.$fetchConfig.tagUrl + '/rop-scrm-entmicro/router' : 'http://oin7.branch.glsx.com.cn/rop-scrm-entmicro/router'
console.log(url)
export default {
/**获取打标签的客户列表 */
getcustomerList(data = {}) {
data.method = 'entmicro.api.qywechat.tagging.customer.list'
return window.$HTTP({
url,
url:window.$fetchConfig.tagUrl,
data
})
},
......@@ -14,7 +15,7 @@ export default {
gettagList(data = {}) {
data.method = 'entmicro.api.qywechat.tagging.info'
return window.$HTTP({
url,
url:window.$fetchConfig.tagUrl,
data
})
},
......@@ -22,7 +23,7 @@ export default {
putCustomertag(data = {}) {
data.method = 'entmicro.api.qywechat.tagging.put.customer'
return window.$HTTP({
url,
url:window.$fetchConfig.tagUrl,
data
})
}
......
......@@ -2,6 +2,10 @@
<div class="layout">
<div class="search sticky">
<search @search="search" />
<tab
:list="['全部活码','我的活码']"
@change="change"
></tab>
</div>
<scroll-view
class="content"
......@@ -73,15 +77,21 @@ export default {
}
},
mounted() {
this.getList()
this.getList(0)
},
methods: {
getList() {
change(e) {
this.flag = false
this.list = []
this.getList(e)
},
getList(index) {
let { codeNameOrStaffName } = this
let obj = {}
if (codeNameOrStaffName) obj.codeNameOrStaffName = codeNameOrStaffName
this.showLoading()
entmicroApi.getEntmicroChannelCodeList(obj).then(({ code, data, message }) => {
let target = ['getAllEntmicroChannelCodeList', 'getEntmicroChannelCodeList'][index]
entmicroApi[target](obj).then(({ code, data, message }) => {
this.hideLoading()
if (code == '0') {
data.map(e => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!