|
|
@ -80,12 +80,12 @@ |
|
|
|
// 刷新列表数据 |
|
|
|
// 刷新列表数据 |
|
|
|
this.list = [] |
|
|
|
this.list = [] |
|
|
|
this.page = 1; |
|
|
|
this.page = 1; |
|
|
|
app.getList(app.user_type) |
|
|
|
app.getList() |
|
|
|
}, |
|
|
|
}, |
|
|
|
searchhandle() { |
|
|
|
searchhandle() { |
|
|
|
this.list = [] |
|
|
|
this.list = [] |
|
|
|
this.page = 1; |
|
|
|
this.page = 1; |
|
|
|
this.getList(this.user_type) |
|
|
|
this.getList() |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
async getList() { |
|
|
|
async getList() { |
|
|
@ -143,18 +143,18 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad(option) { |
|
|
|
onLoad(option) { |
|
|
|
this.title = option.title |
|
|
|
this.title = option.type==1?'会员管理':'分销管理' |
|
|
|
this.type = option.type |
|
|
|
this.type = option.type |
|
|
|
uni.setNavigationBarTitle({ |
|
|
|
uni.setNavigationBarTitle({ |
|
|
|
title: this.title |
|
|
|
title: this.title |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.list = [] |
|
|
|
this.list = [] |
|
|
|
this.getList(this.user_type) |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
}, |
|
|
|
onReachBottom() { |
|
|
|
onReachBottom() { |
|
|
|
if (this.list.length < this.total) { |
|
|
|
if (this.list.length < this.total) { |
|
|
|
this.page++; |
|
|
|
this.page++; |
|
|
|
this.getList(this.user_type) |
|
|
|
this.getList() |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|