修复bug
This commit is contained in:
parent
b7bd015b22
commit
2e7f28d0ce
@ -39,6 +39,7 @@
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
// z-index: 9999999;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
border-radius: 0;
|
||||
color: #fff;
|
||||
|
@ -94,19 +94,23 @@
|
||||
},
|
||||
methods: {
|
||||
async loadAreaManager(){
|
||||
if(this.loadConfig.status=="nomore")return;
|
||||
this.loadConfig.status="loading"
|
||||
let res = await companyAreaManager({
|
||||
page: this.loadConfig.page,
|
||||
limit: this.loadConfig.limit
|
||||
})
|
||||
this.loadConfig.status="loadmore"
|
||||
if(res.data.data.length<this.loadConfig.limit){
|
||||
try{
|
||||
if(this.loadConfig.status=="nomore")return;
|
||||
this.loadConfig.status="loading"
|
||||
let res = await companyAreaManager({
|
||||
page: this.loadConfig.page,
|
||||
limit: this.loadConfig.limit
|
||||
})
|
||||
this.loadConfig.status="loadmore"
|
||||
if(res.data.data.length<this.loadConfig.limit){
|
||||
this.loadConfig.status="nomore"
|
||||
}else {
|
||||
this.loadConfig.page++;
|
||||
}
|
||||
this.areaManagerList = [...this.areaManagerList, ...res.data?.data]
|
||||
}catch(e){
|
||||
this.loadConfig.status="nomore"
|
||||
}else {
|
||||
this.loadConfig.page++;
|
||||
}
|
||||
this.areaManagerList = [...this.areaManagerList, ...res.data?.data]
|
||||
},
|
||||
//拨打电话
|
||||
callUp(phone) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user