Commit a7e207e9 by 李伟康

commit

1 parent bea85c4c
// const url = 'http://192.168.2.42:8064/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 = {}) {
......
......@@ -67,30 +67,32 @@ import { Notify } from 'vant'
import { entmicroApi } from '@/api'
export default {
name: '',
data() {
data () {
return {
showPopup: false,
codeNameOrStaffName: '',
list: [],
currentItem: {},
flag: false
flag: false,
tabIndex: 0
}
},
mounted() {
this.getList(0)
mounted () {
this.getList()
},
methods: {
change(e) {
change (e) {
this.flag = false
this.list = []
this.getList(e)
this.tabIndex = e
this.getList()
},
getList(index) {
let { codeNameOrStaffName } = this
getList () {
let { codeNameOrStaffName, tabIndex } = this
let obj = {}
if (codeNameOrStaffName) obj.codeNameOrStaffName = codeNameOrStaffName
this.showLoading()
let target = ['getAllEntmicroChannelCodeList', 'getEntmicroChannelCodeList'][index]
let target = ['getAllEntmicroChannelCodeList', 'getEntmicroChannelCodeList'][tabIndex]
entmicroApi[target](obj).then(({ code, data, message }) => {
this.hideLoading()
if (code == '0') {
......@@ -117,7 +119,7 @@ export default {
this.flag = true
})
},
previewImage(list, startPosition) {
previewImage (list, startPosition) {
let images = []
list.map(e => images.push(e.autoUrl))
this.$router.push({
......@@ -128,17 +130,17 @@ export default {
}
})
},
share(e) {
share (e) {
this.showPopup = true
this.currentItem = e
},
search(e) {
search (e) {
console.log(e)
this.codeNameOrStaffName = e
this.flag = false
this.getList()
},
onReachBottom() {
onReachBottom () {
console.log('触底')
this.$refs.scrollView.loading = false
this.$refs.scrollView.finished = true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!