Commit 6d007106 by zhouzy

1

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